Description
Use display version to view system version information.
By viewing system version information, you can learn about the current software version, rack type, and the information related to the main board and interface boards.
Syntax
displayversion [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line matching the specified regular expression and all following lines.
exclude: Displays all lines not matching the specified regular expression.
include: Displays all lines matching the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display system version information (The system version information varies with devices.). <Sysname> display version
header
Description
Use undo header to clear a banner.
Syntax
header { incoming | legal | login | motd | shell }text undo header { incoming | legal | login | motd | shell }
View
System view
Default level
2: System level
Parameters
incoming: Sets the banner displayed when a user interface is activated by a Modem user. If
authentication is needed, the incoming banner is displayed after the authentication is passed.
legal: Sets the license information banner before a user logs onto the terminal interface. The legal banner
is displayed before the user inputs the username and password. login: Sets the login banner at authentication.
motd: Sets the banner displayed before login. If authentication is required, the banner is displayed before authentication.
shell: Sets the banner displayed when a nonModem login user enters user view.
text: Banner message, input in two formats. For more information, see Fundamentals Configuration Guide.
Examples
# Configure banners. <Sysname> system-view [Sysname] header incoming %
Please input banner content, and quit with the character '%'. Welcome to incoming(header incoming)%
[Sysname] header legal %
Please input banner content, and quit with the character '%'. Welcome to incoming(header incoming)%
[Sysname] header legal %
Please input banner content, and quit with the character '%'. Welcome to legal (header legal)%
[Sysname] header login %
Please input banner content, and quit with the character '%'. Welcome to login(header login)%
[Sysname] header motd %
Please input banner content, and quit with the character '%'. Welcome to motd(header motd)%
[Sysname] header shell %
Please input banner content, and quit with the character '%'. Welcome to shell(header shell)%
NOTE:
Character % is the starting/ending character of text in this example. Entering % after the displayed text quits the
header command.
As the starting and ending character, % is not a part of a banner.
# Test the configuration remotely using Telnet. (Only when login authentication is configured can the login banner be displayed).
****************************************************************************** * Copyright (c) 2010-2011 Hewlett-Packard Development Company, L.P. * * Without the owner's prior written consent, * * no decompiling or reverse-engineering shall be allowed. * ****************************************************************************** Welcome to legal (header legal)
Press Y or ENTER to continue, N to exit. Welcome to motd(header motd)
Welcome to login(header login) Login authentication
Password:
Welcome to shell(header shell)
job
Description
Use job to create a job and enter job view, or enter this view directly if the job has been created.
Use undo job to remove the job.
By default, no job is scheduled.
After creating a job, you can configure the job in job view. For example, you can specify the execution time for the commands in the job.
This command can be repeatedly executed to create multiple independent jobs. Related commands: time and view.
Syntax
job job-name
undo job job-name
View
System view
Default level
3: Manage level
Parameters
job-name: Specifies name of the scheduled job, a string of 1 to 32 characters.
Examples
<Sysname> system-view
[Sysname] job saveconfiguration [Sysname-job-saveconfiguration]
nms monitor-interface
Description
Use nms primary monitor-interface to configure the primary monitored interface for an NMS.
Use nms secondary monitor-interface to configure the secondary monitored interface for an NMS.
Use undo nms monitor-interface to remove the configurations.
By default, an NMS does not monitor any interface on the device.
If you configure only the primary monitored interface or the secondary monitored interface, the device monitors the IP address of the configured interface. If the interface gets or changes its IP address when the interface status is up, the device sends traps to the NMS to inform it of the available IP address.
If you configure both the primary and secondary monitored interfaces, the device monitors the primary one first.
The following matrix shows the command and router compatibility:
Command A-MSR900 A-MSR20-1X A-MSR20 A-MSR30 A-MSR50
nms monitor-
interface Yes Yes No No No
Syntax
nms { primary | secondary } monitor-interface interface-type interface-number undo nms { primary | secondary } monitor-interface
View
System view
Default level
3: Manage level
Parameters
primary: Specifies the primary monitored interface for a NMS.
secondary: Specifies the secondary monitored interface for the NMS.
interface-type interface-number: Type and number of the interface to be monitored.
Examples
# Configure Ethernet 1/1 as the primary monitored interface for an NMS. <Sysname> system-view
reboot
Description
CAUTION:
A reboot can interrupt network services.
If the main system software image file has been 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 then power it on so the system can reboot with the backup system software image file.
For data security, if you are performing file operations at the reboot time, the system does not reboot. Use reboot to reboot the device or the specified interface card.
Syntax
reboot [ slot slot-number ]
View
User view
Default level
3: Manage level
Parameters
slot slot-number: Specifies the slot number of an interface card. It you do not specify this option, this command reboots all interface cards.
Examples
# Reboot the device (The output information is omitted here). <Sysname> reboot