- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
04-Hardware management and maintenance | 96.75 KB |
Contents
4 Hardware management and maintenance
Displaying hardware information about the device
Displaying software and hardware version information about the device
Displaying the operational statistics about the device
Displaying information about the device
Displaying electrical label information for the device
Displaying the CPU usage of the device
Displaying the memory usage of the device
Displaying the operational status of the built-in fans
Displaying the operating state of power modules
4 Hardware management and maintenance
The command lines and outputs depend on the software version that runs on the device.
Displaying hardware information about the device
Displaying software and hardware version information about the device
Use the display version command to display software and hardware version information about the device. The output includes the following information:
· Current software version.
· Current hardware version.
· Device operating time.
The output depends on the software and hardware version of the device.
<H3C>display version
H3C Comware Software, Version 7.1.064, ESS 5610
Copyright (c) 2004-2022 New H3C Technologies Co., Ltd. All rights reserved.
H3C WX2860X uptime is 4 weeks, 0 days, 0 hours, 46 minutes
Last reboot reason : User soft reboot
Boot image: flash:/boot.bin
Boot image version: 7.1.064, ESS 5610
Compiled May 20 2022 15:00:00
System image: flash:/system.bin
System image version: 7.1.064, ESS 5610
Compiled May 20 2022 15:00:00
with 1 1600MHz Multi-core Processor
2048M bytes DDR4
7456M bytes EMMC Memory
Hardware Version is Ver.A
CPLD Version is 002
Basic Bootrom Version is 1.08
Extend Bootrom Version is 1.08
[Subslot 0]WX2860X Hardware Version is Ver.A
Displaying the operational statistics about the device
When you perform routine maintenance or the system fails, you might need to display the operational information of each feature module to locate failures. Typically, you need to run the display commands individually. However, you can use the display diagnostic-information command in any view to display or save the operational statistics of multiple feature modules of the device. This command displays the output of the display clock, display version, display device, and display current-configuration commands.
· Save the operational statistics for each feature module of the device:
<H3C> display diagnostic-information
Save or display diagnostic information (Y=save, N=display)? [Y/N]:y
Please input the file name(*.tar.gz)[flash:/diag_H3C_20200821-202301.tar.gz]:
Diagnostic information is outputting to flash:/diag_H3C_20200821-202301.tar.gz.
Please wait...
Save successfully.
To view the contents of the default.diag file, execute the more default.diag command in user view, and then press the Page Up and Page Down keys.
· Display the operational statistics for each feature module of the device. (Details not shown.)
<H3C> display diagnostic-information
Save or display diagnostic information (Y=save, N=display)? [Y/N]:n
===============================================
===============display clock===============
09:18:31 UTC Wed 07/13/2022
=================================================
===============display version===============
H3C Comware Software, Version 7.1.064, ESS 5610
Copyright (c) 2004-2022 New H3C Technologies Co., Ltd. All rights reserved.
H3C WX2860X uptime is 4 weeks, 0 days, 0 hours, 47 minutes
Last reboot reason : User soft reboot
Boot image: flash:/boot.bin
Boot image version: 7.1.064, ESS 5610
Compiled May 20 2022 15:00:00
System image: flash:/system.bin
System image version: 7.1.064, ESS 5610
Compiled May 20 2022 15:00:00
with 1 1600MHz Multi-core Processor
2048M bytes DDR4
7456 bytes EMMC Memory
Hardware Version is Ver.A
…
Displaying information about the device
Use the display device command to display information about the device.
<H3C> display device
Slot No. Subslot No. Board Type Status Max Ports
1 0 WX2860X Normal 12
Table4-1 Command output
Field |
Description |
Board Type |
Device type. |
Status |
Device status: · Fault—The device is faulty and cannot start up correctly. · Normal—The device is operating correctly. |
Max Ports |
Maximum number of ports supported. |
Displaying electrical label information for the device
An electrical label is a profile of a device. It contains the permanent configuration, including the serial number, manufacturing date, MAC address, and vendor name.
Use the display device manuinfo command to display the electrical label information for the device.
<H3C> display device manuinfo
DEVICE_NAME:WX2860X
DEVICE_SERIAL_NUMBER:219801A3TN187000124
MAC_ADDRESS:80F6-2E60-1240
MANUFACTURING_DATE:2022-01-14
VENDOR_NAME:H3C
Table4-2 Command output
Field |
Description |
DEVICE_NAME |
Device model. |
DEVICE_SERIAL_NUMBER |
Serial number of the device. |
MAC_ADDRESS |
MAC address of the device. |
MANUFACTURING_DATE |
Manufacturing data of the device. |
VENDOR_NAME |
Vendor name. |
Displaying the CPU usage of the device
Use the display cpu-usage command to display the CPU usage statistics for the device.
<H3C> display cpu-usage
Unit CPU usage:
3% in last 5 seconds
3% in last 1 minute
3% in last 5 minutes
Table4-3 Command output
Field |
Description |
3% in last 5 seconds |
Average CPU usage in the last 5 seconds (after the device boots, the device calculates and records the average CPU usage at the interval of 5 seconds). |
3% in last 1 minute |
Average CPU usage in the last minute (after the device boots, the device calculates and records the average CPU usage at the interval of 1 minute). |
3% in last 5 minutes |
Average CPU usage in the last 5 minutes (after the device boots, the device calculates and records the average CPU usage at the interval of 5 minutes). |
Displaying the memory usage of the device
Use the display memory command to display the memory usage statistics for the device.
<H3C> display memory
Memory statistics are measured in KB:
Slot 1:
Total Used Free Shared Buffers Cached FreeRatio
Mem: 1909280 990164 919116 0 9908 359020 48.2%
-/+ Buffers/Cache: 621236 1288044
Swap: 0 0 0
Description |
|
Mem |
Memory usage information. |
Total |
Total size of the physical memory space that can be allocated. |
Used |
Used physical memory. |
Free |
Free physical memory. |
Shared |
Physical memory shared by processes. |
Buffers |
Physical memory used for buffers. |
Cached |
Used physical memory for cache. |
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 |
Swap memory. |
Displaying the operational status of the built-in fans
Use the display fan command to display the operating states of fans.
<H3C> display fan
Fan 1 State: Normal
Table4-5 Command output
Field |
Description |
Fan n |
Fan No.. |
State |
Fan state: · Normal—The fan is operating correctly. · Absent—The fan is not in position. |
Displaying the operating state of power modules
Use the display power command to display the operating state of power modules.
<H3C> display power
Power 1 State: Normal
Table4-6 Command output
Field |
Description |
Power 1, |
Power module No.. |
State |
Power module state: · Normal—The power module is operating correctly. · Absent—The power module is not in position. |
Rebooting the device
To reboot the device, use one of the following methods:
· Reboot the device at the CLI. You can remotely reboot the device in either of the following ways:
¡ Reboot the device immediately by using the reboot command.
¡ Schedule a reboot to occur at a specific time or date or after a delay by using the schedule reboot command.
· Power off and power on the device. This method cuts off the power of the device forcibly, which might cause data loss. It is the least-preferred method.
Restrictions and guidelines
· Before you reboot the device, perform the following tasks:
¡ Use the save command to save the running configuration. For more information about the save command, see configuration file management commands in the command references.
¡ Use the display startup and display boot-loader commands to verify that you have specified the correct next-startup configuration files and startup software images. If the main startup software image is corrupt or does not exist, a reboot failure will occur. To avoid a reboot failure, use the boot-loader file command to specify a new startup software image. For more information about the display startup and display boot-loader commands, see software upgrade commands in the command references.
· The device will not reboot if a file is being accessed.
Configuration procedure
Rebooting the device immediately
Task |
Command |
Remarks |
Reboot the device immediately. |
reboot [ force ] |
Available in user view. |
Scheduling a reboot for the device
Task |
Command |
Remarks |
Schedule a reboot. |
· Schedule a reboot to occur at a specific time or date: · Schedule a reboot to occur after a delay: |
Use either command. By default, no reboot date or time or reboot delay time is specified. Available in user view. The most recent configuration takes effect if you execute the scheduler reboot at or scheduler reboot delay command multiple times. |