4-1
4
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 router
Use the
display version
command to display software and hardware version information for
the router. This command also displays the system running time and the type and running time of
each module.
<Sysname> display version
Displaying operating information about the router
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]:n
===============================================
===============display clock===============
14:03:55 UTC Thu 01/05/2012
=================================================
===============display version===============
...
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 to the default
file:
<Sysname> display diagnostic-information
Save or display diagnostic information (Y=save, N=display)? [Y/N]:y