HP MSR Router Series Fundamentals Command Reference (V5) Part number: 5998-2036 Software version: CMW520-R2511 Document version: 6PW103-20140128
Legal and notice information © Copyright 2014 Hewlett-Packard Development Company, L.P. No part of this documentation may be reproduced or transmitted in any form or by any means without prior written consent of Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Contents CLI configuration commands ······································································································································· 1 command-alias enable ············································································································································· 1 command-alias mapping ········································································································································· 1 command-pri
redirect disconnect ················································································································································ 42 redirect enable······················································································································································· 43 redirect listen-port ·················································································································································· 44 red
display transceiver diagnosis ······························································································································· 90 display transceiver manuinfo ······························································································································· 91 display version ······················································································································································· 92 header ·············
mount ···································································································································································· 141 move ····································································································································································· 142 pwd ······························································································································································
License management commands ······························································································································ 34 display license ······················································································································································· 34 license register ······················································································································································· 35 Software u
CLI configuration commands command-alias enable Use command-alias enable to enable the command keyword alias function. Use undo command-alias enable to disable the command keyword alias function. Syntax command-alias enable undo command-alias enable Default The command keyword alias function is disabled. Views System view Default command level 2: System level Usage guidelines Disabling the command keyword alias function does not delete the configured aliases, but the aliases do not take effect anymore.
Views System view Default command level 2: System level Parameters cmdkey: Complete form of the first keyword of a non-undo command, or the second keyword of an undo command. alias: Alias for the keyword, which must be different from the first keyword of any non-undo command. Usage guidelines Command keyword aliases take effect only after you enable the command keyword alias function. Examples # Define show as the alias of the display keyword.
Usage guidelines Command levels include four privileges: visit (0), monitor (1), system (2), and manage (3). You can assign a privilege level according to the user's need. When logging in to the device, the user can access the assigned level and all levels below it. Inappropriate use of this command can cause maintenance, operation, and security problems. Make sure you understand the impact of this command on your network before you use it.
exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines To copy some content to the clipboard: 1. Move the cursor to the starting position of the content and then press the Esc+Shift+, combination. 2. Move the cursor to the ending position of the content and then press the Esc+Shift+.
Views Any view Default command 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 that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
display hotkey ----------------- HOTKEY ----------------=Defined hotkeys= Hotkeys Command CTRL_G display current-configuration CTRL_L display ip routing-table CTRL_O undo debug all =Undefined hotkeys= Hotkeys Command CTRL_T NULL CTRL_U NULL =System hotkeys= Hotkeys Function CTRL_A Move the cursor to the beginning of the current line. CTRL_B Move the cursor one character left. CTRL_C Stop current command function. CTRL_D Erase current character.
undo hotkey { CTRL_G | CTRL_L | CTRL_O | CTRL_T | CTRL_U } Default • Ctrl_G: display current-configuration (display the running configuration) • Ctrl_L: display ip routing-table (display the IPv4 routing table information) • Ctrl_O: undo debugging all (disable all debugging functions) • Ctrl_T: No command is assigned to this hotkey. • Ctrl_U: No command is assigned to this hotkey. Views System view Default command level 2: System level Parameters CTRL_G: Assigns a command to Ctrl+G.
return Use return to return to user view from any other view. Pressing Ctrl+Z has the same effect. Syntax return Views Any view except user view Default command level 2: System level Examples # Return to user view from Ethernet 1/1 interface view. [Sysname-Ethernet1/1] return Related commands quit screen-length disable Use screen-length disable to disable pausing between screens of output for the current session.
Related commands screen-length super Use super to switch from the current user privilege level to another user privilege level. Syntax super [ level ] Views User view Default command level 0: Visit level Parameters level: User level in the range of 0 to 3. The default is 3. Usage guidelines If a level is not specified, the command switches the user privilege level to 3. There are four user privilege levels: visit (0), monitor (1), system (2), and manage (3).
• super authentication-mode super authentication-mode Use super authentication-mode to set the authentication mode for user privilege level switching. Use undo super authentication-mode to restore the default. Syntax super authentication-mode { local | scheme } * undo super authentication-mode Default The authentication mode for the user privilege level switching is local.
Use undo super password to restore the default. Syntax super password [ level user-level ] [ [ hash ] { cipher | simple } password ] undo super password [ level user-level ] Default No password is set for switching to a higher privilege level. Views System view Default command level 2: System level Parameters level user-level: User privilege level in the range of 1 to 3. The default is 3. hash: Enables hash-based encryption. { cipher | simple } password: Specifies a case-sensitive password string.
Hardware FIPS mode MSR900 No. MSR93X No. MSR20-1X No. MSR20 Yes. MSR30 Yes except on MSR30-16. MSR50 Yes. MSR1000 Yes. Usage guidelines For security purposes, all passwords, including passwords configured in plain text, are saved in cipher text. Examples # Set the password for switching to privilege level 3 to plaintext string abc. system-view [Sysname] super password level 3 simple abc system-view Use system-view to enter system view from user view.
Login management commands The following matrix shows the FIPS and hardware compatibility: Hardware FIPS mode MSR900 No. MSR93X No. MSR20-1X No. MSR20 Yes. MSR30 Yes except on MSR30-16. MSR50 Yes. MSR1000 Yes. acl (user interface view) Use acl to reference ACLs to control access to the VTY user interface. Use undo acl to cancel the ACL application.
• Advanced IPv4 ACL—3000 to 3999. • Ethernet frame header ACL—4000 to 4999. • User-defined ACL—5000 to 5999. inbound: Restricts Telnet or SSH connections established in the inbound direction through the VTY user interface. If the received packets for establishing a Telnet or SSH connection are permitted by an ACL rule, the connection is allowed to be established. When the device functions as a Telnet server or SSH server, use this keyword to control access of Telnet clients or SSH clients.
But you can Telnet to 192.168.1.41. telnet 192.168.1.41 Trying 192.168.1.41 ... Press CTRL+K to abort Connected to 192.168.1.41 ... # Allow only the WLAN client with the SSID of Admin to access the device through VTY 0. system-view [Sysname] acl number 100 [Sysname-acl-wlan-100] rule permit ssid Admin [Sysname-acl-wlan-100] quit [Sysname] user-interface vty 0 [Sysname-ui-vty0] acl 100 inbound activation-key Use activation-key to define a shortcut key for starting a terminal session.
[Sysname-ui-console0] return quit 2. Log in to the console user interface again. The following message appears. ****************************************************************************** * Copyright (c) 2004-2014 Hewlett-Packard Development Company, L.P. * * Without the owner's prior written consent, * * no decompiling or reverse-engineering shall be allowed. * ****************************************************************************** User interface con0 is available.
Usage Guidelines In FIPS mode, the authentication mode can only be scheme. Examples # Enable the none authentication mode for user interface VTY 0. system-view [Sysname] user-interface vty 0 [Sysname-ui-vty0] authentication-mode none # Enable password authentication for user interface VTY 0 and set the password to 321.
Default command level 3: Manage level Parameters command: Specifies the command to be automatically executed. Usage guidelines This command is not supported on the console user interface, or the AUX user interface when the device has only one AUX port and no console port. The system automatically executes the specified command when a user logs in to the user interface, and tears down the user connection after the command is executed.
command accounting Use command accounting to enable command accounting. Use undo command accounting to restore the default. Syntax command accounting undo command accounting Default Command accounting is disabled, and the accounting server does not record executed commands. Views User interface view Default command level 3: Manage level Usage guidelines When command accounting is enabled and command authorization is not, every executed command is recorded on the HWTACACS server.
Examples # Enable command accounting for VTY 0 so users logged in to VTY 0 can perform only the commands authorized by the HWTACACS server. system-view [Sysname] user-interface vty 0 [Sysname-ui-vty0] command authorization databits Use databits to specify the number of data bits for each character. Use undo databits to restore the default. Syntax databits { 5 | 6 | 7 | 8 } undo databits Default Eight data bits are used for each character.
Views Any view Default command 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 that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
Default command 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 that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
Views Any view Default command 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 that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
0:X User interface type : [TTY] 1:XXXX XXXX XXXX XXXX 17:XXXX XXXX XXXX XXXX 33:XXXX XXXX XXXX XXXX 49:XXXX XXXX XXXX XXXX 65:XXXX XXXX XXXX XXXX User interface type : [AUX] 81:X User interface type : [VTY] 82:XUXU U 3 character mode users. 83 UI never used. (U) (X) 3 total UI in use Table 6 Command output Field Description 0:X 0 represents the absolute number of the user interface. If the user interface is not used, an X is displayed. If the user interface is in use, a U is displayed.
# Display information about the user interfaces being used. display users The user application information of the user interface(s): Idx UI Delay Type Userlevel + 178 VTY 0 00:00:00 TEL 3 179 VTY 1 00:02:34 TEL 3 Following are more details. VTY 0 : Location: 192.168.1.54 VTY 1 : Location: 192.168.1.58 + : Current operation user. F : Current operation user work in async mode.
begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Examples # Display information about the Web users.
default: Restores the default escape key sequence Ctrl+C. Usage guidelines You can execute this command multiple times, but only the most recent configuration takes effect. To display the effective shortcut key definition, use the display current-configuration command.
For an independent AUX port, hardware flow control is performed. For an AUX and console integrated port, no flow control is performed. Views User interface view Default command level 2: System level Parameters hardware: Performs hardware flow control. none: Disables flow control. software: Performs software flow control. flow-control-type1, flow-control-type2: Specifies the direction of flow control, in or out. If in is specified, the local device receives flow control information from the remote device.
Use free user-interface to release a user interface. Syntax free user-interface { num1 | { aux | console | tty | vty } num2 } Views User view Default command level 3: Manage level Parameters num1: Specifies the absolute number of a user interface. The value range typically starts from 0. aux: Specifies the AUX user interface. console: Specifies the console user interface. tty: Specifies the TTY user interface. vty: Specifies the VTY user interface.
User view Default command level 2: System level Parameters all: Specifies all Web users. user-id: Web user ID, a hexadecimal number of eight digits. user-name: Web user name, a string of 1 to 80 characters. Examples # Log out all Web users. free web-users all Related commands display web users history-command max-size Use history-command max-size to set the size of the command history buffer for a user interface. Use undo history-command max-size to restore the default.
[Sysname-ui-console0] history-command max-size 20 idle-timeout Use idle-timeout to set the session idle-timeout timer. Use undo idle-timeout to restore the default. Syntax idle-timeout minutes [ seconds ] undo idle-timeout Default The idle-timeout time is 10 minutes. Views User interface view Default command level 2: System level Parameters minutes: Specifies the number of minutes for the idle-timeout time, in the range of 0 to 35791. The default is 10 minutes.
Views System view Default command level 2: System level Parameters ip-address: IP address associated with the Telnet redirect listening port. The IP address cannot be an interface's address on the device, but can be in the same subnet as an interface's address. port-number: Telnet redirect listening port in the range of 2000 to 50000. Usage guidelines For example, a user is connected to device A, and device A is connected to device B through its serial port.
Parameters acl-number: ACL number. The value ranges are as follows: • WLAN ACL—100 to 199. WLAN ACLs are not supported on MSR50 routers that use MPU-G2 cards and MSR93X(except JG512A, JG519A and JG597A) routers. • Basic IPv4 ACL—2000 to 2999. Usage guidelines This command is not available in FIPS mode. After the HTTP service is associated with an ACL, only the clients permitted by the ACL can access the device through HTTP.
Default The following matrix shows the default HTTP service status and hardware compatibility: Hardware Default status of the HTTP service MSR900 Enabled MSR93X Enabled MSR20-1X Enabled MSR20 Disabled MSR30 Disabled MSR50 Disabled MSR1000 Enabled Views System view Default command level 2: System level Usage guidelines This command is not available in FIPS mode. The device can act as the HTTP server that can be accessed only after the HTTP service is enabled.
Default command level 3: Manage level Parameters port-number: Port number of the HTTP service, in the range of 1 to 65535. Usage guidelines This command is not available in FIPS mode. Verify that the port number is not used by another service, because this command does not check for conflicts with configured port numbers. Examples # Configure the port number of the HTTP service as 8080.
Usage guidelines After the HTTPS service is associated with an ACL, only the clients permitted by the ACL can access the device. The HTTPS service can be associated with a WLAN ACL and basic ACL, and the two types of ACLs will not overwrite each other. However, ACLs of the same type will overwrite each other. If you execute the ip https acl command multiple times to associate the HTTPS service with the same type of ACLs, the HTTPS service is only associated with the ACL specified most recently.
Parameters policy-name: Name of the certificate attribute access control policy, a string of 1 to 16 characters. Usage guidelines Association of the HTTPS service with a certificate attribute access control policy can control the access rights of clients. Examples # Associate the HTTPS server with certificate attribute access control policy myacl.
ip https port Use ip https port to configure the port number of the HTTPS service. Use undo ip https port to restore the default. Syntax ip https port port-number undo ip https port Default The port number of the HTTPS service is 443. Views System view Default command level 3: Manage level Parameters port-number: Port number of the HTTPS service, in the range of 1 to 65535.
Default command level 3: Manage level Parameters policy-name: Name of an SSL server policy, a string of 1 to 16 characters. Usage guidelines The HTTPS service can be enabled only after this command is configured successfully. With the HTTPS service enabled, you cannot modify the associated SSL server-end policy or remove the association between the HTTPS service and the SSL server-end policy after the HTTPS service is enabled. Examples # Associate the HTTPS service with SSL server-end policy myssl.
locked ! Password: parity Use parity to specify a parity check mode. Use undo parity to restore the default. Syntax parity { even | mark | none | odd | space } undo parity Default The setting is none, and no parity check is performed. Views User interface view Default command level 2: System level Parameters even: Performs even parity check. mark: Performs mark parity check. none: Disables parity check. odd: Performs odd parity check. space: Performs space parity check.
[Sysname] user-interface aux 0 [Sysname-ui-aux0] parity odd protocol inbound Use protocol inbound to enable a user interface to support Telnet, PAD, SSH, or all of them. Use undo protocol inbound to restore the default. Syntax In non-FIPS mode: protocol inbound { all | pad | ssh | telnet } undo protocol inbound In FIPS mode: protocol inbound { all | pad | ssh } undo protocol inbound Default All the three protocols are supported.
Syntax redirect disconnect Views User interface view Default command level 2: System level Usage guidelines This command is supported only on AUX and TTY user interfaces. This command is applicable to user interfaces on which redirect is enabled. To enable redirect on a user interface, use the redirect enable command. Examples # Manually terminate redirected Telnet connections.
[Sysname-ui-tty7] redirect enable Related commands • display tcp status • telnet redirect listen-port Use redirect listen-port to specify a Telnet redirect listening port. Use undo redirect listen-port to restore the default listening port. Syntax redirect listen-port port-number undo redirect listen-port Default The port number is the absolute user interface number plus 2000.
undo redirect refuse-negotiation Default Telnet option negotiation is enabled. Views User interface view Default command level 2: System level Usage guidelines This command is supported only on AUX and TTY user interfaces. This command is applicable to user interfaces on which redirect is enabled. To enable redirect on a user interface, use the redirect enable command. Examples # Disable Telnet option negotiation when the device is establishing a redirected Telnet connection.
Examples # Configure the user interface to not convert the ASCII characters of 0xff to 0xff 0xff when establishing a redirected Telnet connection. system-view [Sysname] user-interface tty 1 [Sysname-ui-tty1] redirect refuse-teltransfer redirect return-deal from-telnet Use redirect return-deal from-telnet to configure the user interface to change carriage returns 0x0d 0x0a and 0x0d 0x00 received from Telnet clients to 0x0d during redirecting a Telnet connection.
redirect return-deal from-terminal undo redirect return-deal from-terminal Default The user interface does not change carriage returns received from a terminal during redirecting a Telnet connection. Views User interface view Default command level 2: System level Usage guidelines This command is supported only on AUX and TTY user interfaces. This command is applicable to user interfaces on which redirect is enabled. To enable redirect on a user interface, use the redirect enable command.
This command is applicable to user interfaces on which redirect is enabled. To enable redirect on a user interface, use the redirect enable command. Examples # Set the idle timeout for redirected Telnet connections to 200 seconds. system-view [Sysname] user-interface tty 1 [Sysname-ui-tty1] redirect timeout 200 screen-length Use screen-length to set the maximum number of lines to be displayed on a screen. Use undo screen-length to restore the default.
Syntax send { all | num1 | { aux | console | tty | vty } num2 } Views User view Default command level 1: Monitor level Parameters all: Specifies all user interfaces. num1: Specifies a user interface by its absolute number. The value range typically starts from 0. aux: Specifies an AUX user interface. console: Specifies a console user interface. tty: Specifies a TTY user interface. vty: Specifies a VTY user interface. num2: Relative number of a user interface.
VTY 0 : Location: 192.168.1.26 VTY 1 : Location: 192.168.1.20 + : Current operation user. F : Current operation user work in async mode. // The output shows that you are using VTY 0 and another user is using VTY 1. 2. Send a notification message to the user of VTY1. send vty 1 Enter message, end with CTRL+Z or Enter; abort with CTRL+C: Your attention, please.
Keyword combination Password string form Length (in characters) hash simple Plain text 1 to 16 cipher Plain text, ciphertext hash cipher Ciphertext (hashed form) Plain text: 1 to 16 Ciphertext: 1 to 53 1 to 110 Usage guidelines This command is not available in FIPS mode. For security purposes, all passwords, including passwords configured in plain text, are saved in cipher text to the configuration file.
# Disable the terminal service for user interface VTY 0 through VTY 4 so no user can log in to the device through the user interfaces.
stopbit-error intolerance undo stopbit-error intolerance Default Stop bits detection is disabled. Views User interface view Default command level 2: System level Usage guidelines This command is only applicable to asynchronous serial interfaces, including AUX and console ports. Examples # Enable stop bits detection for user interface AUX 0.
The configuration terminal and the device must be configured to use the same number of stop bits to communicate. Examples # Set the number of stop bits to 1.5 for user interface AUX 0. system-view [Sysname] user-interface aux 0 [Sysname-ui-aux0] stopbits 1.5 Related commands stopbit-error intolerance telnet Use telnet to Telnet to a host in an IPv4 network.
telnet client source Use telnet client source to specify a source IPv4 address or source interface for outgoing Telnet packets when the device serves as a Telnet client. Use undo telnet client source to remove the configuration. Syntax telnet client source { interface interface-type interface-number | ip ip-address } undo telnet client source Default No source IPv4 address or source interface is specified for outgoing Telnet packets.
Default command level 0: Visit level Parameters remote-host: Specifies the IP address or host name of a remote host, a case-insensitive string of 1 to 46 characters. -i interface-type interface-number: Specifies the outbound interface for sending Telnet packets. This option is required when the destination address is a link-local address. port-number: Specifies the TCP port number for the Telnet service on the remote host, in the range of 0 to 65535. The default is 23.
Use terminal type to specify the terminal display type. Use undo terminal type to restore the default. Syntax terminal type { ansi | vt100 } undo terminal type Default The terminal display type is ANSI. Views User interface view Default command level 2: System level Parameters ansi: Specifies the terminal display type ANSI. vt100: Specifies the terminal display type VT100. Usage guidelines The device supports two terminal display types: ANSI and VT100.
Parameters level: Specifies a user privilege level in the range of 0 to 3. Usage guidelines This command is not available in FIPS mode. In FIPS mode, the authentication mode can only be scheme. User privilege levels include visit, monitor, system, and manage, represented by the number 0, 1, 2 and 3 respectively. You can change the user privilege level when necessary. Examples # Set the command level for users logging in through VTY 0 to 0.
vty: Specifies the VTY user interface. first-num2: Specifies the relative number of the first user interface. last-num2: Specifies the relative number of the last user interface. It cannot be smaller than first-num2. Usage guidelines If you use this command to enter a single user interface view, your configuration applies only to the user interface. If you use this command to enter multiple user interface views, your configuration applies to all the specified user interfaces.
For Web access security, do not use this feature in production environments. This command is not saved to the configuration file and cannot survive a reboot. Examples # Specify a fixed verification code for Web login web captcha test web https-authorization mode Use web https-authorization mode to specify the authentication mode for users trying to log in to the device through HTTPS. Use undo web https-authorization mode to restore the default.
Syntax web idle-timeout minutes undo web idle-timeout Default The Web user connection timeout time is 10 minutes. Views System view Default command level 2: System level Parameters minutes: Timeout time in minutes, in the range of 1 to 999. Examples # Set the Web user connection timeout time to 20 minutes. system-view [System] web idle-timeout 20 web logbuffer size Use web logbuffer size to set the size of the buffer for Web login logging. Use undo web logbuffer size to restore the default.
Device management commands The following matrix shows the storage media supported on different router models: Hardware Supported storage media MSR900 • Flash memory • USB disk MSR93X • Flash memory • USB disk MSR20-1X • Flash memory • USB disk MSR20 • CF card • USB disk MSR30 • Flash memory (supported by the MSR30-10, MSR30-11E, and MSR30-11F) • CF card (supported by the MSR30-16, MSR30-20, MSR30-40, and MSR30-60) • USB disk MSR50 • Flash memory (not supported by the MPUF) • CF card • USB disk
• t1: Sets the working mode of the CPOS interface card to T1. • ipsec: Sets the working mode of the ESM interface card to IPsec. • ssl: Sets the working mode of the ESM interface card to SSL. • atm: Sets the working mode of the G.SHDSL.BIS interface card to ATM. • auto: Sets the working mode of the G.SHDSL.BIS interface card to Auto. • efm: Sets the working mode of the G.SHDSL.BIS interface card to Ethernet first mile (EFM). • ppp: Sets the working mode of the 3G modem interface card to PPP.
# Set the current system time to 00:06:00 01/01/2007. clock datetime 0:6 2007/1/1 Related commands • clock summer-time one-off • clock summer-time repeating • clock timezone • display clock clock summer-time one-off Use clock summer-time one-off to adopt daylight saving time from the start-time of the start-date to the end-time of the end-date. Daylight saving time adds the add-time to the standard time of the device.
Examples # Set the system time ahead one hour for the period between 06:00:00 on 08/01/2013 and 06:00:00 on 09/01/2013. system-view [Sysname] clock summer-time abc1 one-off 6 08/01/2013 6 09/01/2013 1 Related commands • clock datetime • clock summer-time repeating • clock timezone • display clock clock summer-time repeating Use clock summer-time repeating to set a recurring daylight saving schedule. Use undo clock summer-time to cancel the configuration of the daylight saving time.
• Enter the year, month and date one by one, separated by spaces. The year is in the range of 2000 to 2035; the month can be January, February, March, April, May, June, July, August, September, October, November or December; the end week can be the first, second, third, fourth, fifth or last week of the month; the end date is Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday. add-time: Specifies a time to be added to the standard time of the device, in the hh:mm:ss format.
add: Adds a specified offset to UTC. minus: Subtracts a specified offset to UTC. zone-offset: Specifies an offset to the UTC, in the hh:mm:ss format. Zeros can be omitted, unless you specify 00:00:00. Usage guidelines To verify the setting, use the display clock command. The timestamps in system messages are adjusted in reference to the time zone and daylight saving schedule. Examples # Set the local time zone to add five hours to UTC time.
MSR900 MSR93X MSR20-1X MSR20 MSR30 MSR50 MSR1000 1 to 86 1 to 70 1 to 86 1 to 87 1 to 183 1 to 535 1 to 182 Examples # Configure to allow up to four users to enter system view concurrently. system-view [Sysname] configure-user count 4 Related commands display configure-user copyright-info enable Use copyright-info enable to enable displaying the copyright statement. Use undo copyright-info enable to disable displaying the copyright statement.
User interface con0 is available. Please press ENTER. # Disable displaying the copyright statement. system-view [Sysname] undo copyright-info enable • When a Telnet user logs in, the user view prompt appears: • When a console user quits user view, the following message appears: User interface con0 is available. Please press ENTER. display clock Use display clock to display the system time and date.
Related commands • clock datetime • clock summer-time one-off • clock summer-time repeating • clock timezone display configure-user Use display configure-user to display the users that have logged in to the device but are not in user view. Syntax display configure-user [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression.
Field Description UI Type and relative ID of the user interface that the user used for login. Delay Delay between the most recent CLI input and the execution of the display configure-user command, in the format hh:mm:ss Type User type, telnet, SSH, or PAD. Userlevel User level, level 0 (visit level), level 1 (monitor level), level 2 (system level), or level 3 (manage level) Following are more details. Detailed information about the login user. Location IP address of the login user.
display cpu-usage Use display cpu-usage to display CPU usage statistics. Syntax display cpu-usage [ entry-number [ offset ] [ verbose ] [ from-device ] ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters entry-number: Number of entries to be displayed, in the range of 1 to 60. offset: Offset between the serial number of the first CPU usage rate record to be displayed and that of the last CPU usage rate record to be displayed.
1% in last 1 minute 1% in last 5 minutes # Display the last fifth and sixth record entries in CPU usage statistics. display cpu-usage 2 4 ===== CPU usage info (no: 0 idx: 58) ===== CPU Usage Stat. Cycle: 60 (Second) CPU Usage : 3% CPU Usage Stat. Time : 2006-07-10 10:56:55 CPU Usage Stat. Tick : 0x1d9d(CPU Tick High) 0x3a659a70(CPU Tick Low) Actual Stat. Cycle : 0x0(CPU Tick High) 0x95030517(CPU Tick Low) ===== CPU usage info (no: 1 idx: 57) ===== CPU Usage Stat.
Field Description Actual Stat. Cycle Actual CPU usage rate measurement interval in ticks, represented by a 64-bit hexadecimal. CPU Tick High represents the most significant 32 bits and the CPU Tick Low the least significant 32 bits. Owing to the precision of less than one second, the actual measurement periods of different CPU usage rate records might differ slightly. display cpu-usage history Use display cpu-usage history to display historical CPU usage statistics in charts.
display cpu-usage history 100%| 95%| 90%| 85%| 80%| 75%| 70%| 65%| 60%| 55%| 50%| 45%| 40%| 35%| 30%| 25%| 20%| 15%| # 10%| ### 5%| # ######## -----------------------------------------------------------10 20 30 40 50 60 (minutes) cpu-usage last 60 minutes(SYSTEM) The output shows the historical CPU usage statistics (with the task name SYSTEM) in the last 60 minutes: • 5%: 12 minutes ago • 10%: 13 minutes ago • 15%: 14 minutes ago • 10%: 15 minutes ago • 5%: 16 and 17 minute
45%| 40%| 35%| 30%| 25%| 20%| 15%| 10%| 5%| # -----------------------------------------------------------10 20 30 40 50 60 (minutes) cpu-usage last 60 minutes(T03M) The output shows the historical CPU usage statistics of task 6 (with the task name T03M) in the last 60 minutes: • 5%: 20 minutes ago • 2% or lower than 2%: other time display device Use display device to display device information.
The following matrix shows the keywords and router compatibility: Keyword MSR900 MSR93X MSR20-1X MSR20 MSR30 MSR50 MSR1000 Yes No Yes Yes cf-card No No No Yes Yes (except on the MSR30-10, MSR30-11E, and MSR30-11F) usb Yes Yes Yes Yes Yes Examples # Display device information. display device Slot No. Board Type 0 MSR20-21 RPU Board 1 SIC-1FEA Status Max Ports Normal 12 Normal 1 Table 12 Command output Field Description Slot No.
include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines An electronic label is a profile of a device or card and contains the permanent configuration including the serial number, manufacturing date, MAC address, and vendor name. The data is written to the storage component during debugging or testing. This command displays part of the electronic label data.
Examples # Save running status data for multiple feature modules. display diagnostic-information Save or display diagnostic information (Y=save, N=display)?[Y/N]y Please input the file name(*.diag)[flash:/default.diag]:aa.diag Diagnostic information is outputting to flash:/aa.diag. Please wait... Save succeeded. To view the content of file aa.diag, execute the more.aa.diag command in user view, in combination of the Page Up and Page Down keys.
Command MSR900 display environment No MSR93X No MSR20-1X No MSR20 MSR30 Yes Yes (The cpu keyword is not supported) (The cpu keyword is not supported) MSR50 MSR1000 Yes Yes (The cpu keyword is not supported) Examples # Display temperature information. display environment System Temperature information (degree centigrade): ---------------------------------------------------SlotNo Temperature Lower limit Upper limit 0 41 5 60 # Display temperature information for all CPUs.
Parameters fan-id: Displays the operating state of the specified fan, where the fan-id argument represents the built-in fan number. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
Usage guidelines If no job is specified, this command displays information about all scheduled jobs. Examples # Display detailed information about the scheduled job saveconfig. display job saveconfig Job name: saveconfig Specified view: monitor Time 1: Execute command save 1.cfg after 40 minutes The output shows that the current configuration will be automatically saved to the configuration file 1.cfg in 40 minutes. Table 14 Command output Field Description Job name Name of the scheduled job.
Examples # Display memory usage statistics. display memory System Total Memory(bytes): 431869088 Total Used Memory(bytes): 71963156 Used Rate: 16% Table 15 Command output Field Description System Total Memory(bytes) Total size of the system memory (in bytes) Total Used Memory(bytes) Size of the memory used (in bytes) Used Rate Percentage of the memory used to the total memory. display power Use display power to display power supply information.
Views Any view Default command level 2: System level Parameters slot slot-number: Displays the mode of the most recent reboot for an interface card. The slot-number argument represents the slot number of an interface card. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines The following matrix shows the command and router compatibility: Command MSR900 MSR93X MSR20-1X MSR20 MSR30 MSR50 MSR1000 No No Yes display rps No No No No (except on the MSR30-1X routers) Examples # Display RPS status information.
Table 16 Command output Field Description Specified command Command to be executed. Specified view View for the command to be executed. Executed time Execution time of the command and the difference between the current system time and scheduled time. Related commands schedule job display schedule reboot Use display schedule reboot to display the reboot schedule.
Views Any view Default command level 3: Manage 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 that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Examples # Display the key parameters of the transceiver module in interface GigabitEthernet 2/3. display transceiver interface gigabitethernet 2/3 GigabitEthernet2/3 transceiver information: Transceiver Type : 1000_BASE_SX_SFP Connector Type : LC Wavelength(nm) : 850 Transfer Distance(m) : 550(50um),270(62.
display transceiver alarm Use display transceiver alarm to display alarms present on transceiver modules. Syntax display transceiver alarm { controller [ controller-type controller-number ] | interface [ interface-type interface-number ] } [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 2: System level Parameters controller [ controller-type controller-number ]: Displays alarms that are present on the transceiver module in a controller interface.
Field Remarks Temp low Temperature is low. Voltage high Voltage is high. Voltage low Voltage is low. Transceiver info I/O error Transceiver information read and write error. Transceiver info checksum error Transceiver information checksum error. Transceiver type and port configuration mismatch Transceiver type does not match port configuration. Transceiver type not supported by port hardware The port does not support the transceiver type.
interface [ interface-type interface-number ]: Displays the measured values of the digital diagnosis parameters for the transceiver module in an interface. The interface-type interface-number argument specifies an interface by its type and number. If no interface is specified, this command displays the measured values of the digital diagnosis parameters for the transceiver modules in all interfaces. |: Filters command output by specifying a regular expression.
Default command level 2: System level Parameters controller [ controller-type controller-number ]: Displays the electronic label data for the transceiver module in a controller interface. The controller-type controller-number argument specifies a controller interface by its type and number. If no controller interface is specified, this command displays the electronic label data for the transceiver modules in all controller interfaces.
Default command 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 that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
[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 '%'.
Login authentication Password: Welcome to shell(header shell) job Use job to create a job or enter job view. Use undo job to delete a scheduled job. Syntax job job-name undo job job-name Default No job is created. Views System view Default command level 3: Manage level Parameters job-name: Specifies the name for a job, a string of 1 to 32 characters. Usage guidelines You can add commands in job view to execute at certain times. You can use the job command to create multiple jobs.
Syntax nms { primary | secondary } monitor-interface interface-type interface-number undo nms { primary | secondary } monitor-interface Default A network management system (NMS) does not monitor any interface on the device. Views System view Default command level 3: Manage level Parameters primary: Specifies the primary monitored interface. secondary: Specifies the secondary monitored interface. interface-type interface-number: Type and number of the interface to be monitored.
Views System view Default command level 3: Manage level Usage guidelines Password recovery capability controls console user access to the device configuration and SDRAM from Boot ROM menus. If password recovery capability is enabled, a console user can access the device configuration without authentication to configure new passwords. If password recovery capability is disabled, console users must restore the factory-default configuration before they can configure new passwords.
The output is not shown. reset unused porttag Use reset unused porttag to clear unused 16-bit interface indexes. Syntax reset unused porttag Views User view Default command level 1: Monitor level Usage guidelines A confirmation is required when you execute this command. The command will not run if you enter N to cancel the operation or fail to make a confirmation within 30 seconds. Examples # Clear unused 16-bit interface indexes.
• hh:mm format—The hh value is in the range of 0 to 720, and the mm value is in the range of 0 to 59. When the hh value is 720, the mm value cannot be more than 0. • mm format—It is in the range of 0 to 432000 minutes, with 0 indicating that the command is executed immediately. view view: Specifies the view in which the command is executed. The view argument represents the view name, and it can take only one of the following keywords: • shell—Represents user view. • system—Represents system view.
schedule reboot at Use schedule reboot at to schedule a device reboot to occur at a specific time and date. Use undo schedule reboot to disable the scheduled reboot function. Syntax schedule reboot at hh:mm [ date ] undo schedule reboot Default The scheduled reboot function is disabled. Views User view Default command level 3: Manage level Parameters hh:mm: Specifies a reboot time, in the hh:mm format. The hh value is in the range of 0 to 23, and the mm value is in the range of 0 to 59.
Enter y at the prompt. If you have used the terminal logging command to enable the log display function (enabled by default) on the terminal, the system automatically displays a reboot schedule log message. %Jun 6 11:43:11:629 2006 Sysname CMD/4/REBOOT: vty0(192.168.1.54): Set schedule reboot parameters at 11:43:11 06/06/2006, and system will reboot at 12:00 06/06/2006.
Examples # Schedule a device reboot in 88 minutes. This example assumes that the current time is 11:48 on June 6, 2006. schedule reboot delay 88 Reboot system at 13:16 06/06/2006(in 1 hour(s) and 28 minute(s)). confirm? [Y/N]: Enter y at the prompt. If you have used the terminal logging command to enable the log display function (enabled by default) on the terminal, the system automatically displays a reboot schedule log message.
• If the detection timer is set to 0, the protocol module never automatically recovers the port. You need to manually bring up the port by using the undo shutdown command or change the detection timer to a non-zero value. Examples # Set the port status detection timer to 100 seconds. system-view [Sysname] shutdown-interval 100 sysname Use sysname to set the device name. Use undo sysname to restore the default. Syntax sysname sysname undo sysname Default The default name is HP.
Views System view Default command level 3: Manage level Parameters maintain: Specifies that when the system detects any software abnormality, it maintains the current situation, and does not take any measure to recover itself. reboot: Specifies that when the system detects any software abnormality, it recovers itself through automatic reboot. Examples # Set the exception handling method to reboot.
Command temperature-li mit MSR 900 No MSR93 X No MSR20 -1X No MSR20 MSR30 MSR50 Yes Yes Yes Value range for lower-value: 0 to 14 Value range for lower-value: 0 to 14 Value range for lower-value: 0 to 30 Value range for upper-value: 50 to 90 Value range for upper-value: 40 to 90 Value range for upper-value: 40 to 90 MSR1 000 No Examples # Set the lower temperature threshold for card 1 to 10°C (50°F) and the upper temperature threshold to 75°C (167°F).
week-day week-daylist: Specifies the day or days for executing the command. The week-daylist argument specifies one day or up to seven days, which can be any combination of Sun, Mon, Tue, Wed, Thu, Fri, and Sat. For example, to have a command executed on Monday, you can enter week-day Mon; to have a command executed on Friday and Saturday, enter week-day Fri Sat. Use a space between every two days for separation. command command: Specifies the command to be automatically executed, in the text format.
# Schedule a job to save the configuration file at 12:00 every day. system-view [Sysname] job saveconfig [Sysname-job-saveconfig] view monitor [Sysname-job-saveconfig] time 1 repeating at 12:00 command save a.cfg # Schedule a job to save the configuration file at 8:00 AM on 5th in the current month, which might be executed in the second month if the time has passed.
Parameters time timeid: Time setting entry, an integer in the range of 1 to 10. one-off: Specifies that the specified command is executed for once. repeating: Specifies a recurring time schedule. delay time: Specifies the delay time for executing the command, in the hh:mm format or mm format. • When the time argument is in the hh:mm format, the hh value is in the range of 0 to 720, and the mm value is in the range of 0 to 59. When the hh value is 720, the mm value can be only 00.
[Sysname-job-saveconfig] view monitor [Sysname-job-saveconfig] time 1 repeating delay 5 command save a.cfg Related commands • job • view transceiver phony-alarm-disable Use transceiver phony-alarm-disable to disable alarm traps for transceiver modules. Use undo transceiver phony-alarm-disable to restore the default. Syntax transceiver phony-alarm-disable undo transceiver phony-alarm-disable Default Alarm traps are enabled for transceiver modules.
Default command level 3: Manage level Usage guidelines Before you executing this command, make sure the USB ports are not being used for data read/write operation. Otherwise, the operation might fail. Disabling the USB ports also disables the USB-based storage and 3G functions. Examples # Disable the USB ports. system-view [Sysname] usb disable view Use view to specify a view for a job. Use undo view to remove the view of a job.
Configuration file management commands The device supports the FIPS mode that complies with NIST FIPS 140-2 requirements. Support for features, commands, and parameters might differ in FIPS mode and non-FIPS mode. For more information about FIPS mode, see Security Configuration Guide. The following matrix shows the FIPS and hardware compatibility: Hardware FIPS mode MSR900 No. MSR93X No. MSR20-1X No. MSR20 Yes. MSR30 Yes (except the MSR30-16). MSR50 Yes. MSR1000 Yes.
• If a low-speed storage medium (such as a Flash) is used, archive the running configuration manually, or configure automatic archiving with an interval longer than 1440 minutes (24 hours). • If a high-speed storage medium (such as a CF card) is used and the device configuration changes frequently, set a shorter saving interval. Examples # Archive the running configuration. archive configuration Warning: Save the running configuration to an archive file. Continue? [Y/N]: Y Please wait...
• If the device configuration does not change frequently, manually archive the running configuration as needed. • If a low-speed storage medium (such as a Flash) is used, archive the running configuration manually, or configure automatic archiving with an interval longer than 1440 minutes (24 hours). • If a high-speed storage medium (such as a CF card) is used and the device configuration changes frequently, set a shorter saving interval.
After you change the file directory or file name prefix, or reboot the device, the old configuration archives are regarded as common configuration files, the configuration archive counter resets, and the display archive configuration command does not display them. The serial number for new configuration archives starts from 1.
Changing the limit setting to a lower value does not cause immediate deletion of exceeding archives. Instead, the configuration archive function deletes the oldest n files when a new archive is manually or automatically saved, where n = current archive count – new archive limit + 1. Suppose seven configuration archives have been saved before the archive limit is set to four. When saving a new configuration archive, the system first deletes the oldest four (7 – 4 + 1) archives.
configuration encrypt Use configuration encrypt to enable configuration encryption. Use undo configuration encrypt to restore the default. Syntax configuration encrypt { private-key | public-key } undo configuration encrypt Default Configuration encryption is disabled. The running configuration is saved to a configuration file without encryption. Views System view Default command level 3: Manage level Parameters private-key: Encrypts configuration with a private key.
Usage guidelines To replace the running configuration with the configuration in a configuration file without rebooting the device, use the configuration rollback function. This function helps you revert to a previous configuration state or adapt the running configuration to different network environments. To avoid rollback failure: • Use the configuration archive function or the save command on the current device to create the replacement configuration file.
Saved archive files: No. TimeStamp FileName 1 Jan 05 2012 20:24:54 my_archive_1.cfg 2 Jan 05 2012 20:34:54 my_archive_2.cfg # 3 Jan 05 2012 20:44:54 my_archive_3.cfg '#' indicates the most recent archive file. Next archive file to be saved: my_archive_4.cfg Table 24 Command output Field Description Location Directory for saving running-configuration archives. Filename prefix File name prefix for configuration archives.
• acl: Excludes the IPv4 ACL configuration. • acl6: Excludes the IPv6 ACL configuration. by-linenum: Displays the number of each line. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
display current-configuration | include snmp snmp-agent snmp-agent local-engineid 800063A203000FE240A1A6 snmp-agent community read public snmp-agent community write private snmp-agent sys-info version all undo snmp-agent trap enable ospf 100 Related commands • display saved-configuration • reset saved-configuration • save display saved-configuration Use display saved-configuration to display the contents of the configuration file to be used at the next startup.
sysname HP # domain default enable system # telnet server enable # multicast routing-enable # vlan 1 # vlan 999 # domain system access-limit disable state active idle-cut disable self-service-url disable # interface NULL0 # ---- More ---- At the prompt of More, press Enter to display the next line, press Space to display the next screen of configuration, or press Ctrl+C or any other key to stop displaying the configuration. # Display the next-startup configuration file and number each line.
---- More ---- Related commands • display current-configuration • reset saved-configuration • save display startup Use display startup to display the current startup configuration file and the next-startup configuration file. Syntax display startup [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression.
Related commands startup saved-configuration display this Use display this to display the running configuration in the current view. Syntax display this [ by-linenum ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters by-linenum: Displays the number of each line. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
return # Display the running configuration on user interfaces. system-view [Sysname] user-interface vty 0 [Sysname-ui-vty0] display this # user-interface con 0 user-interface vty 0 history-command max-size 256 user-interface vty 1 4 # return reset saved-configuration Use reset saved-configuration to delete next-startup configuration files.
Related commands • display saved-configuration • save restore startup-configuration Use restore startup-configuration to download a configuration file from a TFTP server and specify it as the next-startup configuration file. Syntax restore startup-configuration from src-addr src-filename Views User view Default command level 3: Manage level Parameters src-addr: Specifies a TFTP server's IPv4 address or name. The name can comprise 1 to 20 characters.
Views Any view Default command level 2: System level Parameters file-url: Specifies a file path, where the file extension must be .cfg. safely: Saves the configuration file in safe mode. If this keyword is not specified, the system saves the configuration file in fast mode. Safe mode is less fast than fast mode, but more secure. In safe mode, the system saves configuration in a temporary file and starts overwriting the target next-startup configuration file after the save operation is complete.
The configuration file flash:/config.cfg will be automatically backed up as flash:/_config_bak.cfg for a future version downgrading. Validating file. Please wait............ Configuration is saved to device successfully. The output shows that the system backed up the configuration file as _config_bak.cfg and used the running configuration to overwrite the configuration file. display startup Current startup saved-configuration file: flash:/hmr.
Views User view Default command level 3: Manage level Parameters cfgfile: Specifies a configuration file name with the extension .cfg. The file must be stored in the root directory of the storage media. backup: Sets the configuration file as the backup next-startup configuration file. main: Sets the configuration file as the main next-startup configuration file.
File system management commands The following table shows the storage medium types supported on different router models: Hardware Storage media MSR900 • Flash • USB disk MSR93X • Flash • USB disk MSR20-1X • Flash • USB disk MSR20 • CF card • USB disk MSR30 • Flash (supported on MSR30-10, MSR30-11E, and MSR30-11F) • CF card (supported on MSR30-16, MSR30-20, MSR30-40, and MSR30-60) • USB disk MSR50 • Flash (unsupported only on MPUF) • CF card • USB disk MSR1000 • Flash • USB disk In the follow
..: Returns to an upper directory. If the current working directory is the root directory, or if no upper directory exists, the current working directory does not change when the cd .. command is executed. No online help information is available for this keyword. /: Returns to the root directory of the storage medium. No online help information is available for this keyword. Examples # Enter the test folder after logging in to the device. cd test # Return to the upper directory.
crypto-digest Use crypto-digest to calculate the digest of a file. Syntax crypto-digest sha256 file file-url Views User view Default command level 2: System level Parameters sha256: Specifies the SHA-256 algorithm. file file-url: Specifies a file. Usage guidelines The digest can be used to verify the integrity of the file.
If you delete two or more files with the same file name from different directories, only the last one is retained in the recycle bin. The dir /all command displays the files moved to the recycle bin. These files are enclosed in pairs of square brackets [ ]. To permanently delete these files, use the reset recycle-bin command. The delete /unreserved file-url command permanently deletes a file, and the deleted file cannot be restored. Examples # Remove file tt.cfg from the current directory.
14605 KB total (5096 KB free) [ ] indicates this file is in the recycle bin. # Display files and folders in the root directory of all storage media on the device. dir /all-filesystems Directory of flash:/ 0 -rw- 1520300 Dec 01 2010 11:37:47 cmdtree.txt 1 drw- - Dec 01 2010 11:37:41 logfile 2 drw- - Dec 01 2010 15:07:15 diaglog 3 drw- - Dec 01 2010 15:07:15 seclog 4 drw- - Dec 03 2010 09:48:05 secl 5 -rw- 909 Dec 03 2010 09:48:38 secl.
Parameters filename: File name. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
display nandflash badblock-location Use display nandflash badblock-location to display the number and location of bad blocks in the NAND Flash memory. Syntax display nandflash badblock-location [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
Table 28 Command output Field Description No Serial number of the bad blocks. Physical block Serial number of the physical pages with bad blocks. 3200 block(s) total, 3 block(s) bad. Total number of blocks and bad blocks in the NAND Flash memory. display nandflash page-data Use display nandflash page-data to display the data on the specified physical page in the NAND Flash memory.
Examples # Display the content of the file test.cfg which is saved in the NAND Flash memory. display nandflash file-location test.cfg Logical Chunk Physical Page --------------------------chunk(0) 1234 chunk(1) 1236 chunk(2) 1235 filename: test.cfg display nandflash page-data 1236 0000: 0D 0A 23 0D 0A 20 76 65 72 73 69 6F 6E 20 35 2E ..#.. version 5. 0010: 32 30 2C 20 41 6C 70 68 61 20 31 30 31 31 0D 0A 20, Alpha 1011..
file prompt Use file prompt to set the file operation mode. Syntax file prompt { alert | quiet } Default The operation mode is alert. Views System view Default command level 3: Manage level Parameters alert: Enables the system to warn you about operations that might bring undesirable results such as file corruption or data loss. quiet: Disables the system from warning you about any operation. Usage guidelines When the operation mode is set to quiet, the system does not warn for any file operation.
Fixdisk flash: may take some time to complete... %Fixdisk flash: completed. format Use format to format a storage medium. Syntax format device [ FAT16 | FAT32 ] Views User view Default command level 3: Manage level Parameters device: Specifies the name of a storage medium, for example flash or cfa0. FAT16: Formats a storage medium using the FAT16 format. FAT16 does not support Tab matching and must be entered completely if used, and is not applicable to a Flash card.
Parameters directory: Name of a folder. Usage guidelines The name of the folder to be created must be unique in the specified directory. Otherwise, you will fail to create the folder in the directory. To use this command to create a folder, the specified directory must exist. For example, to create folder flash:/test/mytest, the test folder must exist. Otherwise, you will fail to create the mytest folder. Examples # Create a folder named test in the current directory. mkdir test ....
Examples # Display the contents of file test.txt. more test.txt Welcome to HP. # Display the contents of file testcfg.cfg. more testcfg.cfg # version 5.20, Beta 1201, Standard # sysname Sysname # vlan 2 # return mount Use mount to mount a hot swappable storage medium (excluding the flash), such as a CF card or a USB disk.
Hardware Command compatible MSR1000 Yes. This command applies only when the device is in unmounted state. Do not remove the storage medium or swap a card when mounting or unmounting the device, or when you are processing files on the storage medium. Otherwise, the file system could be damaged.
% Moved file flash:/test/sample.txt to flash:/1.txt # Move file b.cfg to the subfolder test2. move b.cfg test2 Move flash:/b.cfg to flash:/test2/b.cfg?[Y/N]:y . %Moved file flash:/b.cfg to flash:/test2/b.cfg. pwd Use pwd to display the current path. Syntax pwd Views User view Default command level 3: Manage level Examples # Display the current path. pwd flash: rename Use rename to rename a file or folder. The target file name must be unique in the current path.
reset recycle-bin Use reset recycle-bin to permanently delete the files in the recycle bin in the current directory. Syntax reset recycle-bin [ /force ] Views User view Default command level 3: Manage level Parameters /force: Deletes all files in the recycle bin, including files that cannot be deleted by the command without the /force keyword. Usage guidelines If a file is corrupted, you might not be able to delete the file using the reset recycle-bin command.
%Cleared file flash:/~/b.cfg... 3. In directory flash:, check in the recycle bin whether the file b.cfg is deleted. dir /all Directory of flash:/ 0 -rwh 3080 Apr 26 2008 16:41:43 private-data.txt 1 2 -rw- 2416 Apr 26 2008 13:45:36 config.cfg -rw- 8036197 May 14 2008 10:13:18 main.bin 3 -rw- 2386 Apr 26 2008 13:30:30 back.
Parameters directory: Name of the folder. Usage guidelines The folder must be empty. If not, delete all files and subfolders under it by using the delete command. After you execute the rmdir command successfully, the files in the recycle bin in the folder will be automatically deleted. Examples # Remove folder mydir. rmdir mydir Rmdir flash:/mydir?[Y/N]:y %Removed directory flash:/mydir.
When mounting or unmounting a storage medium, or performing file operations on it, do not unplug or switchover the storage medium or the card where the storage medium resides. Otherwise, the file system could be damaged. When a storage medium is connected to a lower version system, the system might not be able to recognize the device automatically, and you must use the mount command for the storage medium to function correctly.
Or: cd test undelete b.cfg Undelete flash:/test/b.cfg?[Y/N]:y ..... %Undeleted file flash:/test/b.cfg.
1
FTP configuration commands The following matrix shows the FIPS and hardware compatibility: Hardware FIPS mode MSR900 No. MSR93X No. MSR20-1X No. MSR20 Yes. MSR30 Yes except on MSR30-16. MSR50 Yes. MSR1000 Yes. NOTE: FTP is not available in FIPS mode. FTP server commands display ftp-server Use display ftp-server to display the FTP server configuration and status information.
Examples # Display the FTP server configuration and status information. display ftp-server FTP server is running Max user number: 1 User count: 1 Timeout value(in minute): 30 Put Method: fast Table 29 Command output Field Description Max user number Maximum number of concurrent login users. User count Number of the current login users. Timeout value (in minute) Allowed idle time of an FTP connection.
UserName HostIP Port Idle HomeDir ftp 192.168.1.54 1190 0 flash: # If a username exceeds 10 characters, the exceeded characters are displayed in the next line and right justified. For example, if the logged-in user name is administrator, the following information is displayed: display ftp-user UserName HostIP Port Idle HomeDir 192.168.0.152 1031 0 flash: administra tor Table 30 Command output Field Description UserName Name of the user. HostIP IP address of the user.
Syntax ftp server acl acl-number undo ftp server acl Default No ACL is used to control FTP clients' access to the FTP server. Views System view Default command level 2: System level Parameters acl-number: Basic ACL number in the range of 2000 to 2999. Usage guidelines You can use this command to permit FTP requests from specific FTP clients only. This configuration takes effect for FTP connections to be established only, and does not impact existing FTP connections.
[Sysname] ftp server enable [Sysname] ftp timeout Use ftp timeout to set the idle-timeout timer for FTP connections. Use undo ftp timeout to restore the default. Syntax ftp timeout minute undo ftp timeout Default The FTP idle-timeout timer is 30 minutes. Views System view Default command level 3: Manage level Parameters minute: Idle-timeout time in the range of 1 to 35791 minutes.
Parameters fast: Fast update. In this mode, the FTP server writes the complete file to the memory before writing it to the storage medium. normal: Normal update. In this mode, the FTP server writes the data of a file from the memory to the storage medium multiple times, with up to 4096 bytes per time. Examples # Set the FTP update mode to normal.
Related commands binary binary Use binary to set the file transfer mode to binary, which is also called the "flow mode". Syntax binary Default The transfer mode is ASCII mode. Views FTP client view Default command level 3: Manage level Examples # Set the file transfer mode to binary. [ftp] binary 200 Type set to I. [ftp] Related commands ascii bye Use bye to disconnect from the remote FTP server and return to user view.
Related commands • close • disconnect • quit cd Use cd to change the current working directory to another directory on the FTP server. Syntax cd { directory | .. | / } Views FTP client view Default command level 3: Manage level Parameters directory: Name of the target directory, in the format of [drive:][/]path, where drive represents the storage medium name. If the target directory does not exist, the cd command does not change the current working directory.
cdup Use cdup to enter the upper directory of the FTP server. Syntax cdup Views FTP client view Default command level 3: Manage level Usage guidelines This command does not change the working directory if the current directory is the FTP root directory. Examples # Change the working directory to the upper directory. [ftp] pwd 257 "/ftp/subdir" is current directory. [ftp] cdup 200 CDUP command successful. [ftp] pwd 257 "/ftp" is current directory.
debugging Use debugging to enable FTP client debugging. Use undo debugging to disable FTP client debugging. Syntax debugging undo debugging Default FTP client debugging is disabled. Views FTP client view Default command level 1: Monitor level Examples # The device serves as the FTP client. Enable FTP client debugging and use the active mode to download file sample.file from the current directory of the FTP server. terminal monitor terminal debugging ftp 192.168.1.
.226 Transfer complete. FTP: 3304 byte(s) received in 4.889 second(s), 675.00 byte(s)/sec. [ftp] Table 31 Command output Field Description ---> PORT 192,168,1,44,4,21 FTP command. 192,168,1,44 specifies the destination IP address, and 4,21 is used to calculate the data port number by using the formula 4*256+21. The parsed reply is Received reply code, which is defined in RFC 959. ---> RETR Download the file. FTPC: File transfer started with the signal light turned on.
Use dir remotefile localfile to save detailed information about a specific file or directory on the FTP server to a local file. Syntax dir [ remotefile [ localfile ] ] Views FTP client view Default command level 3: Manage level Parameters remotefile: Name of the file or directory on the remote FTP server. localfile: Name of the local file used to save the displayed information. Usage guidelines The Is command displays only the names of files and directories.
Syntax disconnect Views FTP client view Default command level 3: Manage level Usage guidelines This command is equal to the close command. Examples # Disconnect from the remote FTP server but remain in FTP client view. [ftp] disconnect 221 Server closing. [ftp] display ftp client configuration Use display ftp client configuration to display the source IP address configuration of the FTP client.
ftp Use ftp to log in to an FTP server and enter FTP client view. Syntax ftp [ server-address [ service-port ] [ vpn-instance vpn-instance-name ] [ source { interface interface-type interface-number | ip source-ip-address } ] ] Views User view Default command level 3: Manage level Parameters server-address: IP address or host name of the FTP server, a string of 1 to 20 characters. service-port: TCP port number of the FTP server, in the range of 0 to 65535. The default value is 21.
[ftp] ftp client source Use ftp client source to specify a source IP address for outgoing FTP packets. Use undo ftp client source to restore the default. Syntax ftp client source { interface interface-type interface-number | ip source-ip-address } undo ftp client source Default The primary IP address of the output interface is used as the source IP address.
ftp ipv6 Use ftp ipv6 to log in to an FTP server and enter FTP client view. Syntax ftp ipv6 [ server-address [ service-port ] [ vpn-instance vpn-instance-name ] [ source ipv6 source-ipv6-address ] [ -i interface-type interface-number ] ] Views User view Default command level 3: Manage level Parameters server-address: IP address or host name of the remote FTP server. service-port: TCP port number of the FTP server, in the range of 0 to 65535. The default value is 21.
# Log in to the FTP server at 3000::200 in VPN 1. ftp ipv6 3000::200 vpn-instance vpn1 Trying 3000::200 ... Press CTRL+K to abort Connected to 3000::200. 220 Welcome! User(3000::200:(none)): MY_NAME 331 Please specify the password. Password: 230 Login successful. [ftp] get Use get to download a file from the FTP server and save it. Syntax get remotefile [ localfile ] Views FTP client view Default command level 3: Manage level Parameters remotefile: Name of the file to be downloaded.
Examples # Display the local working directory. [ftp] lcd FTP: Local directory now flash:/clienttemp. The output shows that the working directory of the FTP client before execution of the ftp command is flash:/clienttemp. ls Use ls to list files and subdirectories in the current directory of the FTP server. Use ls remotefile to list files under a specific subdirectory or verify the existence of a file in the current directory of the FTP server.
227 Entering Passive Mode (192,168,1,50,10,49). 125 ASCII mode data connection already open, transfer starting for /logfile/*. logfile.log a.cfg 226 Transfer complete. FTP: 20 byte(s) received in 0.075 second(s), 266.00 byte(s)/sec. . # Save the names of all files in subdirectory logfile to file aa.txt. [ftp] ls logfile aa.txt 227 Entering Passive Mode (192,168,1,50,4,3). 125 ASCII mode data connection already open, transfer starting for /logfile/*. ....226 Transfer complete.
open Use open to log in to the IPv4 FTP server under FTP client view. Syntax open server-address [ service-port ] Views FTP client view Default command level 3: Manage level Parameters server-address: IP address or host name of a remote FTP server. service-port: Port number of the remote FTP server, in the range of 0 to 65535. The default value is 21. Usage guidelines At login, enter the username and password. If your input is correct, the login succeeds.
Default command level 3: Manage level Parameters server-address: IP address or host name of the remote FTP server. service-port: Port number of the remote FTP server, in the range of 0 to 65535. The default value is 21. -i interface-type interface-number: Specifies an output interface by its type and number. This parameter can be used only when the FTP server address is a link local address and the specified output interface has a link local address.
Usage guidelines FTP can operate in either of the following modes: • Active mode—The FTP server initiates the TCP connection. • Passive mode—The FTP client initiates the TCP connection. Examples # Set the FTP operation mode to passive. [ftp] passive FTP: passive is on [ftp] put Use put to upload a file on the client to the remote FTP server. Syntax put localfile [ remotefile ] Default If no name is assigned to the file to be saved on the FTP server, the name of the source file is used.
Views FTP client view Default command level 3: Manage level Examples # Display the currently accessed directory on the remote FTP server. [ftp] cd servertemp [ftp] pwd 257 "/servertemp" is current directory. The output shows that the servertemp folder in the FTP root directory is being accessed by the user. quit Use quit to disconnect the FTP client from the remote FTP server and exit to user view.
Examples # Display FTP commands supported by the remote FTP server. [ftp] remotehelp 214-Here is a list of available ftp commands Those with '*' are not yet implemented. USER PASS ACCT* CWD CDUP SMNT* QUIT REIN* PORT PASV TYPE STRU* MODE* RETR STOR STOU* APPE* ALLO* REST* RNFR* RNTO* ABOR* DELE RMD MKD PWD LIST NLST SITE* SYST STAT* HELP NOOP* XCUP XCWD XMKD XPWD XRMD 214 Direct comments to HP company. # Display the help information for the user command.
Field Description RMD Delete a folder. MKD Create a folder. PWD Print working directory. LIST List files. NLST List file description. SITE* Locate a parameter. SYST Display system parameters. STAT* State. HELP Help. NOOP* No operation. XCUP Extension command, the same meaning as CDUP. XCWD Extension command, the same meaning as CWD. XMKD Extension command, the same meaning as MKD. XPWD Extension command, the same meaning as PWD. XRMD Extension command, the same meaning as RMD.
[ftp] rmdir /temp1 200 RMD command successful. [ftp] user Use user to switch to another user account. Syntax user username [ password ] Views FTP client view Default command level 3: Manage level Parameters username: Login username. password: Login password. You can input this argument a space after the username argument; or you can input this argument when the "Password:" prompt appears after you input the username and then press Enter.
Syntax verbose undo verbose Default The display of detailed prompt information is enabled. Views FTP client view Default command level 3: Manage level Examples # Enable display of detailed prompt information. [ftp] verbose FTP: verbose is on # Disable display of detailed prompt information. and perform a Get operation. [ftp] undo verbose FTP: verbose is off [ftp] get startup.cfg bb.cfg FTP: 3608 byte(s) received in 0.052 second(s), 69.00K byte(s)/sec.
TFTP configuration commands The following matrix shows the FIPS and hardware compatibility: Hardware FIPS mode MSR900 No. MSR93X No. MSR20-1X No. MSR20 Yes. MSR30 Yes except on MSR30-16. MSR50 Yes. MSR1000 Yes. NOTE: TFTP is not available in FIPS mode. display tftp client configuration Use display tftp client configuration to display source IP address configuration of the TFTP client.
Examples # Display the source IP address configuration of the TFTP client. display tftp client configuration The source IP address is 192.168.0.123 Related commands tftp client source tftp-server acl Use tftp-server acl to use an ACL to control the device' access to a specific TFTP server. Use undo tftp-server acl to restore the default. Syntax tftp-server [ ipv6 ] acl acl-number undo tftp-server [ ipv6 ] acl Default No ACL is used to control the device's access to a TFTP server.
tftp Use tftp to download a specified file from the TFTP server to the local device or upload a specified local file to the TFTP server in an IPv4 network. Syntax tftp server-address { get | put | sget } source-filename [ destination-filename ] [ vpn-instance vpn-instance-name ] [ source { interface interface-type interface-number | ip source-ip-address } ] Views User view Default command level 3: Manage level Parameters server-address: IP address or host name of a TFTP server.
Sending file to remote TFTP server. Please wait... TFTP: 345600 bytes sent in 1 second(s). File uploaded successfully. tftp client source Use tftp client source to specify a source IP address for outgoing TFTP packets. Use undo tftp client source to restore the default. Syntax tftp client source { interface interface-type interface-number | ip source-ip-address } undo tftp client source Default The primary IP address of the output interface is used as the source IP address for outgoing TFTP packets.
Related commands display tftp client configuration tftp ipv6 Use tftp ipv6 to download a specified file from a TFTP server or upload a specified local file to a TFTP server in an IPv6 network.
License management commands The following matrix shows the license and hardware compatibility: Hardware License MSR900 No MSR93X No MSR20-1X No MSR20 Yes MSR30 Yes MSR50 Yes (Only supported by MPU-G2) MSR1000 No display license Use display license to display system software registration information.
Table 33 Command output Field Description Software license information System software license information. Serial Number Serial number of the license. Register Date Registration date and time. Trade Code Production serial number. license register Use license register to register the system software for a device.
Software upgrade commands The device supports the FIPS mode that complies with NIST FIPS 140-2 requirements. Support for features, commands, and parameters might differ in FIPS mode and non-FIPS mode. For more information about FIPS mode, see Security Configuration Guide. The following matrix shows the FIPS and hardware compatibility: Hardware FIPS mode MSR900 No. MSR93X No. MSR20-1X No. MSR20 Yes. MSR30 Yes (except the MSR30-16). MSR50 Yes. MSR1000 Yes.
Usage guidelines To execute the boot-loader command successfully, make sure you have saved the image file to the root directory of the storage medium. In FIPS mode, the file must pass authenticity verification before it can be set as a system software image for the next system startup. Examples # Specify test.bin as the main startup system software image file. This example assumes that this file has been saved in the root directory of the storage medium. boot-loader file test.
When you execute the bootrom update file file-url command in FIPS mode, the file must pass authenticity verification before it can be set as the BootWare image file. Examples # Read the BootWare image. bootrom read all Now reading bootrom, please wait... Read bootrom! Please wait...
Restore bootrom completed! # Use the a.btm file to upgrade the BootWare image. bootrom update file a.btm This command will update bootrom file, Continue? [Y/N]:y Now updating bootrom, please wait... Updating basic bootrom! ................................ Update basic bootrom success! Updating extended bootrom! ........................
Field Description Attributes of the system software image: attribute • main. • backup. The boot file used at the next reboot System software image to be used at the next startup. Failed to get the secure boot file used at the next reboot! If the main and the backup system software images are not available or damaged, the secure system software image will be used for the boot of the device. Related commands boot-loader display patch Use display patch to display patch files that have been installed.
display patch information Use display patch information to display patch information. Syntax display patch information [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 3: Manage 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 that matches the specified regular expression and all lines that follow.
Field Description Start-Address Start address of the patch memory area in the memory. patch active Use patch active to activate patches. Syntax patch active [ patch-number ] Views System view Default command level 3: Manage level Parameters patch-number: Specifies the sequence number of a patch. If no sequence number is specified, this command validates all DEACTIVE patches. If a sequence number is specified, this command activates the specified patch and all its previous DEACTIVE patches.
Parameters patch-number: Specifies the sequence number of a patch. If no sequence number is specified, this command deactivates all ACTIVE patches. If a sequence number is specified, this command deactivates the specified patch and all its subsequent ACTIVE patches. Usage guidelines This command is not applicable to patches in RUNNING state. Examples # Stop running patch 3 and all its subsequent ACTIVE patches. system-view [Sysname] patch deactive 3 # Stop running all ACTIVE patches.
Syntax patch install { patch-location | file filename } undo patch install Views System view Default command level 3: Manage level Parameters patch-location: Specifies the patch file path, a string of 1 to 64 characters. The file must be saved in the root directory of the storage media. Provide this argument if the patch file is not packaged in a patch package file, and make sure the file name is correct. file filename: Specifies a patch package file name.
patch load Use patch load to load patches from the storage media (Flash or CF card) to the patch memory area. Syntax patch load [ file filename ] Default The system loads patch files from the root directory of storage media. Views System view Default command level 3: Manage level Parameters file filename: Specifies a patch package file name. If the package file is specified, the system loads patch files from the patch package.
Parameters patch-location: Specifies the patch file location, a string of 1 to 64 characters. Usage guidelines This command does not take effect for patch package files. If the device has only one storage medium, you do not need to use this command to specify the patch file location. The patch install patch-location command can change the patch file location that has been specified with the patch location command. In contrast, the patch install file filename does not.
Automatic configuration deployment command autodeploy udisk enable Use autodeploy udisk enable to enable automatic configuration from a USB disk. Use undo autodeploy udisk enable to disable automatic configuration from a USB disk. Syntax cd { directory | .. | / } Default Automatic configuration from a USB disk is enabled. Views System view Default command level 2: System level Examples # Disable automatic configuration from a USB disk.
Support and other resources Contacting HP For worldwide technical support information, see the HP support website: http://www.hp.
Conventions This section describes the conventions used in this documentation set. Command conventions Convention Description Boldface Bold text represents commands and keywords that you enter literally as shown. Italic Italic text represents arguments that you replace with actual values. [] Square brackets enclose syntax choices (keywords or arguments) that are optional. { x | y | ... } Braces enclose a set of required syntax choices separated by vertical bars, from which you select one.
Network topology icons Represents a generic network device, such as a router, switch, or firewall. Represents a routing-capable device, such as a router or Layer 3 switch. Represents a generic switch, such as a Layer 2 or Layer 3 switch, or a router that supports Layer 2 forwarding and other Layer 2 features. Represents an access controller, a unified wired-WLAN module, or the switching engine on a unified wired-WLAN switch. Represents an access point.
Index ABCDEFGHIJLMNOPQRSTUVW A crypto-digest,131 acl (user interface view),13 D activation-key,15 databits,20 archive configuration,111 debugging,11 archive configuration interval,112 delete,131 archive configuration location,113 delete,12 archive configuration max,114 dir,12 ascii,7 dir,132 authentication-mode,16 disconnect,13 autodeploy udisk enable,47 display archive configuration,117 auto-execute command,17 display boot-loader,39 B display clipboard,3 display clock,69 backup star
display patch information,41 history-command max-size,31 display power,83 hotkey,6 display reboot-type,83 I display rps,84 idle-timeout,32 display saved-configuration,120 ip alias,32 display schedule job,85 ip http acl,33 display schedule reboot,86 ip http enable,34 display startup,122 ip http port,35 display system-failure,86 ip https acl,36 display telnet client configuration,22 ip https certificate access-control-policy,37 display tftp client configuration,29 ip https enable,38 disp
patch run,46 stopbit-error intolerance,52 protocol inbound,42 stopbits,53 put,23 Subscription service,48 pwd,143 super,9 pwd,23 super authentication-mode,10 Q super password,10 sysname,103 quit,24 system-failure,103 quit,7 system-view,12 R T reboot,97 telnet,54 redirect disconnect,42 telnet client source,55 redirect enable,43 telnet ipv6,55 redirect listen-port,44 telnet server enable,56 redirect refuse-negotiation,44 temperature-limit,104 redirect refuse-teltransfer,45 terminal