- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
04-Hardware management and maintenance | 89.62 KB |
Contents
Hardware management and maintenance·
Displaying hardware information for the device
Displaying operational statistics for the device
Displaying detailed information about the device
Displaying the electronic label data for the device
Displaying the CPU usage of the device
Displaying the memory usage of the device
Configuring the exception handling method
Displaying the exception handling method
The CLI and outputs depend on the software version that is running on the device.
Displaying hardware information for the device
Use the display version command to display software and hardware version information about the device. The output includes the following information: the current software, the hardware version, and the device operating time. The output depends on the software and hardware version of the device.
<H3C> display version
H3C Comware Platform Software
Comware Software, Version 5.20, ESS 3703P60
Copyright (c) 2004-2017 New H3C Technologies. Co., Ltd. All rights reserved.
H3C WX2540E uptime is 0 week, 0 day, 0 hour, 0 minute
H3C WX2540E with 1 BCM58622 1200MHz Processor
1024M bytes DDR3
16M bytes Flash Memory
1024M bytes Nand Flash Memory
Hardware Version is Ver.B
CPLD Version is 002
Basic Bootrom Version is 1.02
Extend Bootrom Version is 1.02
[Subslot 0]WX2540E Hardware Version is Ver.B
Displaying operational statistics for 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(*.diag)[cfa0:/default.diag]:
Diagnostic information is outputting to cfa0:/default.diag.
Please wait...
Save successfully.
Execute the more default.diag command in user view, and then press the Page Up and Page Down keys to view the contents of the file default.diag.
· 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===============
=================================================
14:56:35 UTC Mon 04/24/2017
===================================================
===============display version===============
===================================================
H3C Comware Platform Software
Comware Software,Processor
1024M bytes DDR3
16M bytes Flash Memory
1024M bytes Nand Flash Memory
Hardware Version is Ver.B
CPLD Version is 002
Basic Bootrom Version is 1.02
Extend Bootrom Version is 1.02
[Subslot 0]WX2540E Hardware Version is Ver.B
…
Displaying detailed information about the device
Use the display device command to display detailed information about the device.
<H3C> display device
Slot No. Subslot No. Board Type Status Max Ports
1 0 WX2540E Normal 6
Table 1 Command output
Field |
Description |
Slot No. |
Slot number. |
Board Type |
Card model. |
Status |
Operational status of the card: · Fault—The card in the slot has failed and cannot boot correctly. · Normal—The card in the slot is operating correctly. |
Max Ports |
Maximum number of interfaces that the card supports. |
Displaying the electronic label data for the device
An electronic 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 electronic label data for the device.
<H3C> display device manuinfo
Subslot 0
DEVICE_NAME : WX2540E
DEVICE_SERIAL_NUMBER : 210235A1CWH133000002
MAC_ADDRESS : 000f-e212-6103
MANUFACTURING_DATE : 2014-08-08
VENDOR_NAME : H3C
Table 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:
2% in last 5 seconds
2% in last 1 minute
2% in last 5 minutes
Table 3 Command output
Field |
Description |
Unit CPU usage |
CPU usage. |
1% 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). |
1% 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). |
1% 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
System Total Memory(bytes): 349028320
Total Used Memory(bytes): 102341264
Used Rate: 29%
Field |
Description |
System Total Memory(bytes) |
Physical memory size (in bytes) of the device. |
Total Used Memory(bytes) |
Used memory size (in bytes) of the device. |
Used Rate |
Memory usage of the device. |
Configuring the exception handling method
Configuration procedure
You can configure the device to handle system exceptions (such as system instruction faults, invalid addresses, data overflow, null pointers, and division by zero operations) by using one of the following methods:
· Reboot—The device automatically reboots to recover from the error condition.
· Maintain—The device stays in the error condition so you can collect complete data for diagnosis, including error messages. You must manually reboot the device.
To configure the exception handling method:
Step |
Command |
Remarks |
1. Enter system view. |
system-view |
N/A |
2. Specify the exception handling method. |
system-failure { maintain | reboot } |
Optional. By default, the device reboots when an exception occurs. |
Displaying the exception handling method
Use the display system-failure command to display the exception handling method.
<H3C> display system-failure
System failure handling method: reboot
Rebooting the device
|
CAUTION: · If the main system software image file is corrupted or does not exist, the device cannot reboot. You must re-specify a main system software image file, or power off the device and power it again on so the system can reboot with the backup system software image file. · Save your configuration before device reboot to avoid data loss. The device displays "REBOOT IN ONE MINUTE" appears one minute before it is rebooted. · For security purposes, if you are performing file operations at the reboot time, the system does not reboot. |
When upgrading and maintaining the system software image file or the configuration file for the device, you must reboot the device. To reboot a device, use one of the following methods:
· Reboot the device immediately at the CLI.
· Schedule a reboot at the CLI to occur at a specific time and date or after a delay.
· Power off and then power on the device again. Because this method can cause data loss, H3C recommends that you use one of the CLI methods.
To reboot the device immediately:
Task |
Command |
Remarks |
Reboot the device immediately. |
Reboot |
Required. Available in user view. |
To schedule a reboot for the device:
Task |
Command |
Remarks |
Schedule a reboot. |
·
Schedule a reboot to occur at a specific time
and date: ·
Schedule a reboot to occur after a delay: |
Use either command. The scheduled reboot function is disabled by default. Available in user view. |