- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
03-Hardware resource management commands | 285.65 KB |
Hardware resource management commands
display cpu-usage configuration
display hardware-resource bfd_enhance
display hardware-resource port-speed
display hardware-resource smartman
display transceiver itu-channel
hardware-failure-protection aggregation
monitor resend cpu-usage core-interval
parity-error consistency-check log enable
parity-error consistency-check threshold
parity-error monitor log enable
parity-error monitor threshold
parity-error unrecoverable log enable
parity-error unrecoverable period
parity-error unrecoverable reboot
parity-error unrecoverable threshold
power-supply surplus-power enable
Hardware resource management commands
display alarm
Use display alarm to display device hardware alarm information.
Syntax
display alarm [ slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
slot slot-number: Specifies the slot number of the device, which is fixed at 1.
Examples
# Display device hardware alarm information.
<Sysname> display alarm
Slot CPU Level Info
1 0 ERROR faulty
Table 1 Command output
Field |
Description |
Slot |
Slot that generated the alarm. If the alarm was generated by the frame, this field displays a hyphen (-). |
Level |
Alarm severity. Possible values include ERROR, WARNING, NOTICE, and INFO, in descending order. |
Info |
Detailed alarm information: · faulty—The slot is starting up or faulty. · Fan n is absent—The specified fan is absent. · Power n is absent—The specified power module is absent. · Power n is faulty—The specified power module is faulty. · The temperature of sensor n exceeds the lower limit—The temperature of the specified sensor is lower than the low-temperature threshold. · The temperature of sensor n exceeds the upper limit—The temperature of the specified sensor is higher than the high-temperature warning threshold. |
display alarm active
Use display alarm active to display information about active alarms.
Syntax
display alarm active
Views
Any view
Predefined user roles
network-admin
network-operator
Usage guidelines
If the device is operating abnormally, you can use the display alarm command to view alarm information. To view historical alarms that have been cleared, use the display alarm history command. To view active alarms that have not been cleared, use the display alarm active command.
Examples
# Display information about active alarms.
<Sysname>display alarm active
Seq Level Time Info
24 MINOR 2020-01-11 12:40:00 CPU usage is in minor alarm state on slot 1 cpu 0.
23 MINOR 2020-01-11 12:30:00 Memory usage is in minor alarm state on slot 1 cpu 0.
22 WARNING 2020-01-11 12:30:00 Interface GigabitEthernet2/0/2 changed to DOWN state.
Field |
Description |
Seq |
Alarm sequence number, assigned when an alarm occurs. |
Level |
Alarm severity. The values include CRITICAL, MAJOR, MINOR, and WARNING, in descending order of severity. |
Time |
Time when the alarm occurred. |
Info |
Detailed alarm information. The values include: · Memory usage is in minor alarm state on slot xx cpu xx—The free memory size available to the specified CPU is below the minor alarm threshold. · Memory usage is in severe alarm state on slot xx cpu xx—The free memory size available to the specified CPU is below the severe alarm threshold. · Memory usage is in critical alarm state on slot xx cpu xx—The free memory size available to the specified CPU is below the critical alarm threshold. · CPU usage is in minor alarm state on slot xx cpu xx—The usage of the specified CPU has exceeded the minor alarm threshold. · CPU usage is in critical alarm state on slot xx cpu xx—The usage of the specified CPU has exceeded the critical alarm threshold. · Interface interface-name changed to DOWN state—The specified interface went down. |
display alarm history
Use display alarm history to display information about historical alarms that have been cleared.
Syntax
display alarm history [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
verbose: Displays detailed information. If you do not specify this keyword, this command displays brief information.
Usage guidelines
If the device is operating abnormally, use the display alarm command to view the alarm information. To view historical alarms that have been cleared, use the display alarm history command. To view active alarms that have not been cleared on the device, use the display alarm active command.
The maximum number of historical alarms that can be displayed by this command varies by device model.
Examples
# Display information about historical alarms.
<Sysname> display alarm history
Seq Time Info
23 2020-01-11 12:40:00 CPU usage severe alarm cleared on slot 1 cpu 0.
22 2020-01-11 12:30:00 Memory usage severe alarm cleared on slot 1 cpu 0.
21 2020-01-11 12:30:00 Physical state of GigabitEthernet2/0/2 changed back to UP.
20 2020-01-11 12:30:00 Protocol state of GigabitEthernet2/0/2 changed back to UP.
Table 3 Command output
Field |
Description |
Seq |
Alarm sequence number, assigned when an alarm occurs. |
Level |
Alarm severity. The values include CRITICAL, MAJOR, MINOR, and WARNING, in descending order of severity. |
Time |
Time when the alarm occurs. |
Info |
Detailed alarm information. The values include: · Memory usage is in minor alarm state on slot xx cpu xx—The free memory size available to the specified CPU is below the minor alarm threshold. · Memory usage is in severe alarm state on slot xx cpu xx—The free memory size available to the specified CPU is below the severe alarm threshold. · Memory usage is in critical alarm state on slot xx cpu xx—The free memory size available to the specified CPU is below the critical alarm threshold. · CPU usage is in minor alarm state on slot xx cpu xx—The usage of the specified CPU has exceeded the minor alarm threshold. · CPU usage is in critical alarm state on slot xx cpu xx—The usage of the specified CPU has exceeded the critical alarm threshold. · Interface interface-name changed to DOWN state—The specified interface went down. |
# Display detailed information about historical alarms.
<Sysname> display alarm history verbose
Seq 24
Alarm name: CPUUsageMajor
Alarm source: Slot 1 cpu 0
Level: MAJOR
Occurred at: 2020-01-11 12:30:00
Info: CPU usage severe alarm occurred on state slot 1 cpu 0.
Cleared at: 2020-01-11 12:40:30
Info: CPU usage severe alarm cleared on slot 1 cpu 0.
Seq 23
Alarm name: MemoryUsageMajor
Level: MAJOR
Alarm source: Slot 1 CPU 0
Occurred at: 2020-01-11 12:35:00
Info: Memory usage severe alarm occurred on slot 1 cpu 0.
Cleared at: 2020-01-11 12:45:30
Info: Memory usage severe alarm cleared on slot 1 cpu 0.
Table 4 Command output
Field |
Description |
Seq |
Alarm sequence number, assigned automatically by the system when an alarm occurs. |
Alarm name |
Name of the alarm. |
AlarmPosition |
Location where the alarm occurred. |
Occurred at |
Time when the alarm occurred. |
Level |
Alarm severity. The values include CRITICAL, MAJOR, MINOR, and WARNING, in descending order of severity. |
Cleared at |
Time when the alarm is cleared. |
Info |
Detailed alarm information. |
display cpu-usage
Use display cpu-usage to display the current CPU usage statistics.
Syntax
display cpu-usage [ summary ] [ slot slot-number [ cpu cpu-number [ core { core-number | all } ] ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
summary: Displays CPU usage statistics in table form. If you do not specify this keyword, the command displays CPU usage statistics in text form.
slot slot-number: Specifies the slot number of the device, which is fixed at 1.
cpu cpu-number: Specifies a CPU by its number.
core core-number: Specifies a CPU core by its number.
core all: Specifies all CPU cores.
Usage guidelines
If two hyphens (--) are displayed for the CPU usage during the most recent 5-second, 1-minute, and 5-minute intervals, the command might fail to obtain data from the database on the device. Try the command later.
Examples
# Display the current CPU usage statistics in text form.
<Sysname> display cpu-usage
Slot 1 CPU 0 CPU usage:
1% in last 5 seconds
1% in last 1 minute
1% in last 5 minutes
# Display the current CPU usage statistics in table form.
<Sysname> display cpu-usage
Slot CPU Last 5 sec Last 1 min Last 5 min
1 0 17% 29% 28%
Table 5 Command output
Field |
Description |
x% in last 5 seconds Last 5 sec |
Average CPU usage during the most recent 5-second interval. If this statistics collection feature is not supported, two hyphens (--) are displayed. |
y% in last 1 minute Last 1 min |
Average CPU usage during the most recent 1-minute interval. If this statistics collection feature is not supported, two hyphens (--) are displayed. |
z% in last 5 minutes Last 5 min |
Average CPU usage during the most recent 5-minute interval. If this statistics collection feature is not supported, two hyphens (--) are displayed. |
display cpu-usage configuration
Use display cpu-usage configuration to display CPU usage monitoring settings.
Syntax
display cpu-usage configuration [ slot slot-number [ cpu cpu-number ] ]
Views
Any view
Predefined user roles
network-admin
Parameters
slot slot-number: Specifies the slot number of the device, which is fixed at 1.
cpu cpu-number: Specifies a CPU by its number.
Examples
# Display the CPU usage monitoring settings.
<Sysname> display cpu-usage configuration
CPU usage monitor is enabled.
Current monitor interval is 60 seconds.
Current severe alarm threshold is 99%.
Current minor alarm threshold is 79%.
Table 6 Command output
Field |
Description |
CPU usage monitor is enabled. |
CPU usage tracking is enabled. |
Current monitor interval is 60 seconds. |
Sampling interval for CPU usage tracking is 60 seconds. |
Related commands
monitor cpu-usage enable
monitor cpu-usage interval
monitor cpu-usage threshold
display cpu-usage history
Use display cpu-usage history to display the historical CPU usage statistics in a coordinate system.
Syntax
display cpu-usage history [ job job-id ] [ slot slot-number [ cpu cpu-number ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
job job-id: Specifies a process by its ID. The value range for job-id is 1 to 2147483647. If you do not specify a process, this command displays the statistics for the entire system's CPU usage (the total CPU usage of all processes). To view the IDs and names of the running processes, use the display process command. For more information, see Network Management and Monitoring Command Reference.
slot slot-number: Specifies the slot number of the device, which is fixed at 1.
cpu cpu-number: Specifies a CPU by its number. If you specify a process but do not specify a CPU, this command displays the statistics for the default CPU. If you do not specify a process or CPU, this command displays the historical statistics for all CPUs.
Usage guidelines
After CPU usage tracking is enabled, the system regularly samples CPU usage and saves the samples to a buffer. This command displays the most recent 60 samples in a coordinate system as follows:
· The vertical axis represents the CPU usage. If a statistic is not a multiple of the usage step, it is rounded up or down to the closest multiple of the usage step. For example, if the CPU usage step is 5%, the statistic 53% is rounded up to 55%, and the statistic 52% is rounded down to 50%.
· The horizontal axis represents the time.
· Pound signs (#) indicate the CPU usage. The value on the vertical axis for the topmost pound sign at a specific time represents the CPU usage at that time.
Examples
# Display the historical CPU usage statistics.
<Sysname> display cpu-usage history
100%|
95%|
90%|
85%|
80%|
75%|
70%|
65%|
60%|
55%|
50%|
45%|
40%|
35%|
30%|
25%|
20%|
15%| #
10%| ### #
5%| ########
------------------------------------------------------------
10 20 30 40 50 60 (minutes)
cpu-usage (Slot 1 CPU 0) last 60 minutes (SYSTEM)
The output shows the following items:
· Process name. The name SYSTEM represents the entire system.
· CPU that is holding the process: CPU 0 in slot 1.
· Historical CPU usage statistics for the entire system during the last 60 minutes.
¡ 12 minutes ago—Approximately 5%.
¡ 13 minutes ago—Approximately 10%.
¡ 14 minutes ago—Approximately 15%.
¡ 15 minutes ago—Approximately 10%.
¡ 16 and 17 minutes ago—Approximately 5%.
¡ 18 minutes ago—Approximately 10%.
¡ 19 minutes ago—Approximately 5%.
¡ Other time—2% or lower.
monitor cpu-usage enable
monitor cpu-usage interval
display device
Use display device to display device hardware information.
Syntax
display device [ flash | usb ] [ slot slot-number [ subslot subslot-number ] | verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
flash: Displays flash memory information.
usb: Displays USB interface information.
slot slot-number: Specifies the slot number of the device, which is fixed at 1.
subslot subslot-number: Specifies a subcard by its subslot number. If you do not specify a subcard, this command does not display information about any subcards.
verbose: Displays detailed information. If you do not specify this keyword, this command displays brief information, and does not display firewall card information.
Usage guidelines
If you do not specify the cf-card, flash, harddisk, sd-card, and usb keywords, this command displays hardware information about member devices.
Examples
# Display device hardware information.
<Sysname> display device
Slot Subslot Type State Soft Ver Patch Ver
1 0 S12500R-48Y8C Master S12500R-48Y8C-5203P01 None
Table 7 Command output
Field |
Description |
Type |
Device type. |
Soft Ver |
Software version of the card. |
Patch Ver |
Most recently released patch image version that is running on the device. If no patch image is installed, this field displays None. If both incremental and non-incremental patch images are running on the device, this field displays the most recently released incremental patch image version. For more information about patch image types, see "Upgrading software." |
display device manuinfo
Use display device manuinfo to display hardware electronic label information for the device.
Syntax
display device manuinfo [ slot slot-number [ subslot subslot-number ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
slot slot-number: Specifies the slot number of the device, which is fixed at 1.
subslot subslot-number: Specifies a subcard by its subslot number. If you do not specify a subcard, this command does not display information about any subcards.
Usage guidelines
An electronic label contains the permanent configuration information, including the hardware serial number, manufacturing date, MAC address, and vendor name. The data is written to the storage component during hardware debugging or testing. This command displays only part of the electronic label information.
Examples
# Display hardware electronic label information for the device.
<Sysname> display device manuinfo
...
display device manuinfo fan
Use display device manuinfo fan to display electronic label information for a fan tray.
Syntax
display device manuinfo slot slot-number fan fan-id
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
slot slot-number: the slot number of the device, which is fixed at 1.
fan-id: Specifies a fan tray by its ID.
Examples
# Display electronic label information for a fan tray.
<Sysname> display device manuinfo slot 1 fan 1
...
display device manuinfo power
Use display device manuinfo power to display electronic label information for a power module.
Syntax
display device manuinfo slot slot-number power power-id
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
slot slot-number: Specifies the slot number of the device, which is fixed at 1.
power-id: Specifies a power module by its ID.
Examples
# Display electronic label information for a power module.
<Sysname> display device manuinfo slot 1 power 1
...
display environment
Use display environment to display temperature information.
Syntax
display environment [ slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
slot slot-number: Specifies the slot number of the device, which is fixed at 1.
Usage guidelines
This command displays information about all temperature sensors on the device if you do not specify a card.
Examples
# Display information about all temperature sensors on the device.
<Sysname> display environment
System temperature information (degree centigrade):
----------------------------------------------------------------------
Slot Sensor Temperature Lower Warning Alarm Shutdown
1 hotspot 1 26 0 75 90 95
1 hotspot 2 49 0 88 96 104
1 hotspot 3 49 0 75 90 95
1 hotspot 4 28 0 88 96 104
1 hotspot 5 31 0 75 90 95
1 hotspot 6 25 0 88 96 104
1 chip 0 38 0 60 60 90
1 cpu 1 21 0 102 102 NA
Table 8 Command output
Field |
Description |
System Temperature information (degree centigrade) |
Temperature information (°C). |
sensor |
Temperature sensor: · hotspot—Hotspot sensor. · cpu—CPU temperature sensor. · chip—Chip temperature sensor. |
Slot |
Sensor position. |
Temperature |
Current temperature. |
Lower |
Lower temperature limit. If the device does not support this field, this field displays NA. |
Warning |
Warning temperature threshold. If the device does not support this field, this field displays NA. |
Alarm |
Alarming temperature threshold. If the device does not support this field, this field displays NA. |
Shutdown |
Shutdown temperature threshold. When the sensor temperature reaches the limit, the system shuts down automatically. If the device does not support this field, this field displays NA. |
display fan
Use display fan to display fan tray operating status information.
Syntax
display fan [ slot slot-number [ fan-id ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
slot slot-number: Specifies the slot number of the device, which is fixed at 1.
fan-id: Specifies a fan tray by its ID. If you do not specify a fan tray, this command displays operating status information for all fan trays at the specified position.
Examples
# Display the operating states of all fan trays.
<Sysname> display fan
Fan-tray 1:
Status : Normal
Fan Type : FAN-40B-1-C
Fan number: 3
Fan mode : Auto
Airflow Direction: Fan-Panel-Exhaust
Fan Speed(rpm)
--- ----------
1 4615
2 4705
3 4589
Fan-tray 2:
Status : Normal
Fan Type : FAN-40B-1-C
Fan number: 3
Fan mode : Auto
Airflow Direction: Fan-Panel-Exhaust
Fan Speed(rpm)
--- ----------
1 4749
2 4649
3 4560
---- More ----
Table 9 Command output
Field |
Description |
Fan-tray |
Fan tray ID. |
Status |
Fan tray status: · Absent—No fan tray is present in the slot. · Normal—The fan tray is operating correctly. · Fault—The fan tray is faulty. |
Fan Type |
Fan tray model. |
Fan number |
Number of fan trays. |
Fan mode |
Operating mode of fan trays. |
Airflow Direction |
Actual airflow direction: · Fan-Panel-Exhaust—Fan panel side exhaust airflow. · Fan-Panel-Intake—Fan panel side intake airflow. |
Fan Speed(rpm) |
Fan speed. |
display hardware-resource mdb
Use display hardware-resource mdb to display the hardware resource allocation mode information.
Syntax
display hardware-resource [ mdb ]
Views
Any view
Predefined user roles
network-admin
network-operator
Usage guidelines
If you do not specify the mdb keyword, this command displays the allocation modes for all hardware resources.
Examples
# Display the allocation mode information for the MAC address table resources, ARP table resources, and routing tables.
<Sysname> display hardware-resource mdb
MDB resource(mdb), all supported modes:
normal The normal mode:MAC 506K, ARP 88K, route 1.5M
routing The routing mode:MAC 155K, ARP 98K, route 2.5M
----------------------------------------
Default Current Next
routing routing routing
display hardware-resource bfd_enhance
Use display hardware-resource bfd_enhance to display the status information of enhanced BFD.
Syntax
display hardware-resource [ bfd_enhance ]
Views
Any view
Predefined user roles
network-admin
Examples
# Display the status information of enhanced BFD.
<Sysname> display hardware-resource bfd_enhance
bfd_enhance mode(bfd_enhance), all supported modes:
disable The disable bfd enhance
enable The enable bfd enhance
----------------------------------------
Default Current
enable enable
display hardware-resource port-speed
Use display hardware-resource port-speed to display the port speed mode information of the device.
Syntax
display hardware-resource [ port-speed ]
Views
Any view
Predefined user roles
network-admin
network-operator
Examples
# Display the port speed mode information of the device.
<Sysname> display hardware-resource port-speed
Set card port speed module, all supported modes:
low low speed module
high high speed module
----------------------------------------
Slot Module
1 low
display hardware-resource smartman
Use display hardware-resource smartman to display the port licensing status information.
Syntax
display hardware-resource [ smartman ]
Views
Any view
Predefined user roles
network-admin
network-operator
Examples
# Display the port licensing status information.
<Sysname> display hardware-resource smartman
smartman mode(smartman), all supported modes:
disable The disable smartman mode
enable The enable smartman mode
----------------------------------------
Default Current Next
disable disable disable
display memory
Use display memory to display memory usage information.
Syntax
display memory [ summary ] [ slot slot-number [ cpu cpu-number ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
summary: Displays brief information about memory usage. If you do not specify this keyword, the command displays detailed information about memory usage.
slot slot-number: Specifies the slot number of the device, which is fixed at 1.
cpu cpu-number: Specifies a CPU by its number.
Usage guidelines
If two hyphens (--) are displayed for all the fields in a line of the command output, the command might fail to obtain data from the database on the device. Try the command later.
Examples
# Display detailed memory usage information.
<Sysname> display memory
Memory statistics are measured in KB:
Slot 0:
Total Used Free Shared Buffers Cached FreeRatio
Mem: 16335164 4145632 12189532 0 8596 2472508 77.5%
-/+ Buffers/Cache: 1664528 14670636
Swap: 0 0 0
Container memory statistics are measured in KB:
Slot 0:
Total Used Free UsageRatio
Mem: 16335164 2357588 12189532 14.4%
# Display brief memory usage information.
<Sysname> display memory summary
Memory statistics are measured in KB:
Slot CPU Total Used Free Buffers Caches FreeRatio
0 0 16335164 4144720 12190444 8596 2472508 77.5%
Container memory statistics are measured in KB:
Slot CPU Total Used Free UsageRatio
0 0 16335164 2358048 12190444 14.4%
Table 10 Command output
Field |
Description |
Memory statistics are measured in KB: |
Memory usage information on the physical device, in KB. |
Mem |
Memory usage information. |
Total |
Total size of the physical memory space that can be allocated. The memory space is virtually divided into two parts. Part 1 is solely used for kernel code and kernel management functions. Part 2 can be allocated and used for such tasks as running service modules and storing files. The size of part 2 equals the total size minus the size of part 1. |
Used |
Used physical memory. |
Free |
Free physical memory. |
Shared |
Physical memory shared by processes. If this field is not supported, two hyphens (--) are displayed. |
Buffers |
Physical memory used for buffers. If this field is not supported, two hyphens (--) are displayed. |
Cached Caches |
Physical memory used for caches. If this field is not supported, two hyphens (--) are displayed. |
FreeRatio |
Free memory ratio. |
-/+ Buffers/Cache |
-/+ Buffers/Cache:used = Mem:Used – Mem:Buffers – Mem:Cached, which indicates the physical memory used by applications. -/+ Buffers/Cache:free = Mem:Free + Mem:Buffers + Mem:Cached, which indicates the physical memory available for applications. |
Swap |
Memory space for swapping. |
LowMem |
Low-memory usage information. |
HighMem |
High-memory usage information. |
Container memory statistics are measured in KB |
Container memory usage information, including: · Total—Total size of the physical memory space that can be allocated in the Comware container, in KB. · Used—Used physical memory in the Comware container, in KB. · Free—Free physical memory in the Comware container, in KB. · UsageRatio—Free physical memory usage in the Comware container. |
display memory-threshold
Use display memory-threshold to display memory alarm thresholds and statistics.
Syntax
display memory-threshold [ slot slot-number [ cpu cpu-number ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
slot slot-number: Specifies the slot number of the device, which is fixed at 1.
cpu cpu-number: Specifies a CPU by its number.
Usage guidelines
For more information about memory usage notifications, see log information containing MEM_EXCEED_THRESHOLD or MEM_BELOW_THRESHOLD.
Examples
# Display memory alarm thresholds and statistics.
<Sysname> display memory-threshold
Memory usage threshold: 100%
Free memory threshold:
Minor: 1024M
Severe: 768M
Critical: 512M
Normal: 1280M
Early-warning: 0M
Secure: 0M
Current memory state: Normal
Event statistics:
[Back to normal state]
First notification: 0.0
Latest notification: 0.0
Total number of notifications sent: 0
[Enter minor low-memory state]
First notification at: 0.0
Latest notification at: 0.0
Total number of notifications sent: 0
[Back to minor low-memory state]
First notification at: 0.0
Latest notification at: 0.0
Total number of notifications sent: 0
[Enter severe low-memory state]
First notification at: 0.0
Latest notification at: 0.0
Total number of notifications sent: 0
[Back to severe low-memory state]
First notification at: 0.0
Latest notification at: 0.0
Total number of notifications sent: 0
[Enter critical low-memory state]
First notification at: 0.0
Latest notification at: 0.0
Total number of notifications sent: 0
display power
Use display power to display power module information.
Syntax
display power [ slot slot-number [ power-id ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
slot slot-number: Specifies the slot number of the device, which is fixed at 1.
power-id: Specifies a power module by its ID. If you do not specify a power module, this command displays information about all power modules at the specified position.
Examples
# Display brief power module information.
<Sysname> display power
Slot 1:
Input Power: 99(W)
PowerID State Mode Current(A) Voltage(V) Power(W) FanDirection
1 Normal AC 5.40 12.35 66 PowerToPort
2 Normal AC 2.85 10.00 33 PortToPower
Table 11 Command output
Field |
Description |
Input power |
Rated power of the device. |
PowerID |
Power module ID. |
State |
Power module status: · Absent—The slot is not installed with a power module. · Normal—The power module is operating correctly. · Fault—The power module is faulty. |
Mode |
Mode of the power module: · AC—AC power module. · DC—DC power module. |
Current(A) |
Output current of the power module, in amperes. If this field is not supported, two hyphens (--) are displayed. |
Voltage(V) |
Output voltage of the power module, in volts. If this field is not supported, two hyphens (--) are displayed. |
Power(W) |
Output power of the power module, in watts. If this field is not supported, two hyphens (--) are displayed. |
FanDirection |
Airflow direction of the power module: · PowerToPort—From the power module side to the port side. · PortToPower—From the port side to the power module side. |
display resource-monitor
Use display resource-monitor to display resource monitoring information.
Syntax
display resource-monitor [ resource resource-name ] [ slot slot-number [ cpu cpu-number ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
resource resource-name: Specifies a resource type by its name.
slot slot-number: Specifies the slot number of the device, which is fixed at 1.
cpu cpu-number: Specifies a CPU by its number.
Examples
# Display ARP resource monitoring information.
<Sysname> display resource-monitor resource arp
Minor alarms resending: Enabled
Slot 1:
Resource Minor Severe Free/Total
(%) (%) (absolute)
arp 50 20 90095/90098
Table 12 Command output
Field |
Description |
Minor alarms resending |
Status of the minor resource depletion alarm resending feature, Enabled or Disabled. |
Resource |
Monitored resource type. |
Minor (%) |
Minor resource depletion threshold, in percentage. |
Severe (%) |
Severe resource depletion threshold, in percentage. |
Free/Total (absolute) |
Numbers of available resources and total resources, in absolute values. |
Related commands
resource-monitor minor resend enable
resource-monitor resource
display transceiver alarm
Use display transceiver alarm to display transceiver alarms.
Syntax
display transceiver alarm interface [ interface-type interface-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
interface [ interface-type interface-number ]: Specifies an interface by its type and number. If no interface is specified, this command displays the alarms present on every transceiver module.
Usage guidelines
Table 13 shows the common transceiver alarm components. If no error occurs, "None" is displayed.
Table 13 Common transceiver alarm components
Field |
Description |
APD |
Avalanche photo diode |
PCS |
Physical coding sublayer |
PHY XS |
PHY extended sublayer |
PMA/PMD |
Physical medium attachment/physical medium dependent |
power |
Optical power |
REFCLK |
Reference clock |
RX |
Receive |
TEC |
Thermoelectric cooler |
Temp |
Temperature |
TX |
Transmit |
VDM |
Versatile diagnostics monitoring |
pre-FEC |
Pre-forward error correction |
BER |
Bit error ratio |
CFO |
Carrier frequency offset |
Examples
# Display the alarms present on the transceiver module in interface HundredGigE 1/0/1.
<Sysname> display transceiver alarm interface hundredgige 1/0/1
HundredGigE1/0/1 transceiver current alarm information:
RX loss of signal
RX power low
Table 14 Command output
Field |
Description |
transceiver current alarm information |
Alarms present on the transceiver module. |
RX loss of signal |
Received signals are lost. |
RX power low |
Received power is low. |
display transceiver diagnosis
Use display transceiver diagnosis to display the current values of the digital diagnosis parameters on transceiver modules.
Syntax
display transceiver diagnosis interface [ interface-type interface-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
interface [ interface-type interface-number ]: Specifies an interface by its type and number. If no interface is specified, this command displays the current values of the digital diagnosis parameters on every transceiver module.
Examples
# Display the current values of the digital diagnosis parameters on the transceiver module in interface HundredGigE 1/0/1.
<Sysname> display transceiver diagnosis interface hundredgige 1/0/1
HundredGigE1/0/1 transceiver diagnostic information:
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
# Display the current values of the digital diagnosis parameters on the transceiver module in interface HundredGigE 1/0/1.
<Sysname> display transceiver diagnosis interface hundredgige 1/0/1:1
HundredGigE1/0/1:1 transceiver diagnostic information:
Current diagnostic parameters:
[module] Temp.(C) Voltage(V)
43 3.30
[channel] Bias(mA) RX power(dBm) TX power(dBm)
1 7.39 -36.96 1.13
2 7.39 -36.96 0.99
3 7.39 -36.96 1.08
4 7.39 -36.96 1.11
Alarm thresholds:
Temp.(C) Voltage(V) Bias(mA) RX power(dBm) TX power(dBm)
High 85 3.64 15.00 3.40 5.40
Low -15 2.97 3.00 -14.00 -12.10
# Display the current values of the digital diagnosis parameters on the transceiver module in interface FourHundredGigE 1/0/1.
<Sysname> display transceiver diagnosis interface fourhundredgige 1/0/1
FourHundredGigE1/0/1 transceiver diagnostic information:
Current diagnostic parameters:
[Module] Temp(C) Voltage(V) TEC Current(%) Laser Temp(C)
40 3.34 38 53
[Channel] Bias(mA) RX power(dBm) TX power(dBm)
1 1.13 -20.43 -1.0
2 1.13 -20.43 -1.0
3 1.13 -20.43 -1.0
4 1.13 -20.43 -1.0
5 1.13 -20.43 -1.0
6 1.13 -20.43 -1.0
7 1.13 -20.43 -1.0
8 1.13 -20.43 -1.0
Alarm thresholds:
Temp.(C) Voltage(V) Bias(mA) RX power(dBm) TX power(dBm)
High 80 3.64 15.00 5.00 5.50
Low -10 2.97 4.50 -12.00 -3.50
TEC Curr(%) Laser Temp(C)
High N/A N/A
Low N/A N/A
Warning thresholds:
Temp.(C) Voltage(V) Bias(mA) RX power(dBm) TX power(dBm)
High 70 3.47 10.00 4.00 4.00
Low 0 3.13 0.00 -9.50 -6.50
TEC Curr(%) Laser Temp(C)
High N/A N/A
Low N/A N/A
# Display the current values of the digital diagnosis parameters on the transceiver module in interface FourHundredGigE 1/0/1. (This example is available only for a transceiver module that supports CMIS 4.0.)
<Sysname> isplay transceiver diagnosis interface fourhundredgige 1/0/1
FourHundredGigE1/0/1 transceiver diagnostic information:
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
Media performance monitoring:
Rx bits : 12345678901234567890
Rx FEC corrected bits : 12345678901234567890
Rx frames : 12345678901234567890
Rx uncorrectable frames : 12345678901234567890
Host performance monitoring:
Tx bits : 12345678901234567890
Tx FEC corrected bits : 12345678901234567890
Tx frames : 12345678901234567890
Tx uncorrectable frames : 12345678901234567890
Table 15 Command output
Field |
Description |
transceiver diagnostic information |
Digital diagnosis information for the transceiver module in the interface. |
Wave.er(nm) |
Wavelength offset in nm, accurate to 0.001 nm. This field is supported only on the SFP-XG-LH80-Tunable transceiver module. |
Freq.er(GHz) |
Frequency offset in GHz, accurate to 0.1 GHz. This field is supported only on the SFP-XG-LH80-Tunable transceiver module. |
[Module] |
Parameters of the transceiver module. |
Temp.(C) |
Temperature in °C, accurate to 1°C. |
Voltage(V) |
Voltage in V, accurate to 0.01 V. |
TEC Current(%) |
TEC current in percentage, accurate to 0.01%. |
Laser Temp(C) |
Laser temperature in °C, accurate to 0.01°C. |
[Channel] |
Channel number. A channel is also referred to as a lane. |
Bias(mA) |
Bias current in mA, 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. |
TEC Curr. (%) |
TEC current in percentage, accurate to 0.01%. |
Laser Temp(C) |
Laser temperature in °C, accurate to 0.01°C. |
display transceiver interface
Use display transceiver interface to display the key parameters of transceiver modules.
Syntax
display transceiver interface [ interface-type interface-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command displays the key parameters of every transceiver module.
Examples
# Display the key parameters of the transceiver module in interface HundredGigE 1/0/1.
<Sysname> display transceiver interface hundredgige 1/0/1
HundredGigE1/0/1 transceiver information:
Transceiver type : 400G_BASE_SR8_QSFPDD
Connector type : MPO
Wavelength (nm) : 850
Transfer distance (m) : 70(OM3),100(OM4)
Max power(W) : 12
Digital diagnostic monitoring : Yes
Vendor name : H3C
Table 16 Command output
Field |
Description |
Transceiver Type |
Model of the transceiver module. |
Connector Type |
Connector type of the transceiver module: · Optical connectors, including SC connector developed by NTT, and 1.25mm/RJ45 LC connector developed by Lucent. · Other connectors, including RJ-45 and CX4. |
Wavelength(nm) |
For the transceiver module, this field displays central wavelength of the laser sent, in nm. If the transceiver module such as 10GBASE-LX4, supports multiple wavelengths, each wavelength value is separated by a comma. For the electrical transceiver, this field displays N/A. |
Transfer Distance(xx) |
Transfer distance. For a single-mode transceiver module, the distance is measured in km. For other transceiver modules, the distance is measured in m. If the transceiver module supports multiple transfer media, the transfer distances are separated by commas. The corresponding transfer medium is enclosed in the brackets following the transfer distance value. The following are the transfer media: · 9um—9/125 um single-mode optical fiber. · 50um—50/125um OM 2 multi-mode optical fiber. · 62.5um—62.5/125um OM 1 multi-mode optical fiber. · CX4—CX4 cable. · OM3—50 um OM3 multi-mode optical fiber. · OM4—50 um OM4 multi-mode optical fiber. · OM5—50 um OM5 multi-mode optical fiber. · STACK—Stack cable. · TP—Twisted pair cable. |
Max power(W) |
Maximum power of the transceiver module. |
Digital Diagnostic Monitoring |
Support for digital diagnostic monitoring: · Yes. · No. |
Vendor Name |
Vendor name or vendor name specified for the transceiver module. |
Ordering Name |
Ordering name of the transceiver module. |
display transceiver itu-channel
Use display transceiver itu-channel to display ITU channel information for transceiver modules.
Syntax
display transceiver itu-channel interface [ interface-type interface-number [ supported-channel ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
interface [ interface-type interface-number ]: Specifies an interface by its type and number. If no interface is specified, this command displays ITU channel information for the transceiver modules on all interfaces.
supported channel: Specifies ITU channels supported on the interface. If this keyword is not specified, the command displays the ITU channel that is in use on the interface.
Usage guidelines
This command is available only for the SFP-XG-LH80-Tunable transceiver module.
Examples
# Display ITU channel information for the transceiver module on HundredGigE 1/0/1.
<Sysname> display transceiver itu-channel interface hundredgige 1/0/1
Interface Channel WaveLength(nm) Frequency(THz)
GE1/0/1 1 1566.72 191.35
# Display ITU channels supported by the transceiver module on HundredGigE 1/0/1.
<Sysname> display transceiver itu-channel interface hundredgige 1/0/1 supported-channel
ITU channel settings supported on HundredGigE 1/0/1 :
Channel WaveLength(nm) Frequency(THz)
1 1566.72 191.35
2 1566.31 191.40
3 1565.90 191.45
4 1565.50 191.50
5 1565.09 191.55
6 1564.68 191.60
7 1564.27 191.65
8 1563.86 191.70
Omitted…
Table 17 Command output
Field |
Description |
WaveLength(nm) |
Wavelength of the channel in nm, accurate to 0.01 nm. This field displays a hyphen (-) in the following situations: · No transceiver module is installed on the interface. · The transceiver module does not support specifying an ITU channel number. · The command failed to obtain the ITU channel information. · The device does not support the ITU channel number stored on the transceiver module. |
Frequency(THz) |
Frequency of the channel in THz, accurate to 0.01 THz. This field displays a hyphen (-) in the following situations: · No transceiver module is installed on the interface. · The transceiver module does not support specifying an ITU channel number. · The command failed to obtain the ITU channel information. · The device does not support the ITU channel number stored on the transceiver module. |
Related commands
itu-channel
display transceiver manuinfo
Use display transceiver manuinfo to display electronic label information for transceiver modules.
Syntax
display transceiver manuinfo interface [ interface-type interface-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
interface [ interface-type interface-number ]: Specifies an interface by its type and number. If no interface is specified, this command displays electronic label information for the transceiver modules on all interfaces.
Examples
# Display electronic label information for the transceiver module in interface HundredGigE 1/0/1.
<Sysname> display transceiver manuinfo interface hundredgige 1/0/1
HundredGigE1/0/1 transceiver manufacture information:
Manu. Serial Number : 213410A0000054000251
Manufacturing Date : 2019-09-01
Vendor Name : H3C
Table 18 Command output
Field |
Description |
Manu. Serial Number |
Serial number generated during debugging and testing. |
Manufacturing Date |
Debugging and testing date. The date takes the value of the system clock of the computer when debugging and testing is performed. |
Vendor Name |
The value is H3C. |
hardware-failure-detection
Use hardware-failure-detection to specify the action to be taken in response to hardware failures.
Use undo hardware-failure-detection to restore the default.
Syntax
hardware-failure-detection { board | chip | forwarding } { isolate | off | reset | warning }
undo hardware-failure-detection { board | chip | forwarding }
Default
The system takes the action of warning in response to hardware failures on components, the device, and the forwarding plane.
Views
System view
Predefined user roles
network-admin
Parameters
board: Specifies failures on control paths and the device.
chip: Specifies failures on components of the device such as the chips, capacitances, resistances.
forwarding: Specifies failures on the forwarding plane (including services and other relevant items).
isolate: Takes one or more of the following actions:
· Shuts down the relevant ports.
· Prohibits loading software for the device.
· Isolates the device.
· Powers off the device to reduce impact from the failures.
off: Takes no action.
reset: Restarts the relevant components or the device to recover from failures.
warning: Sends traps to notify you of the failures.
Usage guidelines
The device automatically detects hardware failures on components, the device, and the forwarding plane. You can specify the actions to be taken in response to detected failures.
Examples
# Configure the device to send traps in response to failures on components.
<Sysname> system-view
[Sysname] hardware-failure-detection chip warning
hardware-failure-protection aggregation
Use hardware-failure-protection aggregation to enable hardware failure protection for aggregation groups.
Use undo hardware-failure-protection aggregation to disable hardware failure protection for aggregation groups.
Syntax
hardware-failure-protection aggregation
undo hardware-failure-protection aggregation
Default
Hardware failure protection is disabled for aggregation groups.
Views
System view
Predefined user roles
network-admin
Usage guidelines
This command takes effect only when the hardware-failure-detection forwarding isolate command is executed.
This command does not take effect on a member interface in the following situations:
· Loopback testing is enabled (using the loopback { external | internal } command).
· The interface is forcibly brought up (using the port up-mode command).
Examples
# Enable hardware failure protection for aggregation groups.
<Sysname> system-view
[Sysname] hardware-failure-protection aggregation
Related commands
hardware-failure-detection
hardware-resource mdb
Use hardware-resource mdb to specify the allocation mode for MDB resources.
Syntax
hardware-resource mdb { normal | routing }
Default
The routing allocation mode is specified for MDB resources.
Views
System view
Predefined user roles
network-admin
Parameters
normal: Specify the normal allocation mode. In this mode, the MAC address table, ARP table, and routing table capacities are 506K, 88K, and 1.5M respectively.
routing: Specify the routing allocation mode. In this mode, the MAC address table, ARP table, and routing table capacities are 155K, 98K, and 2.5M respectively.
Usage guidelines
For this command to take effect, you must reboot the device.
Examples
# Specify the normal allocation mode for MDB resources.
<Sysname> system-view
[Sysname] hardware-resource mdb normal
Do you want to change the specified hardware resource working mode? [Y/N]:Y
The hardware resource working mode is changed, please save the configuration and reboot the system to make it effective.
hardware-resource port-speed
Use hardware-resource port-speed to specify the port speed mode for the device.
Syntax
hardware-resource port-speed { high | low } [ slot slot-number ]
Default
The low port speed mode is specified for the device.
Views
System view
Predefined user roles
network-admin
Parameters
high: Specifies the high speed mode.
low: Specifies the low speed mode.
mix: Specifies the mix speed mode.
slot slot-number: Specifies the slot number of the device, which is fixed at 1.
Usage guidelines
For a port speed mode change on the device to take effect, restart the device.
Examples
# Specify the high port speed mode for the device.
<Sysname> system-view
[Sysname] hardware-resource port-speed high slot 1
Do you want to change the specified hardware resource working mode? [Y/N]: y
The port speed mode is changed, to make it effective please reboot the slot.
hardware-resource smartman
Use hardware-resource smartman to enable or disable port licensing.
Syntax
hardware-resource smartman { enable | disable }
Default
Port licensing is disabled.
Views
System view
Predefined user roles
network-admin
Parameters
enable: Enable port licensing.
disable: Disables port licensing.
Usage guidelines
To use license-based features, you need to install the licenses on the device. You can execute this command to have the installed licenses take effect as needed. If port licensing is enabled, the installed licenses on the device can take effect.
For an enabling status change to take effect, restart the device.
Examples
# Enable port licensing.
<Sysname> system-view
[Sysname] hardware-resource smartman enable
Do you want to change the specified hardware resource working mode? [Y/N]: y
The hardware resource working mode is changed, please save the configuration and reboot the system to make it effective.
itu-channel
Use itu-channel to set the ITU channel number for a transceiver module.
Use undo itu-channel to restore the default.
Syntax
itu-channel channel-number
undo itu-channel
Default
The ITU channel number is 1.
Views
Ethernet interface view
Predefined user roles
network-admin
Parameters
channel-number: Specifies the ITU channel number.
Usage guidelines
This command is available only for the SFP-XG-LH80-Tunable transceiver module.
The ITU channel number is saved in a register on the transceiver module. It is not saved to the configuration file.
Examples
# Set the ITU channel number to 2 for the transceiver module on HundredGigE 1/0/1.
<Sysname> system-view
[Sysname] interface hundredgige 1/0/1
[Sysname-HundredGigE1/0/1] itu-channel 2
Changing the channel number causes the service to be down for a while. Continue? [Y/N]:Y
Related commands
display transceiver itu-channel
locator blink
Use locator blink blink-time to start LED flashing to locate devices.
Use locator blink stop to stop LED flashing.
Syntax
locator [ slot slot-number ] blink blink-time
locator [ slot slot-number ] blink stop
Views
User view
Predefined user roles
network-admin
Parameters
slot slot-number: Specifies the slot number of the device, which is fixed at 1.
blink-time: Specifies the flash duration in seconds. The value range is 5 to 120.
stop: Stops flashing.
Usage guidelines
The device provides a LED for device locating. The locator blink blink-time command flashes the specified LEDs quickly for a period of time unless you execute the locator blink stop command. You can observe the LEDs to locate the devices.
Examples
# Start LED flashing to locate devices.
<Sysname> locator blink 30
# Stop LED flashing.
<Sysname> locator blink stop
memory-threshold
Use memory-threshold to set free-memory thresholds.
Use undo memory-threshold to restore the default.
Syntax
memory-threshold [ slot slot-number [ cpu cpu-number ] ] [ ratio ] minor minor-value severe severe-value critical critical-value normal normal-value
undo memory-threshold [ slot slot-number [ cpu cpu-number ] ]
Default
Minor alarm threshold: 1024 MB.
Severe alarm threshold: 768 MB.
Critical alarm threshold: 512 MB.
Normal state threshold: 1280 MB.
Views
System view
Predefined user roles
network-admin
Parameters
ratio: Specifies free-memory thresholds in percentage. If you do not specify this keyword, the command sets free-memory thresholds in MB.
minor minor-value: Specifies the minor alarm threshold. To view the value range for this threshold, enter a question mark (?) in the place of the minor-value argument. Setting this threshold to 0 disables the minor alarm feature.
severe severe-value: Specifies the severe alarm threshold. To view the value range for this threshold, enter a question mark (?) in the place of the severe-value argument. Setting this threshold to 0 disables the severe alarm feature.
critical critical-value: Specifies the critical alarm threshold. To view the value range for this threshold, enter a question mark (?) in the place of the critical-value argument. Setting this threshold to 0 disables the critical alarm feature.
normal normal-value: Specifies the normal state threshold. To view the value range for this threshold, enter a question mark (?) in the place of the normal-value argument.
slot slot-number: Specifies the slot number of the device, which is fixed at 1.
cpu cpu-number: Specifies a CPU by its number.
Usage guidelines
To ensure correct operation and improve memory efficiency, the system monitors the amount of free memory space in real time. If the amount of free memory space decreases to or below the minor, severe, or critical alarm threshold, the system issues an alarm to affected service modules or processes.
If a memory alarm occurs, delete unused configuration items or disable some features to increase the free memory space. Because the memory space is insufficient, some configuration items might not be able to be deleted.
For more information about the thresholds, see Fundamentals Configuration Guide.
# Set the minor alarm, severe alarm, critical alarm, and normal state thresholds to 64 MB, 48 MB, 32 MB, and 96 MB, respectively.
<Sysname> system-view
[Sysname] memory-threshold minor 64 severe 48 critical 32 normal 96
# Set the minor alarm, severe alarm, critical alarm, and normal state thresholds to 3%, 2%, 1%, and 5% of the total memory size, respectively.
<Sysname> system-view
[Sysname] memory-threshold ratio minor 3 severe 2 critical 1 normal 5
Related commands
display memory-threshold
memory-threshold usage
Use memory-threshold usage to set the memory usage threshold.
Use undo memory-threshold usage to restore the default.
Syntax
memory-threshold [ slot slot-number [ cpu cpu-number ] ] usage memory-threshold
undo memory-threshold [ slot slot-number [ cpu cpu-number ] ] usage
Default
The memory usage threshold is 100%.
Views
System view
Predefined user roles
network-admin
Parameters
slot slot-number: Specifies the slot number of the device, which is fixed at 1.
cpu cpu-number: Specifies a CPU by its number.
memory-threshold: Specifies the memory usage threshold in percentage. The value range is 0 to 100.
Usage guidelines
The device samples memory usage at 1-minute intervals. If the sample is greater than the memory usage threshold, the device sends a trap.
Examples
# Set the memory usage threshold to 80%.
<Sysname> system-view
[Sysname] memory-threshold usage 80
Related commands
display memory-threshold
monitor chipblock reset
Use monitor chipblock reset to enable chip reset.
Use undo monitor chipblock to disable chip reset.
Syntax
monitor chipblock reset [ logging ]
undo monitor chipblock
Default
Chip reset is enabled.
Views
System view
Predefined user roles
network-admin
Parameters
logging: Logs the chip reset event.
Usage guidelines
When a chip is faulty, the system generates an alarm. If you use the monitor chipblock reset command to enable chip reset, the system resets a chip when an alarm indicating that the chip is faulty is generated.
Examples
# Enable chip reset.
<Sysname> system-view
[Sysname] monitor chipblock reset
monitor cpu-usage enable
Use monitor cpu-usage enable to enable CPU usage tracking.
Use undo monitor cpu-usage enable to disable CPU usage tracking.
Syntax
monitor cpu-usage enable [ slot slot-number [ cpu cpu-number ] ]
undo monitor cpu-usage enable [ slot slot-number [ cpu cpu-number ] ]
Default
CPU usage tracking is enabled.
Views
System view
Predefined user roles
network-admin
Parameters
slot slot-number: Specifies the slot number of the device, which is fixed at 1.
cpu cpu-number: Specifies a CPU by its number.
Usage guidelines
After you enable CPU usage tracking, the system samples and saves CPU usage at the interval specified by the monitor cpu-usage interval command. You can use the display cpu-usage history command to view recent CPU usage.
Examples
# Enable CPU usage tracking.
<Sysname> system-view
[Sysname] monitor cpu-usage enable
display cpu-usage configuration
display cpu-usage history
monitor cpu-usage interval
monitor cpu-usage interval
Use monitor cpu-usage interval to set the sampling interval for CPU usage monitoring.
Use undo monitor cpu-usage interval to restore the default.
Syntax
monitor cpu-usage interval interval [ slot slot-number [ cpu cpu-number ] ]
undo monitor cpu-usage interval [ slot slot-number [ cpu cpu-number ] ]
Default
The system samples CPU usage every 1 minute.
Views
System view
Predefined user roles
network-admin
Parameters
interval: Specifies the sampling interval for CPU usage monitoring. Valid values include 5Sec (5 seconds), 1Min (1 minute), and 5Min (5 minutes), case insensitive.
slot slot-number: Specifies the slot number of the device, which is fixed at 1.
cpu cpu-number: Specifies a CPU by its number.
Usage guidelines
After CPU usage monitoring is enabled, the system samples and saves CPU usage at the specified interval. You can use the display cpu-usage history command to view recent CPU usage.
Examples
# Set the sampling interval for CPU usage monitoring to 5 seconds.
<Sysname> system-view
[Sysname] monitor cpu-usage interval 5Sec
Related commands
display cpu-usage configuration
display cpu-usage history
monitor cpu-usage enable
monitor cpu-usage threshold
Use monitor cpu-usage threshold to set CPU usage alarm thresholds.
Use undo monitor cpu-usage threshold to restore the default.
Syntax
monitor cpu-usage threshold severe-threshold [ minor-threshold minor-threshold recovery-threshold recovery-threshold ] [ slot slot-number [ cpu cpu-number ] ]
undo monitor cpu-usage threshold [ minor-threshold recovery-threshold ] [ slot slot-number [ cpu cpu-number ] ]
Default
Severe CPU usage alarm threshold: 99%.
Minor CPU usage alarm threshold: 79%.
CPU usage recovery threshold: Not configured.
Views
System view
Predefined user roles
network-admin
Parameters
severe-threshold: Specifies the severe CPU usage alarm threshold in percentage. The value range for this argument is 2 to 100.
minor-threshold minor-threshold: Specifies the minor CPU usage alarm threshold in percentage. The value range for this argument is 1 to the severe CPU usage alarm threshold minus 1. If you do not specify this option, the minor CPU usage alarm threshold is 80 percent of the severe CPU usage alarm threshold.
recovery-threshold recovery-threshold: Specifies the CPU usage recovery threshold in percentage. The value range for this argument is 0 to the minor CPU usage alarm threshold minus 1. If you do not specify this option, the CPU usage recovery threshold is 70 percent of the severe CPU usage alarm threshold.
slot slot-number: Specifies the slot number of the device, which is fixed at 1.
cpu cpu-number: Specifies a CPU by its number.
Usage guidelines
CAUTION: If you set the severe CPU usage alarm threshold to a too low value, the device will reach the threshold easily. Normal services will be affected. |
The device samples CPU usage and CPU core usage at 1-minute intervals. If the sample is greater than the CPU usage threshold, the device sends a trap.
Examples
# Set the CPU usage alarm threshold to 90%.
<Sysname> system-view
[Sysname] monitor cpu-usage threshold 90
Related commands
display cpu-usage configuration
monitor resend cpu-usage
Use monitor resend cpu-usage to set CPU usage alarm resending intervals.
Use undo monitor resend cpu-usage to restore the default.
Syntax
monitor resend cpu-usage { minor-interval minor-interval | severe-interval severe-interval } * [ slot slot-number [ cpu cpu-number ] ]
undo monitor resend cpu-usage [ minor-interval | severe-interval ] [ slot slot-number [ cpu cpu-number ] ]
Default
The minor CPU usage alarm resending interval is 300 seconds. The severe CPU usage alarm resending interval is 60 seconds.
Views
System view
Predefined user roles
network-admin
Parameters
minor-interval minor-interval: Specifies the minor CPU usage alarm resending interval in seconds, a multiple of 5 in the range of 10 to 3600.
severe-interval severe-interval: Specifies the severe CPU usage alarm resending interval in seconds, a multiple of 5 in the range of 10 to 3600.
slot slot-number: Specifies the slot number of the device, which is fixed at 1.
cpu cpu-number: Specifies a CPU by its number.
Usage guidelines
The device samples CPU usage at intervals, and compares the samples with CPU usage thresholds to identify the CPU usage status and send alarms or notifications accordingly.
In minor alarm state, the device sends minor alarms periodically until the CPU usage increases above the severe threshold or the minor alarm is removed. In severe alarm state, the device sends severe alarms periodically until the severe alarm is removed. This command sets the alarm resending intervals.
If you do not specify a keyword for the undo monitor resend cpu-usage command, the command restores the default minor and severe CPU usage alarm resending intervals.
Examples
# Set the minor CPU usage alarm resending interval to 60 seconds for a slot.
<Sysname> system-view
[Sysname] monitor resend cpu-usage minor-interval 60 slot 1 cpu 0
monitor resend cpu-usage core-interval
Use monitor resend cpu-usage core-interval to set CPU core usage alarm resending intervals.
Use undo monitor resend cpu-usage core-interval to remove CPU core usage alarm resending interval settings.
Syntax
monitor resend cpu-usage core-interval { minor-interval minor-interval | severe-interval severe-interval } * [ slot slot-number [ cpu cpu-number ] ]
undo monitor resend cpu-usage core-interval [ minor-interval | severe-interval ] [ slot slot-number [ cpu cpu-number ] ]
Default
The resending interval is 300 seconds for minor CPU core usage alarms and 60 seconds for severe CPU core usage alarms.
Views
System view
Predefined user roles
network-admin
Parameters
minor-interval minor-interval: Specifies the resending interval for minor CPU core usage alarms in seconds, a multiple of 5 in the range of 10 to 3600.
severe-interval severe-interval: Specifies the resending interval for severe CPU core usage alarms in seconds, a multiple of 5 in the range of 10 to 3600.
slot slot-number: Specifies the slot number of the device, which is fixed at 1.
cpu cpu-number: Specifies a CPU by its number.
Usage guidelines
The device samples CPU core usage at intervals, and compares the samples with CPU core usage thresholds to identify the CPU core usage status and send alarms or notifications accordingly.
In minor alarm state, the device sends minor alarms periodically until the CPU core usage increases above the severe threshold or the minor alarm is removed. In severe alarm state, the device sends severe alarms periodically until the severe alarm is removed. This command sets the alarm resending intervals.
Examples
# Set the resending interval for minor CPU core usage alarms to 100 seconds and the resending interval for severe CPU core usage alarms 60 seconds.
<Sysname> system-view
[Sysname] monitor resend cpu-usage core-interval minor-interval 100 severe-interval 60
parity-error consistency-check log enable
Use parity-error consistency-check log enable to enable consistency error logging for software and hardware forwarding entries.
Use undo parity-error consistency-check log enable to disable consistency error logging for software and hardware forwarding entries.
Syntax
parity-error consistency-check log enable
undo parity-error consistency-check log enable
Default
Consistency error logging is enabled for software and hardware forwarding entries.
Views
System view
Predefined user roles
network-admin
Usage guidelines
To forward packets, the device generates hardware forwarding entries on forwarding chips and software forwarding entries in memory at the same time. The device automatically detects whether the hardware forwarding entries and the software forwarding entries are consistent.
After you execute this command, the device collects consistency errors periodically. If the number of consistency errors in a statistics period reaches or exceeds the logging threshold, the device generates and sends a log message to the information center module. The information center module determines how and where to send the message. For more information about the information center module, see information center configuration in System Management Configuration Guide.
Examples
# Enable consistency error logging for software and hardware forwarding entries.
<Sysname> system-view
[Sysname] parity-error consistency-check log enable
Related commands
parity-error consistency-check threshold
parity-error consistency-check threshold
Use parity-error consistency-check threshold to set the logging threshold for consistency errors between software and hardware forwarding entries.
Use undo parity-error consistency-check threshold to restore the default.
Syntax
parity-error consistency-check threshold value
undo parity-error consistency-check threshold
Default
The logging threshold is 10.
Views
System view
Predefined user roles
network-admin
Parameters
value: Specifies the logging threshold for consistency errors between software and hardware forwarding entries, in the range of 1 to 2147483647.
Usage guidelines
To forward packets, the device generates hardware forwarding entries on forwarding chips and software forwarding entries in memory at the same time. The device automatically detects whether the hardware forwarding entries and the software forwarding entries are consistent.
After you enable consistency error logging for software and hardware forwarding entries, the device collects statistics for consistency errors periodically. If the number of consistency errors reaches or exceeds the logging threshold, the device generates a log message.
Examples
# Set the logging threshold to 20 for consistency errors between software and hardware forwarding entries.
<Sysname> system-view
[Sysname] parity-error consistency-check threshold 20
parity-error monitor log enable
Use parity-error monitor log enable to enable parity error and ECC error logging for entries on forwarding chips.
Use undo parity-error monitor log enable to disable parity error and ECC error logging for entries on forwarding chips.
Syntax
parity-error monitor log enable
undo parity-error monitor log enable
Default
Parity error and ECC error logging is disabled for entries on forwarding chips.
Views
System view
Predefined user roles
network-admin
Usage guidelines
The device automatically detects parity errors and ECC errors in entries on forwarding chips.
After you execute this command, the device collects parity errors and ECC errors periodically. If the number of parity errors and ECC errors in a statistics period reaches or exceeds the logging threshold, the device generates and sends a parity error and ECC error log message to the information center module. The information center module determines how and where to send the message. For more information about the information center module, see information center configuration in System Management Configuration Guide.
Examples
# Enable parity error and ECC error logging for entries on forwarding chips.
<Sysname> system-view
[Sysname] parity-error monitor log enable
Related commands
parity-error monitor period
parity-error monitor threshold
parity-error monitor period
Use parity-error monitor period to set the parity error and ECC error statistics period for entries on forwarding chips.
Use undo parity-error monitor period to restore the default.
Syntax
parity-error monitor period value
undo parity-error monitor period
Default
The parity error and ECC error statistics period is 60 seconds for entries on forwarding chips.
Views
System view
Parameters
period: Specifies the parity error and ECC error statistics period in seconds, in the range of 1 to 86400.
Predefined user roles
network-admin
Usage guidelines
The device automatically detects parity errors and ECC errors in entries on forwarding chips. The parity error and ECC error logging feature collects parity error and ECC error statistics periodically, and generates a log message if the number of parity error and ECC errors reaches the logging threshold.
This command determines the period for the device to collect parity error and ECC error statistics.
Examples
# Set the parity error and ECC error statistics period to 120 seconds.
<Sysname> system-view
[Sysname] parity-error monitor period 120
Related commands
parity-error monitor log enable
parity-error monitor threshold
parity-error monitor threshold
Use parity-error monitor threshold to set the parity error and ECC error logging threshold for entries on forwarding chips.
Use undo parity-error monitor threshold to restore the default.
Syntax
parity-error monitor threshold value
undo parity-error monitor threshold
Default
The parity error and ECC error logging threshold is 5000 for entries on forwarding chips.
Views
System view
Predefined user roles
network-admin
Parameters
value: Specifies the parity error and ECC error logging threshold for entries on forwarding chips, in the range of 1 to 1000000.
Usage guidelines
The device detects parity error and ECC errors in entries on forwarding chips. The parity error and ECC error logging feature collects parity error and ECC error statistics periodically, and generates a log message if the number of parity error and ECC errors reaches the logging threshold. This command sets the logging threshold.
Examples
# Set the parity error and ECC error logging threshold to 8000 for entries on forwarding chips.
<Sysname> system-view
[Sysname] parity-error monitor threshold 8000
Related commands
parity-error monitor log enable
parity-error monitor period
parity-error unrecoverable log enable
Use parity-error unrecoverable log enable to enable uncorrectable parity error and ECC error logging for entries on forwarding chips.
Use undo parity-error unrecoverable log enable to disable uncorrectable parity error and ECC error logging for entries on forwarding chips.
Syntax
parity-error unrecoverable log enable
undo parity-error unrecoverable log enable
Default
Uncorrectable parity error and ECC error logging is enabled for entries on forwarding chips
Views
System view
Predefined user roles
network-admin
Usage guidelines
The device automatically detects parity errors and ECC errors in entries on forwarding chips and tries to correct the error when an error is detected. The uncorrectable parity error and ECC error logging feature enables the device to collect uncorrectable parity error and ECC error statistics periodically. If the number of uncorrectable parity errors and ECC errors reaches or exceeds the logging threshold, the device generates and sends an uncorrectable parity error and ECC error log message to the information center module. The information center module determines how and where to send the log message. For more information about the information center module, see information center configuration in System Management Configuration Guide.
Examples
# Enable uncorrectable parity error and ECC error logging for entries on forwarding chips
<Sysname> system-view
[Sysname] parity-error unrecoverable log enable
Related commands
parity-error unrecoverable period
parity-error unrecoverable reboot
parity-error unrecoverable threshold
parity-error unrecoverable period
Use parity-error unrecoverable period to set the statistics period for uncorrectable parity errors and ECC errors for entries on forwarding chips.
Use undo parity-error unrecoverable period to restore the default.
Syntax
parity-error unrecoverable period period
undo parity-error unrecoverable period
Default
The statistics period for uncorrectable parity errors and ECC errors for entries on forwarding chips is 60 seconds.
Views
System view
Predefined user roles
network-admin
Parameters
period: Specifies the statistics period for uncorrectable parity errors and ECC errors for entries on forwarding chips. The value is in the range of 1 to 86400, in seconds.
Usage guidelines
The device automatically detects parity errors and ECC errors in entries on forwarding chips and tries to correct the error when an error is detected. The uncorrectable parity error and ECC error logging feature enables the device to collect uncorrectable parity error and ECC error statistics periodically. If the number of uncorrectable parity errors and ECC errors reaches or exceeds the logging threshold, the device generates an uncorrectable parity error and ECC error log message.
This command sets the period for the device to collect uncorrectable parity error and ECC error statistics.
Examples
# Set the statistics period for uncorrectable parity errors and ECC errors in entries on forwarding chips to 120 seconds.
<Sysname> system-view
[Sysname] parity-error unrecoverable period 120
Related commands
parity-error unrecoverable log enable
parity-error unrecoverable reboot
parity-error unrecoverable threshold
parity-error unrecoverable reboot
Use parity-error unrecoverable reboot to enable automatic system reboot upon generation of an uncorrectable parity error and ECC error log.
Use undo parity-error unrecoverable reboot to disable automatic system reboot upon generation of an uncorrectable parity error and ECC error log
Syntax
parity-error unrecoverable reboot
undo parity-error unrecoverable reboot
Default
The system reboots automatically upon generation of an uncorrectable parity error and ECC error log.
Views
System view
Predefined user roles
network-admin
Usage guidelines
Uncorrectable parity errors and ECC errors in entries on forwarding chips might affect system services. To remove the errors from the entries on forwarding chips, you can execute this command to enable automatic system reboot upon generation of an uncorrectable parity error and ECC error log.
Examples
# Enable automatic system reboot upon generation of an uncorrectable parity error and ECC error log.
<Sysname> system-view
[Sysname] parity-error unrecoverable reboot
Related commands
parity-error unrecoverable log enable
parity-error unrecoverable period
parity-error unrecoverable threshold
parity-error unrecoverable threshold
Use parity-error unrecoverable threshold to set the logging threshold for uncorrectable parity errors and ECC errors on entries on forwarding chips.
Use undo parity-error unrecoverable threshold to restore the default.
Syntax
parity-error unrecoverable threshold value
undo parity-error unrecoverable threshold
Default
The logging threshold is 1 for uncorrectable parity errors and ECC errors in entries on forwarding chips.
Views
System view
Predefined user roles
network-admin
Parameters
value: Specifies the logging threshold for uncorrectable parity errors and ECC errors in entries on forwarding chips. The value is in the range of 1 to 1000000.
Usage guidelines
The device automatically detects parity errors and ECC errors in entries on forwarding chips and tries to correct the error when an error is detected. The uncorrectable parity error and ECC error logging feature enables the device to collect uncorrectable parity error and ECC error statistics periodically. If the number of uncorrectable parity errors and ECC errors reaches or exceeds the logging threshold, the device generates an uncorrectable parity error and ECC error log message.
This command sets the logging threshold.
Examples
# Set the logging threshold for uncorrectable parity errors and ECC errors in entries on forwarding chips to 10.
<Sysname> system-view
[Sysname] parity-error unrecoverable log threshold 10
Related commands
parity-error unrecoverable log enable
parity-error unrecoverable period
parity-error unrecoverable reboot
power-exception-monitor
Use power-exception-monitor to configure the exception monitoring mode for power modules.
Syntax
power-exception-monitor { normal | enhanced }
Default
The normal exception monitoring mode applies to power modules.
Views
System view
Predefined user roles
network-admin
Parameters
normal: Generates alarm information when a power module exception occurs.
enhanced: Monitors power modules continuously and generates alarm information when a temperature, voltage, or current exception occurs on a power module.
Usage guidelines
The enhanced exception monitoring mode for power modules occupies lots of system resources.
Examples
# Set the exception monitoring mode for power modules to normal.
<Sysname> system-view
[Sysname] power-exception-monitor normal
power-supply surplus-power enable
Use power-supply surplus-power enable to enable power module sleeping.
Use undo power-supply surplus-power enable to disable power module sleeping.
Syntax
power-supply surplus-power enable
undo power-supply surplus-power enable
Views
System view
Predefined user roles
network-admin
Usage guidelines
This feature is available only for switches that are installed with the PSR2400-54A, PSR2400-54D, or PSR3000-54A power module.
This feature takes effect only when power supply management is enabled.
Power modules in sleeping state cannot act as the backup power modules. When an operating power module fails or is removed, the device might not be able to operate correctly.
To view the operating status of power modules, execute the display power command.
This feature enables the device to monitor the remaining power in real time.
· If the remaining power is greater than the power of a power module, the device places the power module into sleeping state.
· When the remaining power becomes insufficient, the device wakes up a sleeping power module.
Examples
# Enable power module sleeping.
<Sysname> system-view
[Sysname] power-supply surplus-power enable
Related commands
power-supply policy enable
resource-monitor minor resend enable
Use resource-monitor minor resend enable to enable resending of minor resource depletion alarms.
Use undo resource-monitor minor resend enable to disable resending of minor resource depletion alarms.
Syntax
resource-monitor minor resend enable
undo resource-monitor minor resend enable
Default
Resending of minor resource depletion alarms is enabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
When a resource type enters minor alarm state, the device issues a minor alarm. If the resource type stays in minor alarm state or changes from severe alarm state to minor alarm state, the device identifies whether resending of minor resource depletion alarms is enabled. If the feature is disabled, the device does not issue additional minor alarms. If the feature is enabled, the device resends minor alarms periodically.
The resending interval of severe alarms is 24 hours and the resending interval of minor alarms is 7×24 hours.
Examples
# Enable resending of minor resource depletion alarms.
<Sysname> system-view
[Sysname] resource-monitor minor resend enable
Related commands
display resource-monitor
resource-monitor output
resource-monitor resource
resource-monitor output
Use resource-monitor output to specify destinations for resource depletion alarms.
Use undo resource-monitor output to remove destinations for resource depletion alarms.
Syntax
resource-monitor output { netconf-event | snmp-notification | syslog } *
undo resource-monitor output [ netconf-event | snmp-notification | syslog ] *
Default
Resource depletion alarms are sent to NETCONF, SNMP, and the information center.
Views
System view
Predefined user roles
network-admin
Parameters
netconf-event: Sends resource depletion alarms to the NETCONF feature to encapsulate the alarms in NETCONF events. For more information, see NETCONF in Network Management and Monitoring Configuration Guide.
snmp-notification: Sends resource depletion alarms to the SNMP feature to encapsulate the alarms in SNMP traps and informs. For more information, see SNMP in Network Management and Monitoring Configuration Guide.
syslog: Sends resource depletion alarms to the information center to encapsulate the alarms in log messages. For more information, see information center in System Management Configuration Guide.
Usage guidelines
If you do not specify any keywords for the undo resource-monitor output command, the command disables resource depletion alarm output.
Examples
# Specify the information center module as the output destination for resource depletion alarms.
<Sysname> system-view
[Sysname] resource-monitor output syslog
Related commands
resource-monitor minor resend enable
resource-monitor resource
resource-monitor resource
Use resource-monitor resource to set resource depletion thresholds.
Use undo resource-monitor resource to disable resource depletion thresholds.
Syntax
resource-monitor resource resource-name slot slot-number cpu cpu-number by-percent minor-threshold minor-threshold severe-threshold severe-threshold
undo resource-monitor resource resource-name slot slot-number cpu cpu-number
Default
The default settings vary by resource type. Use the display resource-monitor command to display the resource depletion thresholds.
Views
System view
Predefined user roles
network-admin
Parameters
resource-name: Specifies a resource type by its name. The values for this argument are case insensitive and cannot be abbreviated. Table 19 shows the resource types that can be monitored.
Table 19 Resource types that can be monitored
Resource type |
Description |
ac |
Number of Ethernet service instances. |
agg_group |
Aggregation group hardware resources. |
arp |
ARP hardware resources. |
ecmp_fec_1 |
Level-1 ECMP FEC hardware resources. |
ecmp_fec_2 |
Level-2 ECMP FEC hardware resources. |
ecmp_fec_3 |
Level-3 ECMP FEC hardware resources. |
local_ecmp |
Local ECMP group hardware resources. |
local_fec_1 |
Level-1 local FEC hardware resources. |
local_fec_2 |
Level-2 local FEC hardware resources. |
local_fec_3 |
Level-3 local FEC hardware resources. |
mac |
MAC address table hardware resources. |
mc |
Multicast hardware resources. |
mqcin |
Inbound MQC hardware resources. |
mqcout |
Outbound MQC hardware resources. |
nd |
ND hardware resources. |
openflow |
OpenFlow hardware resources. |
pbr |
PBR hardware resources. |
pfilterin |
Inbound packet filter resources. |
pfilterout |
Outbound packet filter resources. |
route |
Routing hardware resources. |
rport |
Layer 3 aggregate subinterface hardware resources. |
subrport |
Layer 3 Ethernet subinterface hardware resources. |
vlan |
Number of VLANs. |
vlaninterface |
VLAN interface hardware resources. |
vrf |
VPN instance hardware resources. |
vsiintf |
VSI interface hardware resources. |
slot slot-number: Specifies the slot number of the device, which is fixed at 1.
cpu cpu-number: Specifies a CPU by its number.
by-percent: Specifies resource depletion thresholds in percentage.
minor-threshold minor-threshold: Specifies the minor resource depletion threshold. To view the value range, enter a question mark (?) in the place of the minor-threshold argument.
severe-threshold severe-threshold: Specifies the severe resource depletion threshold. To view the value range, enter a question mark (?) in the place of the severe-threshold argument.
Usage guidelines
After you execute this command for a resource type, the device monitors the available amount of the type of resources. The device samples the available amount at intervals, compares the sample with the resource depletion thresholds to identify the resource depletion status, and sends alarms as configured.
Examples
# Set the minor resource depletion threshold to 30% and the severe resource depletion threshold to 10% for ARP entry resources on slot 1.
<Sysname> system-view
[Sysname] resource-monitor resource arp slot 1 cpu 0 by-percent minor-threshold 30 severe-threshold 10
Related commands
display resource-monitor
resource-monitor minor resend enable
resource-monitor output
shutdown-interval
Use shutdown-interval to set the port status detection timer.
Use undo shutdown-interval to restore the default.
Syntax
shutdown-interval interval
undo shutdown-interval
Default
The port status detection timer setting is 30 seconds.
Views
System view
Predefined user roles
network-admin
Parameters
interval: Specifies the port status detection timer value in seconds. The value range is 0 to 300. The value of 0 indicates that port status detection is not automatically performed, and you need to execute the undo shutdown command to restore the port status manually.
Usage guidelines
The device starts a port status detection timer when a port is shut down by a protocol. If the port has been in down state before the timer expires, the device will set the port status to the port's physical status.
If you change the timer setting during port detection, the device compares the new setting (T1) with the time that elapsed since the port was shut down (T).
If T < T1, the port will be brought up after T1 – T seconds.
If T ≥ T1, the port is brought up immediately.
For example, the timer setting is 30 seconds. If you change it to 10 seconds 2 seconds after the port is shut down, the port will come up 8 seconds later. If you change the timer setting to 2 seconds 10 seconds after the port is shut down, the port comes up immediately.
Examples
# Set the port status detection timer to 100 seconds.
<Sysname> system-view
[Sysname] shutdown-interval 100
temperature-limit
Use temperature-limit to set the temperature alarm thresholds.
Use undo temperature-limit to restore the default.
Syntax
temperature-limit slot slot-number { hotspot | inflow | outflow } sensor-number lowlimit warninglimit [ alarmlimit ]
undo temperature-limit slot slot-number { hotspot | inflow | outflow } sensor-number
Default
The defaults vary by temperature sensor model. To view the defaults, execute the undo temperature-limit and display environment commands in turn.
Views
System view
Predefined user roles
network-admin
Parameters
slot slot-number: Specifies the slot number of the device, which is fixed at 1.
hotspot: Configures temperature alarm thresholds for hotspot sensors. A hotspot sensor is typically near the chip that generates a great amount of heat and used to monitor the chip.
inflow: Configures temperature alarm thresholds for inlet sensors. An inlet sensor is near the air inlet and used for monitoring ambient temperature.
outflow: Configures temperature alarm thresholds for outlet sensors. An outlet sensor is near the air outlet for monitoring device temperature.
sensor-number: Specifies a sensor by its number. To view the value range, enter a question mark (?) in the place of this argument.
lowlimit: Specifies the low-temperature threshold in Celsius degrees. The value range varies by temperature sensor. To view the value range, enter a question mark (?) in the place of this argument.
warninglimit: Specifies the high-temperature warning threshold in Celsius degrees. This threshold must be greater than the low-temperature threshold. To view the value range, enter a question mark (?) in the place of this argument.
alarmlimit: Specifies the high-temperature alarming threshold in Celsius degrees. This threshold must be greater than the warning threshold. To view the value range, enter a question mark (?) in the place of this argument.
Usage guidelines
When the device temperature drops below the low-temperature threshold or reaches the high-temperature warning or alarming threshold, the device performs the following operations:
· Sends log messages and traps.
· Sets LEDs on the device panel.
Examples
# Set temperature alarm thresholds for hotspot sensor 1 in a slot.
<Sysname> system-view
[Sysname] temperature-limit slot 1 hotspot 1 -10 50 60
Related commands
display environment
transceiver monitor enable
Use transceiver monitor enable to enable transceiver monitoring.
Use undo transceiver monitor enable to disable transceiver monitoring.
Syntax
transceiver monitor enable [ grey | tunable ]
undo transceiver monitor enable
Default
Transceiver monitoring is disabled.
Views
System view
Predefined user roles
network-admin
Parameters
grey: Specifies grey transceiver modules.
tunable: Specifies tunable transceiver modules.
Usage guidelines
After transceiver monitoring is enabled, the device samples the parameters of transceiver modules periodically, including the input power and output power of transceiver modules. If a sampled value reaches the alarm threshold, the device generates a log to notify users.
If you specify the grey keyword, the system monitors only grey transceiver modules. If you specify the tunable keyword, the system monitors only tunable transceiver modules. If you do not specify the grey or tunable keyword, the system monitors all types of transceiver modules.
Examples
# Enable transceiver monitoring.
<Sysname> system-view
[Sysname] transceiver monitor enable
Related commands
transceiver monitor interval
transceiver monitor interval
Use transceiver monitor interval to set a transceiver monitoring interval.
Use undo transceiver monitor interval to restore the default.
Syntax
transceiver monitor interval interval
undo transceiver monitor interval
Default
The transceiver monitoring interval is 600 seconds.
Views
System view
Predefined user roles
network-admin
Parameters
interval: Specifies the transceiver monitoring interval in seconds. The value range is 300 to 3600.
Usage guidelines
After transceiver monitoring is enabled, the device samples the parameters of transceiver modules periodically, including the input power and output power of transceiver modules. If a sampled value reaches the alarm threshold, the device generates a log entry to notify users.
This command takes effect only when the transceiver monitor enable command is used.
Examples
# Set the transceiver monitoring interval to 500 seconds.
<Sysname> system-view
[Sysname] transceiver monitor interval 500
Related commands
transceiver monitor enable