11-1
11
Hardware management and
maintenance
The command lines and outputs vary by software version. For more information about the command
lines and their outputs, see the command references for the specific software version.
Displaying software and hardware version
information for the device
Use the
display version
command to display software and hardware version information for the
device. This command also displays the system running time and the type and running time of each
module.
<Sysname> display version
Displaying device operating information
During daily maintenance or when a fault occurs, you need to view the running information of each
functional module to locate the issue.
You can use one of the following methods to collect operating statistics for diagnostics and
troubleshooting:
•
Use separate
display
commands, such as
display clock
,
display version
,
display device
, and
display current-configuration
to collect operating
information feature by feature or module by module.
•
Use the
display diagnostic-information
command to save or display operating
information for multiple or all features and hardware modules.
Save operating information for multiple or all features and hardware modules:
<Sysname> display diagnostic-information
Save or display diagnostic information (Y=save, N=display)? [Y/N]:y
Please input the file name(*.tar.gz)[sda0:/diag_SR6602-I_20200818-174021.tar.gz]:
diag.tar.gz
Diagnostic information is outputting to sda0:/diag.tar.gz.
Please wait...
Save successfully.
To save storage space, this command automatically compresses the information before
saving the information to a file. To view the file content:
# Use the
tar extract archive-file
command to extract the file.
# Use the
gunzip
command to decompress the extracted file.
# Use the
more
command to view the content of the decompressed file.
Save operating information for multiple or all features and hardware modules:
<Sysname> display diagnostic-information
Save or display diagnostic information (Y=save, N=display)? [Y/N]:n
===============================================
===============display clock===============