- Table of Contents
-
- 11-Network Management and Monitoring Command Reference
- 00-Preface
- 01-System maintenance and debugging commands
- 02-NQA commands
- 03-iNQA commands
- 04-NTP commands
- 05-PTP commands
- 06-PoE commands
- 07-SNMP commands
- 08-RMON commands
- 09-Event MIB commands
- 10-NETCONF commands
- 11-SmartMC commands
- 12-EPA commands
- 13-ONVIF commands
- 14-CWMP commands
- 15-EAA commands
- 16-Process monitoring and maintenance commands
- 17-Mirroring commands
- 18-sFlow commands
- 19-Information center commands
- 20-Packet capture commands
- 21-VCF fabric commands
- 22-Cloud connection commands
- 23-EPS agent commands
- 24-eMDI commands
- 25-SQA commands
- 26-TCP connection trace commands
- 27-iOptic system commands
- Related Documents
-
Title | Size | Download |
---|---|---|
27-iOptic system commands | 254.34 KB |
display smartmc light-unit configuration history
display smartmc light-unit poe
display smartmc light-unit poe port
display smartmc light-unit port
display smartmc light-unit transceiver
display smartmc light-unit upgrade-info
reset smartmc light-unit configuration history
iOptic system commands
description
Use description to configure a description for an iOptic node.
Use undo description to restore the default.
Syntax
description text
undo description
Default
An iOptic node does not have a description.
Views
iOptic node view
Predefined user roles
network-admin
Parameters
text: Specifies a description, a case-sensitive string of 1 to 255 characters.
Usage guidelines
The system name of an iOptic node can contain only 1 to 31 characters. To manage iOptic nodes efficiently, you can also configure the IDs, geographic locations, and IP addresses as descriptions for them.
Examples
# Configure the description for iOptic node 1 as in room 1001-1-1.
<Sysname> system-view
[Sysname] smartmc light-unit 1
[Sysname-lu-1] description in room 1001-1-1
display smartmc light-unit
Use display smartmc light-unit to display iOptic node information.
Syntax
display smartmc light-unit [ id | name name ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
id: Specifies the ID of an iOptic node. The value range for this argument is 1 to 255.
name: Specifies the name of an iOptic node, a string of 1 to 31 characters.
verbose: Displays detailed information about iOptic nodes. If you do not specify this keyword, the command displays brief information about iOptic nodes.
Examples
# Display brief information about iOptic nodes.
<Sysname> display smartmc light-unit
ID SN MAC address Status Version match Name
1 1273712783123 201c-e7c3-0300 Normal NO S1
Table 1 Command output
Field |
Description |
ID |
ID of the iOptic node. |
SN |
Serial number of the iOptic node. |
MAC address |
MAC address of the iOptic node. |
Status |
Running status of the iOptic node: · Normal—The iOptic node is online. · Registering—The iOptic node is registering a CoAP channel with the iOptic host. · Channel Ready—The CoAP channel has been created. · Smoothing—The iOptic node is synchronizing configuration from the iOptic host. · Updating—The iOptic node is upgrading the software. · Offline—The iOptic node is offline. |
Version match |
Whether the iOptic node software version matches the iOptic host: · YES—Match. · NO—Not match. · UNKNOWN—The product does not support version verification. |
Name |
Name of the iOptic node. |
# Display detailed information about iOptic node 1.
<Sysname> display smartmc light-unit 1 verbose
ID : 1
Name : S1
Description : LU_for_office
Status : Offline
SN : 12312312231
MAC address : 00e0-4c00-0000
IP address : 172.16.0.1
Boot image version : 1.0524.0
System image version : ES4200 B02 V1.2.2
PoE image version : 1.0524.0
Uptime : 2 days, 3 hours, 4 minutes
Memory usage : 0%
Disk usage : 0%
MAC usage : 0%
Temperature : 27 degree centigrade
Version match : YES
Table 2 Command output
Field |
Description |
ID |
ID of the iOptic node. |
Name |
Name of the iOptic node. |
Description |
Description of the iOptic node. |
Status |
Running status of the iOptic node: · Normal—The iOptic node is online. · Registering—The iOptic node is registering a CoAP channel with the iOptic host. · Channel Ready—The CoAP channel has been created. · Smoothing—The iOptic node is synchronizing configuration from the iOptic host. · Updating—The iOptic node is upgrading the software. · Offline—The iOptic node is offline. |
SN |
Serial number of the iOptic node. |
MAC address |
MAC address of the iOptic node. |
IP address |
IP address of the iOptic node. |
Boot image version |
Version of the boot software package running on the iOptic node. |
System image version |
Version of the system software package running on the iOptic node. |
PoE image version |
Version of the PoE firmware running on the iOptic node. |
Uptime |
Uptime of the iOptic node. |
Memory usage |
Current memory usage of the iOptic node. |
Disk usage |
Current disk usage of the iOptic node. |
MAC usage |
Current MAC entry resource usage of the iOptic node. |
Temperature(°C) |
Current temperature of the iOptic node in Celsius degrees. |
Version match |
Whether the iOptic node software version matches the iOptic host: · YES—Match. · NO—Not match. · UNKNOWN—The product does not support version verification. |
display smartmc light-unit configuration history
Use display smartmc light-unit configuration history to display the configuration deployed from the iOptic host to iOptic nodes.
Syntax
display smartmc light-unit configuration history
Views
Any view
Predefined user roles
network-admin
network-operator
Usage guidelines
Application scenarios
The iOptic host (the device) incorporates iOptic nodes that have registered with it. After you configure iOptic nodes on the iOptic host, the iOptic host deploys the configuration to the iOptic nodes. Execute this command on the iOptic host to display the configuration deployed to the iOptic nodes.
Restrictions and guidelines
The Command field in the output from the display smartmc light-unit configuration history command displays only the keywords of commands deployed to iOptic nodes. The commands do not contain parameters and might be in either do or undo form.
Examples
# Display the configuration deployed from the iOptic host to iOptic nodes.
<Sysname> display smartmc light-unit configuration history
RecordTime ID Command Operation Result
2023-07-03 10:20:04 1 port hybrid pvid Merge Succeed
2023-07-03 10:20:04 1 port hybrid pvid Merge Succeed
2023-07-03 10:19:23 2 vlan mode Merge Failed
2023-07-03 10:18:45 2 isolate Merge Succeed
2023-07-03 09:58:03 1 port hybrid vlan Replace Failed
2023-07-03 09:58:03 1 shutdown Replace Failed
Table 3 Command output
Field |
Description |
RecordTime |
Time when the configuration was deployed. |
ID |
ID of an iOptic node. |
Command |
Keywords of the command deployed to the iOptic node. (The command does not contain parameters and might be in either do or undo form.) |
Operation |
Action performed by the configuration: · Merge—Merge the existing configuration. · Replace—Replace the existing configuration. |
Result |
Configuration deployment result: · Succeed. · Failed. · Waiting—The configuration is being deployed and the result is unknown. |
display smartmc light-unit poe
Use display smartmc light-unit poe to display information about the PoE power supply status of an iOptic node.
Syntax
display smartmc light-unit { id | name name } poe
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
id: Specifies the ID of an iOptic node. The value range for this argument is 1 to 255.
name name: Specifies the name of an iOptic node, a string of 1 to 31 characters.
Examples
# Display information about the PoE power supply status of iOptic node 1.
<Sysname> display smartmc light-unit 1 poe
PoE information :
PoE Current Power : 1870 mW
PoE Remaining Power : 1000 mW
PoE Peak Power : 2350 mW
PoE Max Power : 2000 mW
PoE Current Voltage : 24.00 mV
PSE reset times : 0
PoE failure : NO
Table 4 Command output
Field |
Description |
PoE Current Power |
Current PoE power, in milliwatts. |
PoE Remaining Power |
Available PoE power, in milliwatts. |
PoE Peak Power |
Peak PoE power, in milliwatts. |
PoE Max Power |
Maximum PoE power, in milliwatts. |
PoE Current Voltage |
Current PoE voltage, in millivolts. |
PoE reset times |
Number of PSE chip resets. |
PoE failure |
Whether the PoE firmware has anomalies: · NO. · YES. |
Related commands
display smartmc light-unit poe port
display smartmc light-unit poe port
Use display smartmc light-unit poe port to display power supply information for PIs on an iOptic node.
Syntax
display smartmc light-unit { id | name name } poe port [ port-id ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
id: Specifies the ID of an iOptic node. The value range for this argument is 1 to 255.
name name: Specifies the name of an iOptic node, a string of 1 to 31 characters.
port-id: Specifies an interface ID. The value range for this argument is 1 to 34.
Examples
# Display power supply information for PIs on iOptic node 1.
<Sysname> display smartmc light-unit 1 poe port
PoE information of Port 1:
PoE Status : Enabled
PD class : High
Detection Status : Delivering power
Power-up mode : af
Reference power : 10234 mW
Current Power : 11592 mW
Average Power : 11610 mW
Peak Power : 11684 mW
Electric Current : 244 mA
Power Voltage : 51.7 mV
PoE force power Status : Disabled
PoE information of Port 2:
PoE Status : Enabled
PD class : High
Power Priority : Critical
Detection Status : Delivering power
Power-up mode : af
Reference power : 10234 mW
Current Power : 11592 mW
Average Power : 11610 mW
Peak Power : 11684 mW
Electric Current : 244 mA
Power Voltage : 51.7 mV
PoE force power Status : Disabled
Table 5 Command output
Field |
Description |
PoE information of Port 1 |
Power supply information for a PI on the iOptic node. |
PoE Status |
PoE status: · Enabled. · Disabled. |
PD class |
Power supply priority: · High. · Medium. · Low. |
Detection Status |
Power detection status: · Disabled—PoE is disabled. · Searching—The PI is searching for the PD. · Delivering power—The PI is supplying power for the PD. · Fault—A fault occurred during the test. · Test—The PI is undergoing a test. · Other fault—A fault has caused the PSE to enter idle status. · PD disconnected—The PD is disconnected. |
Power-up mode |
Power supply mode: · NONE—The PI is not supplying power. · AF—802.3af (PoE) mode. · AT—802.3at (PoE+) mode. |
Reference power |
Reference power, in milliwatts. |
Current Power |
Current power in milliwatts, including PD consumption power and transmission loss. |
Average Power |
Average power, in milliwatts. |
Peak Power |
Peak power, in milliwatts. |
Electric Current |
Current electric current, in milliamps. |
Power Voltage |
Current voltage, in millivolts. |
PoE force power Status |
Enabling status of forced power supply: · Enabled. · Disabled. |
display smartmc light-unit port
Use display smartmc light-unit port to display information about interfaces on an iOptic node.
Syntax
display smartmc light-unit { id | name name } port [ port-id | brief | uplink ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
id: Specifies the ID of an iOptic node. The value range for this argument is 1 to 255.
name name: Specifies the name of an iOptic node, a string of 1 to 31 characters.
port-id: Specifies an interface ID. The value range for this argument is 1 to 34.
brief: Displays brief interface information. If you do not specify this keyword, the command displays detailed interface information.
uplink: Displays information about the uplink aggregate interface on the iOptic node.
Examples
# Display brief information about all interfaces on iOptic node 1.
<Sysname> display smartmc light-unit 1 port brief
Brief information on interfaces in bridge mode:
Link: ADM - administratively down;
Speed: (a) - auto
Duplex: (a)/A - auto; H - half; F - full
Type: A - access; T - trunk; H - hybrid
Interface Link Speed Duplex Type PVID Uplink
Port 1 UP 1G(a) F(a) A 1 No
Port 2 DOWN 1G(a) F(a) A 1 No
Port 3 ADM 1G(a) F(a) A 1 Yes
Table 6 Command output
Field |
Description |
Brief information on interfaces in bridge mode |
Brief information about Layer 2 interfaces. |
Link: ADM - administratively down; |
Physical link state of the interface: ADM. The interface has been shut down by using the shutdown command. To restore the physical state of the interface, use the undo shutdown command. |
Speed: (a) - auto |
Speed of the interface. This field displays the (a) flag next to the speed if the speed is automatically negotiated. This field displays auto if the interface is configured to autonegotiate its speed but the autonegotiation has not started. |
Duplex: (a)/A - auto; H - half; F - full |
Duplex mode of the interface: · A—Autonegotiation. The interface is configured to autonegotiate its duplex mode but the autonegotiation has not started. · H—Half duplex. · H(a)—Autonegotiated half duplex. · F—Full duplex. · F(a)—Autonegotiated full duplex. |
Type: A - access; T - trunk; H - hybrid |
Link type of the interface: · A—Access. · H—Hybrid. · T—Trunk. |
Interface |
Abbreviated interface name. |
Link |
Physical link state of the interface: · UP—The interface is physically up. · DOWN—The interface is physically down. · ADM—The interface has been shut down by using the shutdown command. To restore the physical state of the interface, use the undo shutdown command. · BLOCK—The interface is in blocked state and cannot receive any packets. The loop detection feature on the iOptic node detected a loop on the interface and blocked the interface. The interface will restore to normal state after you check the physical connection of the iOptic node and remove the loop. |
Speed |
Speed of the interface, in Mbps: · Auto. · 10. · 100. · 200. · 1000. · 2000. · 2500. · 5000. · 10000. · 20000. |
Duplex |
Duplex mode of the interface: · A—Autonegotiation. The interface is configured to autonegotiate its duplex mode. · F—Full duplex. · F(a)—Autonegotiated full duplex. · H—Half duplex. · H(a)—Autonegotiated half duplex. |
Type |
Link type of the interface: · A—Access. · H—Hybrid. · T—Trunk. |
PVID |
Port VLAN ID (PVID) of the interface. |
Uplink |
Whether the interface is an uplink interface: · No. · Yes. |
# Display detailed information about all interfaces on iOptic node 1.
<Sysname> display smartmc light-unit 1 port
Port name: Port 1
Current state: DOWN
Unknown-speed mode, unknown-duplex mode
Link speed type is autonegotiation, Link duplex type is autonegotiation
PVID: 1
Port link-type: Hybrid
Tagged VLANs: None
Untagged VLANs: 1(default vlan)
Last 60 seconds input : 0 packets/sec 0 bytes/sec
Last 60 seconds output : 0 packets/sec 0 bytes/sec
Input (total): 0 packets
0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses,
0 jumbos, 0 discards
Input: 0 input errors, 0 input CRC
Output (total): 0 packets
0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses,
0 jumbos, 0 discards
Output: 0 output errors, 0 output CRC
Table 7 Command output
Field |
Description |
Port name |
Interface ID. |
Current state |
Physical link state of the interface: · Administratively DOWN—The interface has been shut down by using the shutdown command. · DOWN—The interface is administratively up, but its physical state is down (possibly because no physical link exists or the link has failed). · UP—The interface is both administratively and physically up. · BLOCK—The interface is in blocked state and cannot receive any packets. The loop detection feature on the iOptic node detected a loop on the interface and blocked the interface. The interface will restore to normal state after you check the physical connection of the iOptic node and remove the loop. |
XXbps-speed mode |
The interface is operating at XX bps. This field depends on your configuration and the link parameter negotiation result. |
Unknown-speed mode |
The speed of the interface is unknown because the speed negotiation fails or the interface is physically disconnected. |
half-duplex mode |
The interface is operating in half duplex mode. This field depends on your configuration and the link parameter negotiation result. |
full-duplex mode |
The interface is operating in full duplex mode. This field depends on your configuration and the link parameter negotiation result. |
unknown-duplex mode |
The duplex mode of the interface is unknown because the duplex mode negotiation fails or the interface is physically disconnected. |
PVID |
Port VLAN ID of the interface. |
Port link-type |
Link type of the interface: · access. · trunk. · hybrid. |
Tagged VLANs |
VLANs for which the interface sends packets with VLAN tags. |
UnTagged VLANs |
VLANs for which the interface sends packets without VLAN tags. |
Last 60 seconds input : 0 packets/sec 0 bytes/sec -% Last 60 seconds output : 0 packets/sec 0 bytes/sec -% |
Average inbound or outbound traffic rate (in pps and Bps), and the ratio of the actual rate to the interface bandwidth. |
Input (total): 0 packets 0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses, 0 jumbos, 0 discards |
The two fields on the first line represent the inbound traffic statistics (in packets) for the interface. All inbound normal packets, abnormal packets, and normal pause frames were counted. The four fields on the second line represent: · Number of inbound unicast packets. · Number of inbound broadcast packets. · Number of inbound multicast packets. · Number of inbound pause frames. The two fields on the third line represent: · Number of inbound jumbo frames. · Number of dropped inbound packets. A hyphen (-) indicates that the statistical item is not supported. |
Input: 0 input errors, 0 input CRC |
The number of inbound error packets. The number of inbound frames that had a normal length, but contained CRC errors. |
Output (total): 0 packets 0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses, 0 jumbos, 0 discards |
Outbound traffic statistics (in packets) for the interface. All outbound normal packets, abnormal packets, and normal pause frames were counted. The four fields on the second line represent: · Number of outbound unicast packets. · Number of outbound broadcast packets. · Number of outbound multicast packets. · Number of outbound pause frames. The two fields on the third line represent: · Number of outbound jumbo frames. · Number of dropped outbound packets. A hyphen (-) indicates that the statistical item is not supported. |
Output: 0 output errors, 0 output CRC |
The number of outbound error packets. The number of outbound frames that had a normal length, but contained CRC errors. |
display smartmc light-unit transceiver
Use display smartmc light-unit transceiver to display key parameters of transceiver modules on an iOptic node.
Syntax
display smartmc light-unit { id | name name } transceiver port [ port-id ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
id: Specifies the ID of an iOptic node. The value range for this argument is 1 to 255.
name name: Specifies the name of an iOptic node, a string of 1 to 31 characters.
port-id: Specifies an interface ID. The value range for this argument is 1 to 34.
Examples
# Display the key parameters of transceiver modules on iOptic node 1.
<Sysname> display smartmc light-unit 1 transceiver port
Port 1 transceiver information:
Transceiver type : 1000_BASE_SX_SFP
Transfer distance(m) : 550(50um),270(62.5um)
Vendor name : H3C
Manufacturing date : 2023-11-01
Serial number : 213410A0000054000251
Current diagnostic parameters:
Temp.(C) Voltage(V) Bias(mA) RX power(dBm) TX power(dBm)
36 3.31 6.13 -35.64 -5.19
Alarm thresholds:
Temp(C) Voltage(V) Bias(mA) RX power(dBm) TX power(dBm)
High 50 3.55 1.44 -10.00 5.00
Low 30 3.01 1.01 -30.00 0.00
Warning thresholds:
Temp(C) Voltage(V) Bias(mA) RX power(dBM) TX power(dBM)
High 45 3.25 1.25 -15.00 4.00
Low 25 2.85 0.85 -25.00 1.00
Table 8 Command output
Field |
Description |
Transceiver type |
Transceiver module model. |
Transfer distance(xx) |
Transmission distance, where xx indicates the distance unit: · km—Kilometers, for single-mode transceiver modules. · m—Meters, for other transceiver modules. If the transceiver module supports multiple types of transmission media, this field displays the transmission distances for all the types, which are separated by commas. The corresponding transmission medium is enclosed in the brackets following the transmission distance value. Available transmission media: · 9um—9/125 µm single-mode fiber (SMF). · 50um—50/125 µm OM2 multimode fiber (MMF). · 62.5um—62.5/125 µm OM1 MMF. · CX4—CX4 cable. · OM3—50 µm OM3 MMF. · OM4—50 µm OM4 MMF. · OM5—50 µm OM5 MMF. · STACK—Stack cable. · TP—Twisted pair cable. |
Vendor name |
Name of the vendor. |
Manufacturing date |
Manufacturing date of the transceiver module. |
Serial number |
Serial number of the transceiver module. |
Temp.(C) |
Temperature in Celsius degrees, accurate to 1°C. |
Voltage(V) |
Voltage in volts, accurate to 0.01 V. |
Bias(mA) |
Bias current in milli-amperes, accurate to 0.01 mA. |
RX power(dBm) |
Receive power in dBm, accurate to 0.01 dBm. |
TX power(dBm) |
Transmit power in dBm, accurate to 0.01 dBm. |
High |
Upper alarm threshold or upper warning threshold. |
Low |
Lower alarm threshold or lower warning threshold. |
display smartmc light-unit upgrade-info
Use display smartmc light-unit upgrade-info to display upgrade information about an iOptic node.
Syntax
display smartmc light-unit { id | name name } upgrade-info
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
id: Specifies the ID of an iOptic node. The value range for this argument is 1 to 255.
name name: Specifies the name of an iOptic node, a string of 1 to 31 characters.
Examples
# Display upgrade information about iOptic node 1.
<Sysname> display smartmc light-unit 1 upgrade-info
Auto upgrade : Enabled
ID IP address MAC address Status Update time Update file
1 192.168.56.1 82dd-a434-0200 Finished Immediately bootloader.ipe
2 192.168.56.103 5caf-2e5f-0100 Finished Immediately bootloader.ipe
Table 9 Command output
Field |
Description |
Auto upgrade |
Enabling status of automatic upgrade: · Enabled. · Disabled. |
ID |
ID of the iOptic node. |
MacAddress |
MAC address of the iOptic node. |
IpAddress |
IP address of the iOptic node. |
Status |
Upgrade state: · Waiting—The iOptic node is waiting for downloading the upgrade file. · Download-failed—The iOptic node failed to download the upgrade file. · Download-finished—The iOptic node has downloaded the upgrade file. · Downloading—The iOptic node is downloading the upgrade file. · Updating—The iOptic node is upgrading. · Finished—The iOptic node has finished upgrading. · Failed—The iOptic node failed to upgrade. · Unknown—The upgrade state of the iOptic node is unknown. |
UpdateFile |
Name of the upgrade file. |
UpdateTime |
Upgrade time: · Immediately—Upgrade at once. · Delay(m)—Upgrade after the specified delay. · Time(HH:MM)—Upgrade at the specified time. |
isolate enable
Use isolate enable to enable interface isolation for an iOptic node.
Use undo isolate enable to disable interface isolation for an iOptic node.
Syntax
isolate enable
undo isolate enable
Default
Interface isolation is disabled for an iOptic node.
Views
iOptic node view
Predefined user roles
network-admin
Usage guidelines
Application scenarios
This feature prevents the endpoints connected to an iOptic node from accessing each other at Layer 2 to enhance LAN security.
Operating mechanism
By default, all interfaces on an iOptic node belong to the same VLAN and the endpoints connected to the interfaces can access each other at Layer 2.
This feature isolates the interfaces on an iOptic node and enables the endpoints connected to the iOptic node to forward packets through the iOptic host. This allows you to manage the traffic of iOptic nodes on the iOptic host, which enhances LAN security.
Examples
# Enable interface isolation for iOptic node 1.
<Sysname> system-view
[Sysname] smartmc light-unit 1
[Sysname-lu-1] isolate enable
loopback-test internal
Use loopback-test internal to perform an internal loopback test for an interface of an iOptic node.
Syntax
loopback-test internal port port-id
Views
iOptic node view
Predefined user roles
network-admin
Parameters
port-id: Specifies an interface ID. The value range for this argument is 1 to 34.
Usage guidelines
Application scenarios
Use this feature to identify whether the interfaces on an iOptic node can forward packets correctly.
Operating mechanism
After you configure this feature on an interface of an iOptic node, the interface returns the packets to be forwarded to the device, allowing the packets to loop through the internal line. Then, you can identify whether the Ethernet forwarding path within the device can operate correctly.
Examples
# Perform an internal loopback test for interface 1 of iOptic node 1. The interface passed the test.
<Sysname> system-view
[Sysname] smartmc light-unit 1
[Sysname-lu-1] loopback-test internal port 1
Loopback test passed.
# Perform an internal loopback test for interface 3 of iOptic node 1. The interface failed the test.
<Sysname> system-view
[Sysname] smartmc light-unit 1
[Sysname-lu-1] loopback-test internal port 3
Loopback test failed.
name
Use name to configure a name for an iOptic node.
Use undo name to delete the name of an iOptic node.
Syntax
name sysname
undo name
Default
The iOptic host uses the MAC address of an iOptic node as its name.
Views
iOptic node view
Predefined user roles
network-admin
Parameters
sysname: Specifies the name of an iOptic node, a string of 1 to 31 characters.
Usage guidelines
Application scenarios
In the iOptic system, each iOptic node is uniquely identified by its ID. However, the iOptic node ID, a string of digits, is difficult to remember. To resolve such an issue, you can configure a name for each iOptic node for easier management.
To enter the configuration view of an iOptic node, configure a name for that iOptic node and then execute the smartmc light-unit name name command.
Restrictions and Guidelines
Do not configure the name of an iOptic node as the MAC address of another iOptic node.
Examples
# Configure the name of iOptic node 1 as fortest.
<Sysname> system-view
[Sysname] smartmc light-unit 1
[Sysname-lu-1] name fortest
poe enable
Use poe enable to enable PoE for PIs on an iOptic node.
Use undo poe enable to disable PoE for PIs on an iOptic node.
Syntax
poe enable port port-id-list
undo poe enable port port-id-list
Default
PoE is enabled for PIs on an iOptic node.
Views
iOptic node view
Predefined user roles
network-admin
Parameters
port port-id-list: Specifies a list of up to 10 PI items. Each item specifies a PI ID or a range of PI IDs in the form of port-id1 to port-id2. The value for the port-id2 argument cannot be lower than the value for the port-id1 argument. The value range for PI IDs is 1 to 34.
Usage guidelines
Enabled with PoE, the PIs on an iOptic node can provide PoE power for PDs if they support PoE output.
Examples
# Enable PoE for PI 1 on iOptic node 1.
<Sysname> system-view
[Sysname] smartmc light-unit 1
[Sysname-lu-1] poe enable port 1
poe force-power
Use poe force-power to enable forced PoE power supply for PIs on an iOptic node.
Use undo poe force-power to disable forced PoE power supply for PIs on an iOptic node.
Syntax
poe force-power port port-id-list
undo poe force-power port port-id-list
Default
Forced PoE power supply is disabled on PIs of an iOptic node.
Views
iOptic node view
Predefined user roles
network-admin
Parameters
port port-id-list: Specifies a list of up to 10 PI items. Each item specifies a PI ID or a range of PI IDs in the form of port-id1 to port-id2. The value for the port-id2 argument cannot be lower than the value for the port-id1 argument. The value range for PI IDs is 1 to 34.
Usage guidelines
CAUTION: This command enables an iOptic node to supply power to a PD directly without performing a detection of the PD. To avoid damaging the PD, make sure the power provided by the iOptic node meets the PD specifications before executing this command. |
Before supplying power to a PD, an iOptic node performs a detection of the PD by default. It supplies power to the PD only after the PD passes the detection. If the PD fails the detection but the power provided by the iOptic node meets the PD specifications, you can execute this command to enable forced power supply to the PD.
Examples
# Enable forced PoE power supply for PI 1 on iOptic node 1.
<Sysname> system-view
[Sysname] smartmc light-unit 1
[Sysname-lu-1] poe force-power port 1
poe standard
Use poe standard to specify a PoE standard for PIs on an iOptic node.
Use undo poe standard to restore the default.
Syntax
poe standard { af | at } port port-id-list
undo poe standard port-id-list
Default
The IEEE 802.3at standard is used.
Views
iOptic node view
Predefined user roles
network-admin
Parameters
af: Specifies the IEEE 802.3af standard.
at: Specifies the IEEE 802.3at standard.
port port-id-list: Specifies a list of up to 10 PI items. Each item specifies a PI ID or a range of PI IDs in the form of port-id1 to port-id2. The value for the port-id2 argument cannot be lower than the value for the port-id1 argument. The value range for PI IDs is 1 to 34.
Usage guidelines
Operating mechanism
IEEE released 802.3af (PoE) and 802.3at (PoE+) standards in chronological sequence. The standards are backward compatible but forwards incompatible. Before supplying power to a PD, a PI will detect the PD, determine the power class for the PD based on its power requirement, and supply power to the PD based on the power class.
· 802.3af—Defines four power classes 0 to 3 and provides a maximum power of 12.95 W.
· 802.3at—Adds class 4 in addition to the four power classes defined by 802.3af and provides a maximum power of 25.5 W.
Specify a PoE standard based on the power requirement of the PD. If the maximum power allowed by the standard is less than that required by the PD, the PI will not supply power to the PD.
Examples
# Specify the PoE standard as IEEE 802.3af for PI 1 on iOptic node 1.
<Sysname> system-view
[Sysname] smartmc light-unit 1
[Sysname-lu-1] poe standard af port 1
port hybrid pvid
Use port hybrid pvid to set the PVID of hybrid interfaces on an iOptic node.
Use undo port hybrid pvid to restore the default.
Syntax
port { uplink | port-id-list } hybrid pvid vlan vlan-id
undo port { uplink | port-id-list } hybrid pvid vlan
Default
The interfaces on an iOptic node do not check VLAN information for packets and transparently transmit all the packets.
Views
iOptic node view
Predefined user roles
network-admin
Parameters
port port-id-list: Specifies a list of up to 10 PI items. Each item specifies a PI ID or a range of PI IDs in the form of port-id1 to port-id2. The value for the port-id2 argument cannot be lower than the value for the port-id1 argument. The value range for PI IDs is 1 to 34.
uplink: Specifies the uplink aggregate interface.
vlan-id: Specifies a VLAN ID in the range of 1 to 4094.
Usage guidelines
Operating mechanism
An iOptic node uses a physical interface as the uplink interface to connect to an iOptic host. For iOptic nodes that have two uplink interfaces, they can aggregate the two interfaces automatically. Support for auto uplink interface aggregation depends on the model and software version of iOptic nodes. An iOptic host can automatically identify whether an iOptic node supports uplink interface aggregation. Use the uplink keyword or port-id-list argument as prompted.
· For iOptic nodes that aggregate uplink interfaces automatically, the two uplink interfaces operate as follows:
¡ In versions earlier than a specific version, the two interfaces back up each other, but only one interface is active for packet forwarding at the same time. In this case, the uplink keyword is not supported. Use the port-id-list argument when you configure VLANs for iOptic nodes.
¡ In a specific version and later versions, the two interfaces back up each other, and can forward traffic at the same time for load balancing. In this case, use the uplink keyword when you configure VLANs for iOptic nodes. To avoid configuration failures, do not use the port-id-list argument.
- If you upgrade a device from a version that does not support the uplink keyword to a version that supports the uplink keyword, the port-id-list configuration in the configuration file still takes effect for backward compatibility.
- If you downgrade a device from a version that supports the uplink keyword to a version that does not support the uplink keyword, and then upgrade the device back to a version that supports the keyword, the configuration file of the device contains both the uplink and port-id-list configurations. In this case, the uplink configuration takes effect.
For information about the version from which an iOptic node supports uplink interface aggregation, see the documentation for the iOptic node.
· For iOptic nodes that do not support uplink interface aggregation, the two interfaces back up each other, but only one interface is active for packet forwarding at the same time. Use the port-id-list argument when you configure VLANs for iOptic nodes.
You can use a nonexistent VLAN as the PVID of a hybrid interface. When you delete the PVID of a hybrid interface by using the undo vlan command, the PVID setting of the interface does not change.
Restrictions and guidelines
This command takes effect on an iOptic node only when its VLAN mode is manual. The default VLAN mode for an iOptic node is transparent.
To enable a hybrid interface to transmit packets from its PVID, you must assign the hybrid interface to the PVID by using the port hybrid vlan command.
For correct packet transmission, set the same PVID for a hybrid interface on the local device and the hybrid interface on the switch connected to the device.
Examples
# Set the PVID of PI 1 on iOptic node 1 to VLAN 100, and assign PI 1 to VLAN 100 as an untagged member.
<Sysname> system-view
[Sysname] smartmc light-unit 1
[Sysname-lu-1] port 1 hybrid pvid vlan 100
[Sysname-lu-1] port 1 hybrid vlan 100 untagged
Related commands
port hybrid vlan
vlan mode
port hybrid vlan
Use port hybrid vlan to assign hybrid interfaces on an iOptic node to the specified VLANs.
Use undo port hybrid vlan to remove hybrid interfaces on an iOptic node from the specified VLANs.
Syntax
port { uplink | port-id-list } hybrid vlan vlan-id-list { tagged | untagged }
undo port { uplink | port-id-list } hybrid vlan vlan-id-list
Default
The interfaces on an iOptic node do not check VLAN information for packets and transparently transmit all the packets.
Views
iOptic node view
Predefined user roles
network-admin
Parameters
port port-id-list: Specifies a list of up to 10 PI items. Each item specifies a PI ID or a range of PI IDs in the form of port-id1 to port-id2. The value for the port-id2 argument cannot be lower than the value for the port-id1 argument. The value range for PI IDs is 1 to 34.
uplink: Specifies the uplink aggregate interface.
vlan-id-list: Specifies a space-separated list of up to 10 VLAN items. Each item specifies a VLAN ID or a range of VLAN IDs in the form of vlan-id1 to vlan-id2. The value range for VLAN IDs is 1 to 4094. The value for the vlan-id2 argument cannot be lower than the value for the vlan-id1 argument.
tagged: Configures the interface as a tagged member of the specified VLANs. A tagged member of a VLAN sends packets from the VLAN without removing VLAN tags.
untagged: Configures the interface as an untagged member of the specified VLANs. An untagged member of a VLAN sends packets from the VLAN after removing VLAN tags.
Usage guidelines
Operating mechanism
An iOptic node uses a physical interface as the uplink interface to connect to an iOptic host. For iOptic nodes that have two uplink interfaces, they can aggregate the two interfaces automatically. Support for auto uplink interface aggregation depends on the model and software version of iOptic nodes. An iOptic host can automatically identify whether an iOptic node supports uplink interface aggregation. Use the uplink keyword or port-id-list argument as prompted.
· For iOptic nodes that aggregate uplink interfaces automatically, the two uplink interfaces operate as follows:
¡ In versions earlier than a specific version, the two interfaces back up each other, but only one interface is active for packet forwarding at the same time. In this case, the uplink keyword is not supported. Use the port-id-list argument when you configure VLANs for iOptic nodes.
¡ In a specific version and later versions, the two interfaces back up each other, and can forward traffic at the same time for load balancing. In this case, use the uplink keyword when you configure VLANs for iOptic nodes. To avoid configuration failures, do not use the port-id-list argument.
- If you upgrade a device from a version that does not support the uplink keyword to a version that supports the uplink keyword, the port-id-list configuration in the configuration file still takes effect for backward compatibility.
- If you downgrade a device from a version that supports the uplink keyword to a version that does not support the uplink keyword, and then upgrade the device back to a version that supports the keyword, the configuration file of the device contains both the uplink and port-id-list configurations. In this case, the uplink configuration takes effect.
· For iOptic nodes that do not support uplink interface aggregation, the two interfaces back up each other, but only one interface is active for packet forwarding at the same time. Use the port-id-list argument when you configure VLANs for iOptic nodes.
A hybrid interface can allow multiple VLANs. If you execute this command multiple times on a hybrid interface, the hybrid interface allows all the specified VLANs.
Restrictions and Guidelines
This command takes effect on an iOptic node only when its VLAN mode is manual. The default VLAN mode for an iOptic node is transparent.
Examples
# Assign PI 1 on iOptic node 1 to VLAN 2, VLAN 4, and VLAN 50 through VLAN 100 as a tagged member.
<Sysname> system-view
[Sysname] smartmc light-unit 1
[Sysname-lu-1] port 1 hybrid vlan 2 4 50 to 100 tagged
Related commands
port hybrid pvid
vlan mode
reboot
Use reboot to reboot an iOptic node.
Syntax
reboot
Views
iOptic node view
Predefined user roles
network-admin
Usage guidelines
Use this command to reboot an iOptic node when it is faulty.
Examples
# Reboot iOptic node 1.
<Sysname> system-view
[Sysname] smartmc light-unit 1
[Sysname-lu-1] reboot
This command will reboot the light unit. Continue? [Y/N]:y
Now rebooting light unit 1
Reboot light unit success.
reset smartmc light-unit configuration history
Use reset smartmc light-unit configuration history to clear the configuration deployed from the iOptic host to iOptic nodes.
Syntax
reset smartmc light-unit configuration history
Views
System view
Predefined user roles
network-admin
Usage guidelines
Use this command to clear the deployed configuration for the iOptic host to record new configuration.
Examples
# Clear the configuration deployed from the iOptic host to iOptic nodes.
<Sysname> system-view
[Sysname] reset smartmc light-unit configuration history
Related commands
display smartmc light-unit configuration history
restart poe port
Use restart poe port to restart PoE on PIs of an iOptic node.
Syntax
restart poe port port-id-list
Views
iOptic node view
Predefined user roles
network-admin
Parameters
port port-id-list: Specifies a list of up to 10 PI items. Each item specifies a PI ID or a range of PI IDs in the form of port-id1 to port-id2. The value for the port-id2 argument cannot be lower than the value for the port-id1 argument. The value range for PI IDs is 1 to 34.
Usage guidelines
When an iOptic node has a PoE power supply issue, you can use this command to restart PoE to resolve the issue.
Examples
# Restart PoE on PI 1 of iOptic node 1.
<Sysname> system-view
[Sysname] smartmc light-unit 1
[Sysname-lu-1] restart poe port 1
shutdown
Use shutdown to shut down interfaces on an iOptic node.
Use undo shutdown to bring up interfaces on an iOptic node.
Syntax
shutdown port port-id-list
undo shutdown port port-id-list
Default
The interfaces on an iOptic node are up.
Views
iOptic node view
Predefined user roles
network-admin
Parameters
port port-id-list: Specifies a list of up to 10 PI items. Each item specifies a PI ID or a range of PI IDs in the form of port-id1 to port-id2. The value for the port-id2 argument cannot be lower than the value for the port-id1 argument. The value range for PI IDs is 1 to 34.
Usage guidelines
CAUTION: Executing the shutdown command disconnects the links of the specified interfaces and interrupts communication. Use this command with caution. |
Some interface settings might require an interface restart before they can take effect.
The iOptic system automatically discovers and records the uplink interfaces of iOptic nodes. Do not use this command to shut down the uplink interfaces of iOptic nodes.
Examples
# Bring up interface 1 on iOptic node 1.
<Sysname> system-view
[Sysname] smartmc light-unit 1
[Sysname-lu-1] undo shutdown port 1
smartmc auto-upgrade enable
Use smartmc auto-upgrade enable to enable automatic upgrade for iOptic nodes.
Use undo smartmc auto-upgrade enable to disable automatic upgrade for iOptic nodes.
Syntax
undo smartmc auto-upgrade enable
Default
Automatic upgrade is disabled for iOptic nodes.
Views
System view
Predefined user roles
network-admin
Usage guidelines
Operating mechanism
Configured with this feature, the iOptic host automatically identifies whether the software version of an onboarding iOptic node is compatible with its own. If they are not compatible, the iOptic node software is automatically upgraded.
Prerequisites
1. Execute the display version command on the iOptic host to obtain its running software version.
2. Obtain the most recent software version of the iOptic nodes that is compatible with the iOptic host software version based on the release notes of the iOptic host.
3. Upload the startup software package of the iOptic nodes to the iOptic host. For the automatic upgrade feature to take effect, make sure the iOptic host has the startup software package of the iOptic nodes.
Restrictions and Guidelines
In a distributed deployment scenario, you must also upload the target iOptic node version to the iOptic host.
If you do not enable this feature and the iOptic node software version is incompatible with that of the iOptic host, an iOptic node can still come online and forward packets. To avoid affecting iOptic node management on the iOptic host, upgrade the iOptic node immediately.
Examples
# Enable automatic upgrade for iOptic nodes.
<Sysname> system-view
[Sysname] smartmc auto-upgrade enable
smartmc bind tc
Use smartmc bind tc to bind an iOptic node ID to an iOptic node.
Use undo smartmc bind tc to unbind an iOptic node ID from an iOptic node.
Syntax
smartmc bind tc tc-id mac-address mac-address
undo smartmc bind tc tc-id
Default
An iOptic node ID is not bound to an iOptic node.
Views
System view
Predefined user roles
network-admin
Parameters
tc tc-id: Specifies an iOptic node ID. The value range for the tc-id argument is 1 to 255.
mac-address mac-address: Specifies a MAC address in the format of H-H-H.
Usage guidelines
When an iOptic node registers with the iOptic host, the iOptic host automatically allocates an ID to that iOptic node. In the iOptic system, this ID uniquely identifies that iOptic node. Then, the iOptic host automatically generates this command to record the mappings between the ID and the MAC address of the iOptic node. This command is used for the iOptic system within the device, which is not configurable.
smartmc enable
Use smartmc enable to enable SmartMC for the iOptic host.
Use undo smartmc enable to disable SmartMC for the iOptic host.
Syntax
smartmc tm username username password { cipher | simple } string enable
undo smartmc enable
Default
SmartMC is disabled for the iOptic host.
Views
System view
Predefined user roles
network-admin
Usage guidelines
Operating mechanism
An iOptic host and its connected iOptic nodes form an iOptic system. The members in the iOptic system discover each other at Layer 2 through SmartMC. In this way, the iOptic system is also a SmartMC network. With this feature configured, the iOptic host acts as the topology master (TM), and the iOptic nodes act as topology clients (TCs). Enabled with the iOptic node mode, an iOptic node is automatically enabled with SmartMC and operates as a TC. In the iOptic system, you only need to enable the iOptic node mode on iOptic nodes and no other settings are required for them. For information about the factory default mode of an iOptic node, see its product documentation. For more information about SmartMC, see Network Management and Monitoring Configuration Guide.
An iOptic host supports both the SmartMC and iOptic system features. For information about configuring a pure SmartMC network, see Network Management and Monitoring Configuration Guide. For information about configuring an iOptic network, see the configuration guide. Do not deploy both networks on an iOptic host. An iOptic host broadcasts scanning packets to discover TCs and determines the network type based on the type of the first TC that responds to the scanning packet.
Restrictions and guidelines
A SmartMC network can have only one management device.
Changing the management device to a member device or disabling SmartMC for the management device clears the running configuration related to SmartMC.
The SmartMC feature consumes certain ACL resources. If the ACL resources are insufficient, SmartMC will fail to be enabled. To resolve such an issue, perform the following tasks:
1. Obtain the ACL configuration and running status by using the display acl command.
2. Delete unnecessary ACLs by using the undo acl command as required.
3. Enable SmartMC again.
For more information about ACL, see ACL and QoS Configuration Guide.
When you enable SmartMC, the device identifies whether HTTP port 80, HTTPS port 443, and CoAP port 5683 are in use. If any of these ports is occupied, SmartMC will fail to be enabled.
If you execute this command multiple times, the most recent configuration takes effect. You can use the smartmc enable command to enable SmartMC on an iOptic or SmartMC network. The SmartMC network requires a username and password, but the iOptic network does not.
Examples
# Enable SmartMC for the iOptic host.
<Sysname> system-view
[Sysname] smartmc tm username test password simple hello12345 enable
smartmc light-unit
Use smartmc light-unit to enter the view of an iOptic node.
Use undo smartmc light-unit to delete an iOptic node.
Syntax
smartmc light-unit { id | name name }
undo smartmc light-unit { id | name name }
Views
System view
Predefined user roles
network-admin
Parameters
id: Specifies an iOptic node by its ID. An iOptic node is uniquely identified by its ID. The value range for this argument is 1 to 255.
name name: Specifies an iOptic node by its name, a string of 1 to 31 characters.
Usage guidelines
Application scenarios
Use this feature to configure the parameters, such as the name, description, interface VLANs, and PoE settings of an iOptic node.
Operating mechanism
The iOptic host automatically allocates IDs to iOptic nodes as follows:
1. Enabled with SmartMC, the iOptic host automatically broadcasts a discovery packet to discover iOptic nodes.
2. Upon receiving the discovery packets, the iOptic nodes automatically register with the iOptic host.
3. The iOptic host automatically allocates an ID to each iOptic node. An iOptic node has only one ID and is uniquely identified by it. The iOptic host can manage iOptic nodes.
To view the mappings between iOptic nodes and their IDs, use the display smartmc light-unit command.
You can enter the view of an iOptic node by using its ID to configure its name. Then, you can enter the view of the iOptic node by either its ID or name to configure its description, interface VLANs, and PoE settings.
Restrictions and guidelines
You can enter the view of an iOptic node only when the iOptic node is in normal state.
When an iOptic node is in idle or offline state, you can delete it by using the undo smartmc light-unit command.
Examples
# Enter the view of iOptic node 1.
<Sysname> system-view
[Sysname] smartmc light-unit 1
[Syaname-lu-1]
smartmc management-vlan
Use smartmc management-vlan to configure the SmartMC management VLAN.
Use undo smartmc management-vlan to restore the default.
Syntax
smartmc management-vlan vlan-id
undo smartmc management-vlan
Default
The SmartMC management VLAN is VLAN 1.
Views
System view
Predefined user roles
network-admin
Parameters
vlan-id: Specifies the SmartMC management VLAN ID, in the range of 1 to 4094. Before you specify a VLAN as the SmartMC management VLAN, create that VLAN.
Usage guidelines
Application scenarios
Use the SmartMC management VLAN to separate the management packets from other service packets in the iOptic system.
Operating mechanism
An iOptic system is set up as follows:
1. Enabled with SmartMC, the iOptic host broadcasts a SmartMC scanning packet to discover iOptic nodes. Upon receiving the scanning packet, an iOptic node sends a response to register with the iOptic host.
2. If the SmartMC management VLAN is configured, the iOptic host establishes the CoAP session with the iOptic node in the SmartMC management VLAN.
3. By default, the iOptic host actively establishes a CoAP session (management channel) with the iOptic node in VLAN 1.
4. The iOptic host sends a successful registration packet to the iOptic node and the iOptic node joins the iOptic system.
The SmartMC management VLAN is dedicated to transmitting protocol packets for the iOptic system management plane. Broadcast packets are restricted within the management VLAN, effectively separating protocol packets on the iOptic system management plane from the service packets and other protocol packets. This facilitates the construction and maintenance of the iOptic network and enhances its security.
Restrictions and guidelines
When the device runs as a SmartMC TC, the system automatically deletes this configuration.
Examples
# Configure the SmartMC management VLAN as VLAN 2.
<Sysname> system-view
[Sysname] smartmc management-vlan 2
vlan mode
Use vlan mode to specify the VLAN mode for an iOptic node.
Use undo vlan mode to restore the default.
Syntax
vlan mode { manual | transparent }
undo vlan mode
Default
The VLAN mode for an iOptic node is transparent.
Views
iOptic node view
Predefined user roles
network-admin
Parameters
manual: Specifies the manual mode. In this mode, you can edit the VLAN settings of an interface. By default, an interface uses PVID VLAN 1, which is added to the permitted VLAN list of the interface as an untagged member.
transparent: Specifies the transparent mode.
Usage guidelines
Operating mechanism
An iOptic node supports the following VLAN modes:
· Transparent mode—In this mode, the iOptic node forwards packets based on the destination MAC address no matter whether service packets carry the VLAN tag or their VLAN IDs or not. In transparent mode, you cannot edit the VLAN settings of interfaces on the iOptic node. To configure VLANs based on MAC addresses or subnets for service packets, perform the configuration on the interface that connects the iOptic host to the iOptic node.
· Manual mode—In this mode, an interface operates in hybrid mode and VLANs are configured based on interfaces. After you switch the VLAN mode to manual, the interface uses PVID VLAN 1, which is added to the permitted VLAN list of the interface as an untagged member. To change the PVID of the interface, use the port hybrid pvid command. To assign the interface to specified VLANs, use the port hybrid vlan command.
Restrictions and guidelines
In transparent mode, user traffic cannot be isolated based on VLANs on an iOptic node. To isolate user traffic, configure the interface isolation feature for the iOptic node or isolate user traffic on the iOptic host.
Examples
# Configure the VLAN mode for iOptic node 1 as manual.
<Sysname> system-view
[Sysname] smartmc light-unit 1
[Sysname-lu-1] vlan mode manual
# Configure the VLAN mode for iOptic node 1 as transparent.
<Sysname> system-view
[Sysname] smartmc light-unit 1
[Sysname-lu-1] vlan mode transparent
This operation will clear the VLAN configuration of the remote-unit. Continue? [Y/N]:y
Related commands
isolate enable
port hybrid pvid
port hybrid vlan