- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
03-Hardware resource management commands | 339.36 KB |
Hardware resource management commands
display cpu-usage configuration
display device manuinfo chassis-only
display transceiver itu-channel
display transceiver optics interface
monitor cpu-usage statistics-interval core
monitor cpu-usage threshold core
monitor resend cpu-usage core-interval
Hardware resource management commands
card-mode
Use card-mode to set the operating mode for an interface card.
Syntax
card-mode slot slot-number subslot subslot-number mode-name
Default
The default varies by device model.
Views
System view
Predefined user roles
network-admin
Parameters
slot slot-number: Specifies a card by its slot number.
subslot subslot-number: Specifies a subcard by its subslot number.
mode-name: Specifies an operating mode. Available operating modes depend on the interface card type. The following shows all operating mode values:
· ce1: Specifies the Channelized E1 (CE1) mode. All interfaces on the interface module act as WAN CE1 interfaces. For more information about WAN CE1 interfaces, see WAN interface configuration in Interface Configuration Guide.
· fe1: Specifies the Fractional E1 (FE1) mode. All interfaces on the interface module act as WAN E1-F interfaces. For more information about WAN E1-F interfaces, see WAN interface configuration in Interface Configuration Guide.
· oc-12-pos: Specifies the oc-12-pos mode. All interfaces on the interface card act as 622 Mbps POS interfaces.
· oc-3-pos: Specifies the oc-3-pos mode. All interfaces on the interface card act as 155 Mbps POS interfaces.
Usage guidelines
Whether the new operating mode takes effect immediately depends on the device model. If the new operating mode does not take effect immediately, you must perform one of the following tasks to activate the new operating mode:
· Hot swap the interface card if the interface card supports hot swapping.
· Restart the device.
For more information about interface types, see Interface Configuration Guide.
Examples
# Set the operating mode to oc-3-pos for a subcard.
<Sysname> system-view
[Sysname] card-mode slot 2 subslot 1 oc-3-pos
Please reboot or hot-swap the card or subcard (if supported) to make the configuration take effect.
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 a card by its slot number. If you do not specify a card, this command displays alarm information for all cards.
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 cpu-usage
Use display cpu-usage to display the current CPU usage statistics.
Syntax
display cpu-usage [ data-plane ] [ summary ] [ slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
data-plane: Displays CPU usage statistics for the data plane. Support for this keyword depends on the device model.
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 a card by its slot number. If you do not specify a card, this command displays the CPU usage statistics for all cards.
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 2 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 a card by its slot number. If you do not specify a card, this command displays the CPU usage monitoring settings for the active MPU.
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 98%.
Table 3 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 a card by its slot number. If you specify a process but do not specify a card, this command displays the statistics for the process on the active MPU. If you do not specify any options, this command displays the statistics for all processes on all cards.
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 [ harddisk | usb ] [ slot slot-number [ subslot subslot-number ] | verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
harddisk: Displays hard disk information.
usb: Displays USB interface information.
slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays information for all cards.
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 cards.
Examples
# Display device hardware information.
<Sysname> display device
Slot No. Board type Status Primary SubSlots
---------------------------------------------------------------------
0 RT-MSU-200 Normal Master 1
1 RT-MSU-200 Normal Standby 1
2 N/A Absent N/A N/A
3 RT-XMIM-1POS Normal N/A 0
4 N/A Absent N/A N/A
5 RT-XMIM-2POS Normal N/A 0
6 RT-XMIM-4E1-F Normal N/A 0
7 RT-XMIM-2E1 Normal N/A 0
8 RT-XMIM-4E1 Normal N/A 0
9 RT-XMIM-8GEE-R Normal N/A 0
Table 4 Command output
Field |
Description |
Slot No. |
Slot number. |
Board Type |
Hardware type of the card. |
Status |
Card status: · Absent—The slot is not installed with a card. · Fault—The card is faulty and cannot start up. · Normal—The card is an interface card and is operating correctly. · Disable—The card is disabled. · Wait—The card is in waiting status. |
Primary |
Card status: · Standby—The card is the standby MPU. · Master—The card is the active MPU. · N/A—The card does not support performing an active/standby switchover. |
SubSlots |
Number of subslots. |
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 a card by its slot number. If you do not specify a card, this command displays hardware electronic label information of all cards.
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 chassis-only
Use display device manuinfo chassis-only to display electronic label information for the backplane.
Syntax
display device manuinfo chassis-only
Views
Any view
Predefined user roles
network-admin
network-operator
Examples
# Display electronic label information for the backplane.
<Sysname> display device manuinfo chassis-only
...
display device manuinfo fan
Use display device manuinfo fan to display electronic label information for a fan tray.
Syntax
display device manuinfo fan fan-id
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
fan-id: Specifies a fan tray by its ID.
Examples
# Display electronic label information for a fan tray.
<Sysname> display device manuinfo fan 1
...
display device manuinfo power
Use display device manuinfo power to display electronic label information for a power module.
Syntax
display device manuinfo power power-id
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
power-id: Specifies a power module by its ID.
Examples
# Display electronic label information for a power module.
<Sysname> display device manuinfo 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 a card by its slot number. If you do not specify a card, this command displays information for all cards.
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 LowerLimit WarningLimit AlarmLimit ShutdownLimit
0 Inflow 1 39 0 62 67 N/A
0 Hotspot 1 48 0 84 98 N/A
0 Hotspot 2 63 0 88 102 107
0 Hotspot 3 56 0 100 117 122
Table 5 Command output
Field |
Description |
System Temperature information (degree centigrade) |
Temperature information (°C). |
sensor |
Temperature sensor: · hotspot—Hotspot sensor. · inflow—Air inlet sensor. · outflow—Air outlet sensor. |
Slot |
Sensor position. For a sensor on the chassis or fan tray, this field displays Vent. |
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 [ 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.
Examples
# Display the operating states of all fan trays.
<Sysname> display fan
Slot 1:
Fan 1:
State : Normal
Airflow Direction: Port-to-power
Prefer Airflow Direction: Port-to-power
Table 6 Command output
Field |
Description |
Member device ID. |
|
Fan tray ID. |
|
State |
Fan tray status: · Absent—The slot is not installed with a fan tray. · Fault—The fan tray is faulty. · Normal—The fan tray is operating correctly. · FanDirectionFault—The actual airflow direction is not the preferred direction. |
Actual airflow direction: · Port-to-power—From the port side to the power module side. · Power-to-port—From the power module side to the port side. |
|
Preferred airflow direction: · Port-to-power—From the port side to the power module side. · Power-to-port—From the power module side to the port side. |
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 a card by its slot number. If you do not specify a card, this command displays memory usage for all cards.
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 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(Available):
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(Available):
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(Available):
Slot CPU Total Used Free Buffers Caches FreeRatio
0 0 16335164 4144720 12190444 8596 2472508 77.5%
Container memory statistics are measured in KB(Available):
Slot CPU Total Used Free UsageRatio
0 0 16335164 2358048 12190444 14.4%
Table 7 Command output
Field |
Description |
Memory statistics are measured in KB(Available) |
Usage information of the available memory 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(Available) |
Container usage information of the available memory, 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 a card by its slot number. If you do not specify a card, this command displays the memory usage thresholds and statistics for the active MPU.
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
Free memory threshold:
Minor: 256M
Severe: 192M
Critical: 128M
Normal: 320M
Early-warning: 384M
Secure: 448M
Current memory state: Normal (secure)
Event statistics:
[Back to secure state]
First notification: 0.0
Latest notification: 0.0
Total number of notifications sent: 0
[Enter early-warning state]
First notification at: 0.0
Latest notification at: 0.0
Total number of notifications sent: 0
[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 [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
verbose: Displays detailed information. If you do not specify this keyword, the command displays brief information.
Examples
# Display detailed power module information.
<Sysname> display power verbose
PWR No. State Type Description
------------------------------------------------
0 Absent N/A N/A
1 Normal AC N/A
2 Normal AC PSR250-12A
Power supply information for chassis 0
------------------------------------------------
Total system power : 500 watts
Used system power : 138 watts
Available system power : 272 watts
Reserved system power : 90 watts
Redundant system power num : 1
Slot Card type Used power(W) State
------------------------------------------------
0 RT-MSU-200 45 On
1 RT-MSU-200 45 On
2 N/A 0 Off
3 RT-XMIM-1POS 10 On
4 N/A 0 Off
5 RT-XMIM-2POS 11 On
6 RT-XMIM-4E1-F 6 On
Table 8 Command output
Field |
Description |
Power modules installed |
Number of power modules installed on the device. |
Power modules usable |
Number of available power modules. |
Rated power |
Total rated power of power modules that are in Normal state, in watts. |
Usable power |
Total available power of power modules that are in Normal state, in watts. |
Used power |
Total used power, in watts. |
Redundant power |
Redundant power, in watts. |
Total DC output |
Total output current of all power modules, in amperes. |
PowerID |
Power module ID. |
State |
Power module status: · Absent—The slot is not installed with a power module. · Fault—The power module is faulty. · Normal—The power module is operating correctly. |
InVoltage(V) |
Input voltage of the power module, in volts. |
InPower(W) |
Input power of the power module, in watts. |
OutVoltage(V) |
Output voltage of the power module, in volts. |
OutCurrent(A) |
Output current of the power module, in amperes. |
OutPower(W) |
Output power of the power module, in watts. |
Power information by slot |
Power module usage information for slots. |
Type |
Card type. |
Current(A) |
Input current of the card, in amperes. If this field is not supported, two hyphens (--) are displayed. |
Power(W) |
Rated power of the card, in watts. If this field is not supported, two hyphens (--) are displayed. |
Status |
Status of the card: · Absent—The slot is not installed with a card. · Fault—The card is faulty. · Normal—The card is operating correctly. |
display power-supply
Use display power-supply to display power supply management information.
Syntax
display power-supply [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
verbose: Displays detailed power supply management information. If you do not specify this keyword, this command displays the brief information.
Examples
# Display power supply management information.
<Sysname> display power-supply
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. For more information about resource names, see the following table:
Table 9 Resource types that can be monitored
Resource type |
Description |
acl_rule |
ACL rule resources. |
ipv4fib |
IPv4 FIB hardware entry resources. |
ipv6fib |
IPv6 FIB hardware entry resources. |
slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays resource monitoring information for all cards.
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 0:
Resource Minor Severe Free/Total
(%) (%) (absolute)
arp 50 20 90095/90098
Slot 1:
Resource Minor Severe Free/Total
(%) (%) (absolute)
arp 50 20 90095/90098
Table 10 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
You can use the display transceiver alarm command to display alarms present on transceiver modules.
If no error occurs, None is displayed. The following tables describe the alarm information that might be present on transceiver module:
Table 11 Command output on SFP/SFP+/GBIC/SFF transceiver modules
Field |
Description |
RX loss of signal |
Receive signal loss. |
RX power high |
High receive optical power. |
RX power low |
Low receive optical power. |
TX fault |
Transmit fault. |
TX bias high |
High transmit bias current. |
TX bias low |
Low transmit bias current. |
TX power high |
High transmit optical power. |
TX power low |
Low transmit optical power. |
Temp high |
High temperature. |
Temp low |
Low temperature. |
Voltage high |
High voltage. |
Voltage low |
Low voltage. |
Transceiver info I/O error |
N/A |
Transceiver info checksum error |
N/A |
Transceiver type and port configuration mismatch |
The transceiver type does not match port configuration. |
Transceiver type not supported by port hardware |
The transceiver type is not supported on the port. |
TEC fault |
Thermoelectric Cooler (TEC) fault. This field is available only for the HPE X130 10G SFP+ LC LH80 tunable Transceiver (JL250A) and SFP-XG-LH80-Tunable transceiver modules. |
Wavelength unlocked |
Optical signal wavelength is out of lock. This field is available only for the HPE X130 10G SFP+ LC LH80 tunable Transceiver (JL250A) and SFP-XG-LH80-Tunable transceiver modules. |
Tx is not ready due to tuning |
The transmitter is not ready when the signal wavelength changes. This field is available only for the HPE X130 10G SFP+ LC LH80 tunable Transceiver (JL250A) and SFP-XG-LH80-Tunable transceiver modules. |
Table 12 Command output on QSFP+/QSFP28 transceiver modules
Field |
Description |
Temp high |
High temperature. |
Temp low |
Low temperature. |
Voltage high |
High voltage. |
Voltage low |
Low voltage. |
RX signal loss in channel x |
Loss of receive signal in channel x. |
TX fault in channel x |
Packet transmission fault in channel x. |
TX signal loss in channel x |
Loss of transmit signal in channel x. |
RX power high in channel x |
High receive optical power in channel x. |
RX power low in channel x |
Low receive optical power in channel x. |
TX bias high in channel x |
High bias current in channel x. |
TX bias low in channel x |
Low bias current in channel x. |
Transceiver info I/O error |
N/A |
Transceiver info checksum error |
N/A |
Transceiver type and port configuration mismatched |
The transceiver type does not match port configuration. |
Transceiver type not supported |
The transceiver type is not supported on the port. |
Examples
# Display the alarms present on the transceiver module in interface GigabitEthernet 1/0/1.
<Sysname> display transceiver alarm interface gigabitethernet 1/0/1
GigabitEthernet1/0/1 transceiver current alarm information:
RX loss of signal
RX power low
Table 13 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.
Usage guidelines
After you install a CFP2-200G-DCO-Tunable transceiver module on an interface, the system creates two 100G Ethernet interfaces, such as HundredGigE 1/0/1:1 and HundredGigE 1/0/1:2. Specifying any of the interfaces for this command displays the same information.
Examples
# Display the current values of the digital diagnosis parameters on the transceiver module in interface GigabitEthernet 1/0/1.
<Sysname> display transceiver diagnosis interface gigabitethernet 1/0/1
GigabitEthernet1/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
Table 14 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 HPE X130 10G SFP+ LC LH80 Tunable Transceiver (JL250A) and SFP-XG-LH80-Tunable transceiver modules. |
Freq.er(GHz) |
Frequency offset in GHz, accurate to 0.1 GHz. This field is supported only on the HPE X130 10G SFP+ LC LH80 Tunable Transceiver (JL250A) and SFP-XG-LH80-Tunable transceiver modules. |
[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.
Usage guidelines
After you insert the transceiver module to the device for the first time or restart the MPU, wait 90 seconds before you executing the display transceiver interface command to show the key parameters.
Examples
# Display the key parameters of the transceiver module in interface GigabitEthernet 1/0/1.
<Sysname> display transceiver interface gigabitethernet 1/0/1
GigabitEthernet1/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 15 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/125um 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 supported only on the HPE X130 10G SFP+ LC LH80 Tunable Transceiver (JL250A) and SFP-XG-LH80-Tunable transceiver modules.
Examples
# Display ITU channel information for the transceiver module on Ten-GigabitEthernet 1/0/1.
<Sysname> display transceiver itu-channel interface ten-gigabitethernet 1/0/1
Interface Channel WaveLength(nm) Frequency(THz)
XGE1/0/1 1 1566.72 191.35
# Display ITU channels supported by the transceiver module on Ten-GigabitEthernet 1/0/1.
<Sysname> display transceiver itu-channel interface ten-gigabitethernet 1/0/1 supported-channel
ITU channel settings supported on Ten-GigabitEthernet1/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 16 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 GigabitEthernet 1/0/1.
<Sysname> display transceiver manuinfo interface gigabitethernet 1/0/1
GigabitEthernet1/0/1 transceiver manufacture information:
Manu. Serial Number : 213410A0000054000251
Manufacturing Date : 2019-09-01
Vendor Name : H3C
Table 17 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. |
display transceiver optics interface
Use display transceiver optics interface to display key optical parameters for transceiver modules.
Syntax
display transceiver optics 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 no interface is specified, this command displays key optical parameters for all interfaces that support configuring optical parameters.
Examples
# Display key optical parameters for the transceiver module in interface HundredGigE 1/0/1.
<Sysname> display transceiver optics interface hundredgige 1/0/1
HundredGigE1/0/1 transceiver optics information:
Modulation mode : Non-diff 15% SD-FEC DP-8QAM Denali Compatible
Grid spacing : 50GHz
Frequency : 194.10THz
Configured transmission power : -5.0dBm
# Display key optical parameters for the transceiver module in interface FourHundredGigE 1/0/1.
<Sysname> display transceiver optics interface fourhundredgige 1/0/1
FourHundredGigE1/0/1 transceiver optics information:
Grid spacing : 50GHz,75GHz,100GHz
Frequency : 194.10THz
Configured output power : -5.0dBm
Configured grid spacing : 50GHz
Related commands
optics modulation-mode
optics tx-power
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 supported only on the HPE X130 10G SFP+ LC LH80 Tunable Transceiver (JL250A) and SFP-XG-LH80-Tunable transceiver modules.
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 Ten-GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/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
line-card-mode
Use line-card-mode to specify an operating mode for an interface card.
Syntax
line-card-mode slot slot-number mode-name
Default
The default varies by device model.
Views
System view
Predefined user roles
network-admin
Parameters
slot slot-number: Specifies a card by its slot number.
mode-name: Specifies an operating mode. Available operating modes depend on the interface card type. The following shows all operating mode values:
· fe1: Specifies the FE1 mode. All interfaces on the interface module act as E1-F interfaces.
· ce1: Specifies the CE1 mode. All interfaces on the interface module act as CE1/PRI interfaces.
· oc-12-pos: Specifies the oc-12-pos mode. All interfaces on the interface card act as 622 Mbps POS interfaces.
· oc-3-pos: Specifies the oc-3-pos mode. All interfaces on the interface card act as 155 Mbps POS interfaces.
Usage guidelines
Whether the new operating mode takes effect immediately depends on the device model. If the new operating mode does not take effect immediately, you must perform one of the following tasks to activate the new operating mode:
· Hot swap the interface card if the interface card supports hot swapping.
· Restart the device.
For more information about interface types, see Interface Configuration Guide.
Examples
# Set the operating mode to FE1 for an interface card.
<Sysname> system-view
[Sysname] line-card-mode slot 2 fe1
Please reboot or hot-swap (if supported) the card for the configuration to take effect.
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 [ early-warning early-warning-value secure secure-value ]
undo memory-threshold [ slot slot-number [ cpu cpu-number ] ]
Default
The free-memory thresholds vary by device model. To obtain the default free-memory thresholds, execute the undo memory-threshold and display memory-threshold commands in sequence.
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.
early-warning early-warning-value: Specifies the early-warning threshold. To view the value range for this threshold, enter a question mark (?) in the place of the early-warning-value argument. Setting this threshold to 0 disables the early warning feature. The default value for this threshold depends on the device model.
secure secure-value: Specifies the sufficient-memory threshold. To view the value range for this threshold, enter a question mark (?) in the place of the secure-value argument. The default value for this threshold depends on the device model.
slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command sets free-memory thresholds for the active MPU.
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.
(On devices that do not support low memory.) You can use the display memory command to display memory usage information.
(On devices that support low memory.) The system monitors only the amount of free low-memory space. You can use the display memory command to display memory usage information.
(On devices with slots that support low memory.) For slots that support low memory, the system monitors only the amount of free low-memory space. You can use the display memory command to display memory usage information. If the LowMem field is displayed for a slot, the slot supports low memory.
The early warning feature warns you of an approaching insufficient-memory condition.
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.
The system will restart a card if one of the following conditions is met:
· After a critical alarm occurs, the remaining free-memory value has been smaller than the critical alarm threshold for 30 seconds.
· The interval between two consecutive critical alarms is shorter than 30 seconds.
· The critical alarm has occurred three times within three minutes.
· After a critical alarm occurs, the system will periodically sample free memory space and predict if the free memory space will be exhausted within 30 seconds. If the prediction result indicates that the free memory space will be exhausted within 30 seconds, the system will restart the card.
Once the free memory space reaches the early warning, minor, severe, or critical alarm threshold, the device will display the current memory usage information when you log in to the device through console or Telnet login, or execute every command.
The sending periods of memory alarm notifications are as follows:
· If the free memory space has consistently exceeded the early-warning threshold for 1 hour, an early-warning alarm notification is sent.
· If the free memory space has consistently exceeded the minor threshold for 12 hours, a minor alarm notification is sent.
· If the free memory space has consistently exceeded the severe threshold for 3 hours, a severe alarm notification is sent.
· If the free memory space has consistently exceeded the critical threshold for 1 hour, a critical alarm notification is sent.
# 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 a card by its slot number. If you do not specify a card, this command sets the memory usage threshold for the active MPU.
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 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 a card by its slot number. If you do not specify a card, this command enables CPU usage tracking for the active MPU.
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 a card by its slot number. If you do not specify a card, this command sets the interval for the active MPU.
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 statistics-interval core
Use monitor cpu-usage statistics-interval core to set a CPU core usage statistics interval.
Use undo monitor cpu-usage statistics-interval core to restore the default.
Syntax
monitor cpu-usage statistics-interval interval slot slot-number cpu cpu-number core core-id-list
undo monitor cpu-usage statistics-interval slot slot-number cpu cpu-number core core-id-list
Default
The CPU core usage statistics interval is 60 seconds.
Views
System view
Predefined user roles
network-admin
Parameters
interval: Specifies the CPU core usage statistics interval in seconds. The value range for this argument is 10 to 3600. As a best practice, set this argument to an integer multiple of the sampling interval, which is fixed at 5 seconds. If you set this argument to a non-integer multiple of the sampling interval, the effective statistics interval is the integer multiple of the sampling interval that is close to and smaller than the value you set. For example, if you set this argument to 12 seconds, the effective statistics interval is 10 seconds.
slot slot-number: Specifies a card by its slot number.
cpu cpu-number: Specifies a CPU by its number.
core core-id-list: Specifies a space-separated list of up to 10 CPU core items. Each item specifies a CPU core or a range of CPU cores in the form of core-id1 [ to core-id2 ]. The value for core-id2 must be equal to or greater than the value for core-id1.
Usage guidelines
The device samples CPU core usage at 5-second intervals and calculates the average value during each CPU core usage statistics interval. If the value during an interval is greater than a CPU core usage alarm threshold, the device issues an alarm and logs the event.
Examples
# Set the usage statistics interval to 60 seconds for a CPU core.
<Sysname> system-view
[Sysname] monitor cpu-usage statistics-interval 60 slot 1 cpu 0 core 0
Related commands
monitor cpu-usage threshold core
monitor resend cpu-usage core-interval
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: 98%.
CPU usage recovery threshold: 79%.
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 a card by its slot number. If you do not specify a card, this command sets the CPU usage threshold for the active MPU.
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 cpu-usage threshold core
Use monitor cpu-usage threshold core to set CPU core usage alarm thresholds.
Use undo monitor cpu-usage threshold core 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 core core-id-list
undo monitor cpu-usage threshold [ minor-threshold recovery-threshold ] slot slot-number cpu cpu-number core core-id-list
Default
Severe CPU usage alarm threshold: 99%.
Minor CPU usage alarm threshold: 98%.
CPU usage recovery threshold: 79%.
Views
System view
Predefined user roles
network-admin
Parameters
severe-threshold: Specifies the severe CPU core usage alarm threshold in percentage. The value range for this argument is 2 to 100.
minor-threshold minor-threshold: Specifies the minor CPU core usage alarm threshold in percentage. The value range for this argument is 1 to the severe CPU core usage alarm threshold minus 1. If you do not specify this option, the minor CPU core usage alarm threshold is 80 percent of the severe CPU core usage alarm threshold.
recovery-threshold recovery-threshold: Specifies the CPU core usage recovery threshold in percentage. The value range for this argument is 0 to the minor CPU core usage alarm threshold minus 1. If you do not specify this option, the CPU core usage recovery threshold is 70 percent of the severe CPU core usage alarm threshold.
slot slot-number: Specifies a card by its slot number.
cpu cpu-number: Specifies a CPU by its number.
core core-id-list: Specifies a space-separated list of up to 10 CPU core items. Each item specifies a CPU core or a range of CPU cores in the form of core-id1 [ to core-id2 ]. The value for core-id2 must be equal to or greater than the value for core-id1.
Usage guidelines
The device samples CPU core usage at 5-second intervals and calculates the average value during each CPU core usage statistics interval. If the value during an interval is greater than a CPU core usage alarm threshold, the device issues an alarm and logs the event.
Examples
# Set the severe CPU core usage alarm threshold to 90% for a CPU core.
<Sysname> system-view
[Sysname] monitor cpu-usage threshold 90 slot 1 cpu 0 core 0
Related commands
display cpu-usage configuration
monitor cpu-usage statistics-interval core
monitor disk-usage disk
Use monitor disk-usage disk to set the disk usage threshold.
Use undo monitor disk-usage disk to restore the default.
Syntax
monitor disk-usage [ slot slot-number ] disk disk-name threshold threshold-value
undo monitor disk-usage [ slot slot-number ] disk disk-name threshold
Default
The disk usage threshold varies by device model.
Views
System view
Predefined user roles
network-admin
Parameters
slot slot-number: Specifies a card by its slot number. If you do not specify a card, the command applies to the active MPU.
disk disk-name: Specifies a disk by its name. This option is case sensitive. The system will prompt a parameter error if you enter this option incorrectly.
threshold threshold-value: Specifies the disk usage threshold in percentage, in the range of 1 to 100.
Usage guidelines
After you set the disk usage threshold, the device compares the usage of the disk with the threshold at each sampling. If the usage exceeds the threshold, the device sends a high disk usage alarm to the NETCONF module. For more information about the NETCONF module see Network Management and Monitoring Configuration Guide.
Examples
# Set the disk usage threshold to 80%.
<Sysname> system-view
[Sysname] monitor disk-usage disk flash threshold 80
Related commands
monitor disk-usage interval
monitor disk-usage interval
Use monitor disk-usage interval to set the disk usage sampling interval.
Use undo monitor disk-usage interval to restore the default.
Syntax
monitor disk-usage interval interval
undo monitor disk-usage interval
Default
The disk usage sampling interval is 300 seconds.
Views
System view
Predefined user roles
network-admin
Parameters
interval interval-time: Specifies the disk usage sampling interval in seconds, a multiple of 5 in the range of 5 to 1800.
Usage guidelines
After you set the disk usage sampling interval, the device samples the disk usage at the specified intervals.
Examples
# Set the disk usage sampling interval to 120 seconds.
<Sysname> system-view
[Sysname] monitor disk-usage interval 120
Related commands
monitor disk-usage disk
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 a card by its slot number. If you do not specify a card, this command sets the interval for the active MPU.
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 restore the default.
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 a card by its slot number. If you do not specify a card, this command sets the interval for the active MPU.
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
power-supply off
Use power-supply off to power off a card.
Syntax
power-supply off slot slot-number [ subslot subslot-number ]
Views
User view
Predefined user roles
network-admin
Parameters
slot slot-number: Specifies a card by its slot number.
subslot subslot-number: Specifies a subcard by its subslot number. If you do not specify a subcard, this command stops supplying power to all subcards on the card.
Usage guidelines
CAUTION: A card will not send or receive packets after you power off it. Execute this command with caution. |
To use this command, you must enable power supply management first.
When power is insufficient, you can power off interface cards that are idle or connected to unimportant network nodes to ensure power supply to critical interface cards.
Examples
# Power off a card.
<Sysname> power-supply off slot 2
Related commands
power-supply policy enable
power-supply on
Use power-supply on to power on a card or subcard.
Syntax
power-supply on slot slot-number [ subslot subslot-number ]
Views
User view
Predefined user roles
network-admin
Parameters
slot slot-number: Specifies a card by its slot number.
subslot subslot-number: Specifies a subcard by its subslot number. If you do not specify a subcard, this command starts power supply to all subcards on the card.
Usage guidelines
To use this command, you must enable power supply management first.
Examples
# Power on a card.
<Sysname> power-supply on slot 2
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. The following table shows the resource types that can be monitored.
Table 18 Resource types that can be monitored
Resource type |
Description |
acl_rule |
ACL rule resources |
ipv4fib |
IPv4 FIB hardware entry resources. |
ipv6fib |
IPv6 FIB hardware entry resources. |
slot slot-number: Specifies a card by its slot number.
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
On a network enabled with loop detection or STP, 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