HP HSR6800 Routers Fundamentals Command Reference Part number: 5998-4501 Software version: HSR6800-CMW520-R3303P05 Document version: 6PW105-20140507
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 Basic CLI configuration commands ····························································································································· 1 command-alias enable ············································································································································· 1 command-alias mapping ········································································································································· 1 command-privile
speed (user interface view)··································································································································· 42 stopbits···································································································································································· 43 telnet ·······································································································································································
File system management commands ························································································································ 83 cd ············································································································································································ 83 copy ········································································································································································ 84
display clock ························································································································································ 140 display configure-user ········································································································································· 140 display copyright ················································································································································· 142 display
Basic CLI configuration commands The router 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. 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.
undo command-alias mapping cmdkey Default A command keyword has no alias. 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.
command: Command to be set in the specified view. 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.
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 history-command Use display history-command to display commands saved in the command history buffer. Syntax display history-command [ | { 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.
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 hotkey information.
hotkey Use hotkey to assign a command to a configurable hotkey. Use undo hotkey to restore the default.
2: System level (executed in other views) Usage guidelines Executing this command in user view disconnects you from the device. Examples # Return from GigabitEthernet 3/0/1 interface view to system view and then to user view. [Sysname-GigabitEthernet3/0/1] quit [Sysname] quit return Use return to return to user view from any other view. Pressing Ctrl+Z has the same effect.
Usage guidelines When the screen pause function is disabled, all output is displayed at one time and the screen is refreshed continuously. This command takes effect only for the current session. When you log out, the setting by this command is restored to the default. Examples # Disable pausing between screens of output for the current session.
# Switch back to user privilege level 3. (Suppose that the switching password is 123. If no password is set, users cannot switch to user privilege level 3.) super 3 Please input the password to change the privilege level, press CTRL_C to abort. Password: User privilege level is 3, and only those commands can be used whose level is equal or less than this.
# Set the authentication mode for user privilege level switching to scheme local. system-view [Sysname] super authentication-mode scheme local Related commands super password super password Use super password to set a password for a user privilege level. 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 any user privilege level.
Keyword Password string form Length (in characters) Plain text: 8 to 16 cipher Plain text, ciphertext hash cipher Ciphertext (hashed form) Ciphertext: 8 to 53 (the corresponding plaintext string of the password must have 8 to 16 characters) 8 to 110 Usage guidelines For security purposes, all passwords, including passwords configured in plain text, are saved in cipher text to the configuration file. Store the plaintext forms of user privilege level passwords in a safe place.
Login management commands The router 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. 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.
Usage guidelines If no ACL is referenced in VTY user interface view, the VTY user interface has no access control over establishing a Telnet or SSH connection. If an ACL is referenced in VTY user interface view, the connection is permitted to be established only when packets for establishing a Telnet or SSH connection match a permit statement in the ACL.
Syntax activation-key character undo activation-key Default Pressing the Enter key starts a terminal session. Views User interface view Default command level 3: Manage level Parameters character: Shortcut key for starting a terminal session, a single character (or its corresponding ASCII code value in the range of 0 to 127), or a string of 1 to 3 characters. However, only the first character functions as the shortcut key.
Pressing Enter does not start a session. 4. Enter s. A terminal session is started. %Mar 2 18:40:27:981 2005 Sysname SHELL/5/LOGIN: Console login from con0 authentication-mode Use authentication-mode to set the authentication mode for a user interface. Use undo authentication-mode to restore the default.
[Sysname-ui-vty0] set authentication password simple 321 # Enable scheme authentication for user interface VTY 0 and the username to 123 and the password to 321.
Examples # Configure the device to automatically Telnet to 192.168.1.41 after a user logs in to interface VTY 0. system-view system-view [Sysname] user-interface vty 0 [Sysname -ui-vty0] auto-execute command telnet 192.168.1.41 % This action will lead to configuration failure through ui-vty0. Are you sure? [Y/N]:y [Sysname-ui-vty0] # To verify the configuration, Telnet to 192.168.1.40. The device automatically Telnets to 192.168.1.
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. When both command accounting and command authorization are enabled, only the authorized and executed commands are recorded on the HWTACACS server. Examples # Enable command accounting for user interface VTY 0.
databits { 5 | 6 | 7 | 8 } undo databits Default Eight data bits are used for each character. Views User interface view Default command level 2: System level Parameters 5: Uses five data bits for each character. 6: Uses six data bits for each character. 7: Uses seven data bits for each character. 8: Uses eight data bits for each character. Usage guidelines This command is only applicable to asynchronous serial interfaces, including AUX and console ports.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines This command is not available in FIPS mode. Examples # Display the configuration of the device when it serves as a Telnet client. display telnet client configuration The source IP address is 1.1.1.1. The output shows that the device uses the source IPv4 address 1.1.1.1 for outgoing Telnet packets when it serves as a Telnet client.
+ : Current user-interface is active. F : Current user-interface is active and work in async mode. Idx : Absolute index of user-interface. Type : Type and relative index of user-interface. Privi: The privilege of user-interface. Auth : The authentication mode of user-interface. Int : The physical location of UIs. A : Authentication use AAA. L : Authentication use local database. N : Current UI need not authentication. P : Authentication use current UI's password.
Table 4 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. For example, 9:UXXX X shows that the absolute number of the first user interface is 9, and the user interface is in use. User interfaces 10, 11, 12, and 13 are not in use. display users Use display users to display information about the user interfaces being used.
The output shows that two users have logged in to the device: one is using user interface VTY 0 and the other is using VTY 1. The one using VTY 0 is at 192.168.1.54 and is the one who executed the display command. Table 5 Command output Field Description Idx Absolute number of the user interface. UI Relative number of the user interface. For example, with VTY, the first column represents user interface type, and the second column represents the relative number of the user interface.
If you set the character argument in a user interface of a device, when you use the user interface to log in to the device and then Telnet to another device, the character argument can be used as a control character to terminate a task rather than used as a common character.
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. If out is specified, the local device sends flow control information to the remote device.
Syntax free user-interface { num1 | { aux | console | vty } num2 } Views User view Default command level 3: Manage level Parameters num1: Specifies the absolute number of a user interface. The value range for the num1 argument is 0 to 653 aux: Specifies the AUX user interface. console: Specifies the console user interface. vty: Specifies the VTY user interface. num2: Specifies the relative number of a user interface.
undo history-command max-size Default The buffer of a user interface saves 10 history commands at most. Views User interface view Default command level 2: System level Parameters size-value: Specifies the maximum number of history commands the buffer can store, in the range of 0 to 256. Usage guidelines Each user interface uses a separate command history buffer to save commands successfully executed by its user. The size of the buffer determines how many history commands the buffer can store.
seconds: Specifies the number of seconds for the idle-timeout time, in the range of 0 to 59. The default is 0 seconds. Usage guidelines The system automatically terminates the user connection on the user interface if there is no information interaction between the device and the user within the idle-timeout time. Setting the idle-timeout timer to 0 disables the idle-timeout function. Examples # Set the idle-timeout timer to 1 minute and 30 seconds.
Related commands • redirect enable • redirect listen-port lock Use lock to lock the current user interface. Syntax lock Default This function is disabled. Views User view Default command level 3: Manage level Usage guidelines This command is not available in FIPS mode. When you need to leave the device for a while, use this command to lock the current user interface to prevent unauthorized access.
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.
protocol inbound { all | ssh } undo protocol inbound Default In non-FIPS mode, both SSH and Telnet are supported. In FIPS mode, SSH is supported. Views VTY interface view Default command level 3: Manage level Parameters all: Supports both SSH and Telnet. Telnet service is not supported in FIPS mode. ssh: Supports SSH only. telnet: Supports Telnet only. This keyword is not available in FIPS mode.
system-view [Sysname] user-interface aux 0 [Sysname-ui-aux0] redirect disconnect redirect enable Use redirect enable to enable Telnet redirect for the current user interface. Use undo redirect enable to disable this function. Syntax redirect enable undo redirect enable Default The redirect function is disabled. Views User interface view Default command level 2: System level Usage guidelines This command is supported only on AUX user interfaces.
Related commands • telnet • display tcp status 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. Views User interface view Default command level 2: System level Parameters port-number: Specifies a port number in the range 2000 to 50000.
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 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.
# 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 aux 0 [Sysname-ui-aux0] 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.
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 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 # Set the idle timeout for redirected Telnet connections to 200 seconds. system-view [Sysname] user-interface aux 0 [Sysname-ui-aux0] 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 screen-length screen-length undo screen-length Default Up to 24 lines are displayed on a screen.
send { all | num1 | { aux | console | 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 for the num1 argument is 0 to 653. aux: Specifies an AUX user interface. console: Specifies a console user interface. vty: Specifies a VTY user interface. num2: Specifies the relative number of a user interface.
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. I will reboot the system in 3 minutes!^Z Send message? [Y/N]:y The message should appear on the screen of the user's configuration terminal.
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. Examples # Set the password for password authentication on user interface Console 0 to hello.
You cannot disable the terminal service on the user interface you are using. Examples # 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.
stopbits Use stopbits to specify the number of stop bits for a character. Use undo stopbits to restore the default. Syntax stopbits { 1 | 1.5 | 2 } undo stopbits Default One stop bit is used. Views User interface view Default command level 2: System level Parameters 1: Uses one stop bit. 1.5: Uses one and a half stop bits. 2: Uses two stop bits. Usage guidelines This command is only applicable to asynchronous serial interfaces, including AUX and console ports.
Parameters remote-host: Specifies the IPv4 address or host name of a remote host, a case-insensitive string of 1 to 20 characters. service-port: Specifies the TCP port number for the Telnet service on the remote host. It ranges from 0 to 65535 and defaults to 23. vpn-instance vpn-instance-name: Specifies the MPLS L3VPN that the remote host belongs to, where vpn-instance-name is a case-sensitive string of 1 to 31 characters. If the remote host is on the public network, do not specify this option.
Usage guidelines This command is not available in FIPS mode. The source IPv4 address or source interface specified by this command is applicable to all Telnet connections. However, if a user specifies a source IPv4 address or source interface when executing the telnet command, the setting specified by the user takes effect. Examples # Set the source IPv4 address for outgoing Telnet packets to 1.1.1.1 when the device serves as a Telnet client. system-view [Sysname] telnet client source ip 1.1.1.
telnet server enable Use telnet server enable to enable the Telnet server function. Use undo telnet server enable to disable the Telnet server function. Syntax telnet server enable undo telnet server enable Default The Telnet server function is disabled. Views System view Default command level 3: Manage level Usage guidelines This command is not available in FIPS mode. Examples # Enable the Telnet server function.
Usage guidelines The device supports two terminal display types: ANSI and VT100. HP recommends that you set the display type to VT100 on both the device and the configuration terminal. If either side uses the ANSI type, a display problem such as cursor positioning error might occur when a command line has more than 80 characters. Examples # Set the terminal display type to VT100.
display Display current system information ping Ping function quit Exit from current command view rsh Establish one RSH connection ssh2 Establish a secure shell client connection super Set the current user priority level telnet Establish one TELNET connection tracert Trace route function user-interface Use user-interface to enter user interface view.
system-view [Sysname] user-interface vty 0 4 [Sysname-ui-vty0-4] 49
FTP configuration commands The router 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. FTP is not supported in FIPS mode. FTP server commands display ftp-server Use display ftp-server to display the FTP server configuration and status information.
Table 7 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. If there is no packet exchange between the FTP server and client during this period, the FTP connection will be broken. Put Method File update method of the FTP server, fast or normal.
Table 8 Command output Field Description UserName Name of the user. HostIP IP address of the user. Port Port number of the user. Idle Duration time of the current FTP connection in minutes. HomeDir Authorized directory for the user. free ftp user Use free ftp user to manually release the FTP connection established by using a specific user account. Syntax free ftp user username Views User view Default command level 3: Manage level Parameters username: Username.
Views System view Default command level 3: Manage level Parameters ipv6: Specifies an IPv6 ACL to control access to the IPv6 FTP server. To specify an IPv4 ACL to control access to the IPv4 FTP server, do not specify this keyword. acl-number: Specifies the number of a basic ACL, in the range of 2000 to 2999. Usage guidelines You can use this command to permit FTP requests from specific FTP clients only.
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: Specifies the idle-timeout time, in the range of 1 to 35791 minutes. Usage guidelines If no packet is exchanged on an FTP connection within the idle-timeout time, the FTP connection is broken.
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, typically CF. 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.
[ftp] 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.
FTPC: File transfer started with the signal light turned on. FTPC: File transfer completed with the signal light turned off. .226 Transfer complete. FTP: 3304 byte(s) received in 4.889 second(s), 675.00 byte(s)/sec. [ftp] Table 9 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.
dir Use dir to display detailed information about the files and subdirectories under the current directory on the FTP server. Use dir remotefile to display detailed information about a specific file or directory on the FTP server. Use dir remotefile localfile to save detailed information about a specific file or directory on the FTP server to a local file.
[ftp] quit more aa.txt -rwxrwxrwx 1 noone nogroup 3077 Jun 20 15:34 ar-router.cfg disconnect Use disconnect to disconnect from the remote FTP server but remain in FTP client view. 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.
Examples # Display the source IP address configuration of the FTP client. display ftp client configuration The source IP address is 192.168.0.123 Related commands ftp client source ftp Use ftp to log in to an FTP server and enter FTP client view.
Press CTRL+K to abort Connected to 192.168.0.211. 220 FTP Server ready. User(192.168.0.211:(none)):abc 331 Password required for abc Password: 230 User logged in. [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.
# Use the primary IP address of interface GigabitEthernet 3/0/1 as the source IP address for outgoing FTP packets. system-view [Sysname] ftp client source interface gigabitethernet 3/0/1 Related commands display ftp client configuration ftp ipv6 Use ftp ipv6 to log in to an FTP server and enter FTP client view.
User(3000::200:(none)): MY_NAME 331 Please specify the password. Password: 230 Login successful. [ftp] # 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.
FTP: 3608 byte(s) received in 2.322 second(s), 1.00K byte(s)/sec. # In IRF mode, download file testcfg.cfg to the root directory of the storage medium on the global active MPU, and save it as newest.cfg. [ftp] get testcfg.cfg newest.cfg 227 Entering Passive Mode (192,168,1,46,4,47). 125 ASCII mode data connection already open, transfer starting for /testcfg.cfg. ..226 Transfer complete. FTP: 3608 byte(s) received in 2.050 second(s), 1.00K byte(s)/sec. # In IRF mode, download file testcfg.
Views FTP client view Default command level 3: Manage level Parameters remotefile: Filename or directory on the remote FTP server. localfile: Name of a local file used to save the displayed information. Usage guidelines The ls command displays only the names of files and directories on the FTP server. The dir command displays more information about the files and directories, such as the size and the creation date. Examples # List all files and subdirectories in the current directory of the FTP server.
logfile.log a.cfg mkdir Use mkdir to create a subdirectory in the current directory on the remote FTP server. Syntax mkdir directory Views FTP client view Default command level 3: Manage level Parameters directory: Name of the directory to be created. Usage guidelines You must have permissions to perform this operation on the FTP server. Examples # Create subdirectory mytest in the current directory of the remote FTP server. [ftp] mkdir mytest 257 "/mytest" new directory created.
If you have logged in to the IPv4 FTP server, you cannot use the open command to log in to another server. To do so, you must disconnect from the current server first. Examples # In FTP client view, log in to the FTP server at 192.168.1.50. ftp [ftp] open 192.168.1.50 Trying 192.168.1.50 ... Press CTRL+K to abort Connected to 192.168.1.50. 220 FTP service ready. User(192.168.1.50:(none)):aa 331 Password required for aa. Password: 230 User logged in.
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] Related commands close passive Use passive to set the FTP operation mode to passive. Use undo passive to set the FTP operation mode to active. Syntax passive undo passive Default The FTP operation mode is passive.
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 Parameters localfile: Name of the local file to be uploaded. remotefile: File name used after a file is uploaded and saved on the FTP server. Usage guidelines When a file is uploaded, it is saved in the user's authorized directory, which can be set with the authorization-attribute command on the remote server.
257 "/servertemp" is current directory. The output shows that you are accessing the servertemp folder in the FTP root directory. quit Use quit to disconnect the FTP client from the remote FTP server and exit to user view. Syntax quit Views FTP client view Default command level 3: Manage level Examples # Disconnect from the remote FTP server and exit to user view. [ftp] quit 221 Server closing.
MKD PWD LIST NLST SITE* SYST NOOP* XCUP XCWD XMKD XPWD XRMD STAT* HELP 214 Direct comments to HP company. # Display the help information for the user command. [ftp] remotehelp user 214 Syntax: USER . [ftp] Table 10 Command output Field Description USER Username. PASS Password. CWD Change the current working directory. CDUP Change to parent directory. SMNT* File structure setting. QUIT Quit. REIN* Re-initialization. PORT Port number. PASV Passive mode.
Field Description 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. Syntax: USER . Syntax of the user command: user (keyword) + space + username.
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.
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. [ftp] # Enable display of detailed prompt information. and perform a Get operation. [ftp] verbose FTP: verbose is on [ftp] get startup.
TFTP configuration commands The router 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. TFTP is not supported in FIPS mode. display tftp client configuration Use display tftp client configuration to display source IP address configuration of the TFTP client.
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. Views System view Default command level 3: Manage level Parameters ipv6: References an IPv6 ACL. If it is not specified, an IPv4 ACL is referenced. acl-number: Number of a basic ACL, in the range of 2000 to 2999. Usage guidelines You can use an ACL to deny or permit the device's access to a specific TFTP server.
Parameters server-address: IP address or host name of a TFTP server. get: Downloads a file in normal mode. put: Uploads a file. sget: Downloads a file in secure mode. source-filename: Source file name. destination-filename: Destination file name. If this argument is not specified, the file uses the source file name, and is saved in the directory where the user performed the TFTP operation. vpn-instance vpn-instance-name: Specifies the MPLS L3VPN where the TFTP server belongs.
// Download the file from the TFTP server to the root directory of the CF card on the global active MPU of the IRF fabric. tftp 192.168.1.26 get newest.bin chassis2#slot1#cfa0:/startup.bin File will be transferred in binary mode Downloading file from remote TFTP server, please wait...| TFTP: 2737556 bytes received in 14 second(s) File downloaded successfully. // Download the file from the TFTP server to the root directory of the CF card on the standby MPU of the IRF fabric.
[Sysname] tftp client source ip 2.2.2.2 # Use the primary IP address of interface GigabitEthernet 3/0/1 as the source IP address for outgoing TFTP packets. system-view [Sysname] tftp client source interface gigabitethernet 3/0/1 [Sysname] 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.
File system management commands In the following examples, the current working directory is the root directory of the storage medium on the device, and the slot numbers for active and standby MPUs are for illustration only. For information about the qualified file name formats, see Fundamentals Configuration Guide. cd Use cd to change the current working directory. Syntax cd { directory | ..
copy Use copy to copy a file. Syntax copy fileurl-source fileurl-dest Views User view Default command level 3: Manage level Parameters fileurl-source: Name of the source file. fileurl-dest: Name of the target file or folder. Usage guidelines If you specify a target folder, the system will copy the file to the specified folder and use the name of the source file as the file name. Examples # In standalone mode, copy the configuration file of the active MPU to the root directory of the standby MPU.
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. For example, you can use this command to calculate the digest of a software image file and compare it with that provided on the HP website to verify whether the file has been tampered with. Examples # Use the SHA-256 algorithm to calculate the digest of file cc.bin. crypto-digest sha256 file cc.
• Method 1 delete slot1#cfa0:/tt.cfg Delete slot1#cfa0:/hmr.cfg?[Y/N]:y %Delete file slot1#cfa0:/tt.cfg...Done. • Method 2 cd slot1#cfa0:/ delete tt.cfg Delete slot1#cfa0:/tt.cfg?[Y/N]:y %Delete file slot1#cfa0:/tt.cfg...Done. # In IRF mode, remove file tt.cfg from the root directory of the CF card on the active MPU of the IRF fabric. delete tt.cfg . Delete cfa0:/tt.cfg?[Y/N]:y . %Delete file cfa0:/tt.cfg...Done. # In IRF mode, remove file tt.
/all-filesystems: Displays files and folders in the root directories of all storage media on the device. Usage guidelines If no parameter is specified, the command displays all visible files and folders in the current directory. Examples # In standalone mode, display information about all files and folders in the storage medium of the active MPU. dir /all Directory of cfa0:/ 0 drw- - Mar 02 2011 15:48:28 logfile 1 -rw- 33 Oct 24 2011 14:30:50 system.
505480 KB total (468440 KB free) File system type of slot1#cfa0: FAT32 # In standalone mode, display information about all files and folders in the storage medium of the standby MPU (in slot 1). cd slot1#cfa0:/ dir /all Directory of slot1#cfa0:/ 0 -rw- 392 Nov 09 2007 19:43:19 manuinfo.txt 1 2 -rwh 4 Sep 18 2008 11:32:39 snmpboots -rwh 428 Sep 22 2008 14:42:01 private-data.txt 3 -rw- 28802056 Sep 22 2008 11:52:09 startup.
6 -rw- 302515 Dec 09 2010 15:18:09 default.diag 2540 KB total (438 KB free) Directory of chassis1#slot1#cfa0:/ 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.log 6 -rw- 302515 Dec 09 2010 15:18:09 default.
31496 KB total (1839 KB free) Table 11 Command output Field Description Directory of Current working directory. d Directory. This field does not exist for a file. r The file or directory is readable. w The file or directory is writable. h The file or directory is hidden. [] The file is in the recycle bin. execute Use execute to execute the specified batch file.
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.
fixdisk cfa0: %Fixdisk cfa0: 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: Name of a storage medium, for example, 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 the Flash memory. FAT32: Formats a storage medium using the FAT32 format.
To use this command to create a folder, the specified directory must exist. For example, to create folder cfa0:/test/mytest, the test folder must exist. Otherwise, you will fail to create the mytest folder. Examples # In standalone mode, create folder test on the standby MPU (in slot 1). mkdir slot1#cfa0:/test .... %Created dir slot1#cfa0:/test. # In IRF mode, create folder test on the active MPU of the IRF fabric. mkdir test .... %Created dir cfa0:/test1.
Examples # In standalone mode, display the contents of file testcfg.cfg on the standby MPU. more slot1#cfa0:/testcfg.cfg # version 5.20, Release 0000 # sysname Test # ---- More ---- # In IRF mode, display the contents of file testcfg.cfg on the active MPU of the IRF fabric. more testcfg.cfg # version 5.20, Release 0000 # sysname Sysname # ---- More ---- # In IRF mode, display the contents of file testcfg.cfg on the standby MPU that resides in slot 1 of member device 2.
Usage guidelines 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. When a storage medium is connected to a lower version system, the system might not be able to recognize the device automatically, in which case you must use the mount command for the storage medium to function correctly.
Usage guidelines If you specify a target folder, the system moves the source file to the specified folder, without changing the file name. You cannot move files between storage media of different types. Examples # Move file cfa0:/test/sample.txt to cfa0:/, and save it as 1.txt. move test/sample.txt 1.txt Move cfa0:/test/sample.txt to cfa0:/1.txt?[Y/N]:y ... % Moved file cfa0:/test/sample.txt to cfa0:/1.txt # Move file b.cfg to the subfolder test2. move b.cfg test2 Move cfa0:/b.
fileurl-dest: Name of the target file or folder. Examples # Rename file sample.txt as sample.bat. rename sample.txt sample.bat Rename cfa0:/sample.txt to cfa0:/sample.bat? [Y/N]:y % Renamed file cfa0:/sample.txt to cfa0:/sample.bat reset recycle-bin Use reset recycle-bin to permanently delete the files in the recycle bin in the current directory.
14605 KB total (6730 KB free) //The output shows that the current directory is cfa0:, and there are two files a.cfg and b.cfg in the recycle bin. 2. Delete file b.cfg in the current directory and in the recycle bin. reset recycle-bin Clear cfa0:/~/a.cfg ?[Y/N]:n Clear cfa0:/~/b.cfg ?[Y/N]:y Clearing files from cfa0 may take a long time. Please wait... ...... %Cleared file cfa0:/~/b.cfg... 3. In directory cfa0:, check in the recycle bin whether the file b.cfg is deleted.
rmdir Use rmdir to remove a folder. Syntax rmdir directory Views User view Default command level 3: Manage level 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.
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.
Usage guidelines If another file with the same name exists in the same path, the system prompts you on whether to overwrite the original file. Examples # Restore file a.cfg in directory cfa0: from the recycle bin. undelete a.cfg Undelete cfa0:/a.cfg?[Y/N]:y ..... %Undeleted file cfa0:/a.cfg. # Restore file b.cfg in directory cfa0:/test from the recycle bin. undelete cfa0:/test/b.cfg Undelete cfa0:/test/b.cfg?[Y/N]:y ....... %Undeleted file cfa0:/test/b.cfg.
Configuration file management commands The router 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 MPU slot number in this document is for reference only. backup startup-configuration Use backup startup-configuration to back up the next-startup configuration file to a TFTP server.
Syntax display current-configuration [ configuration [ configuration ] | controller [ interface-type [ interface-number ] ] | interface [ interface-type [ interface-number ] ] | exclude modules ] [ by-linenum ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 2: System level Parameters configuration [ configuration ]: Displays feature configuration. The configuration argument specifies a feature module.
controller E1 6/0 # controller E1 6/1 pri-set # controller E1 6/2 pri-set # controller E1 6/3 using e1 # return # Display the configuration from the line containing "user-interface" to the last line in the running configuration. display current-configuration | begin user-interface user-interface con 0 user-interface aux 0 user-interface vty 0 4 authentication-mode none user privilege level 3 # return # Display the running SNMP configuration.
Parameters by-linenum: Identifies each line of displayed information with a line 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. include: Displays all lines that match the specified regular expression.
1: # 2: 3: version 5.
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 Current startup configuration file is the configuration file used at this startup. Next-startup configuration file is the configuration file used at the next startup. In standalone mode, the standby MPU always maintains the same current startup configuration file as the active MPU.
Field Description Slot n Displays the startup configuration files on the standby MPU in slot n. 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.
# 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.
Please wait ... .. MainBoard: Configuration file is cleared. Slot 1: Erase next configuration file successfully # In IRF mode, delete the backup next-startup configuration file. reset saved-configuration backup The saved configuration file will be erased. Are you sure? [Y/N]:y Configuration file in cfa0 is being cleared. Please wait ... .. MainBoard: Configuration file is cleared.
If the directory has a configuration file with the same name as the restored configuration file, the restored configuration file will overwrite that configuration file. Examples # In standalone mode, download the configuration file config.cfg from the TFTP server at 2.2.2.2, and specify the file as the main next-startup configuration file. restore startup-configuration from 2.2.2.2 config.cfg Restore next startup-configuration file from 2.2.2.2. Please wait...
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. If a reboot or power failure occurs during the save operation, the next-startup configuration file is still retained.
Validating file. Please wait..................... The current configuration is saved to the active main board successfully. Slot 1: The current configuration file is saved successfully. Configuration is saved to device successfully. display startup MainBoard: Current startup saved-configuration file: cfa0:/startup.cfg Next main startup saved-configuration file: cfa0:/vrpcfg.cfg Next backup startup saved-configuration file: NULL Slot 1: Current startup saved-configuration file: cfa0:/startup.
Please input the file name(*.cfg)[cfa0:/config.cfg] (To leave the existing filename unchanged, press the enter key): Cfa0:/config.cfg exists, overwrite? [Y/N]:y The configuration file cfa0:/config.cfg will be automatically backed up as cfa0:/_config_bak.cfg for a future version downgrading. Validating file. Please wait..................... The current configuration is saved to the active main board successfully. Slot 1: Backup failed. Failed to back up configuration file.
• Method 2 save chassis2#slot1#cfa0:/test.cfg # Save the running configuration to the main next-startup configuration file without any confirmation required. save force Validating file. Please wait....................... The current configuration is saved to the active main board successfully. Chassis 1 Slot 1: The current configuration file is saved successfully. Configuration is saved to device successfully.
[Sysname] slave auto-update config startup saved-configuration In standalone mode: Use startup saved-configuration to specify the configuration file to be used at the next startup for both active MPU and standby MPU. Use undo startup saved-configuration to configure the active MPU and the standby MPU to start up with the factory defaults at the next startup. In IRF mode: Use startup saved-configuration to specify the configuration file to be used at the next startup for all MPUs in an IRF fabric.
You can also specify a configuration file as the startup configuration file to be used at the next startup when you use the save command save the running configuration to it. Examples # In standalone mode, specify a next-startup configuration file. startup saved-configuration testcfg.cfg Please wait ... Setting the master board .......... ... Done! Setting the slave board ... Slot 1: Set next configuration file successful # In IRF mode, specify a next-startup configuration file.
Software upgrade commands The router 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 MPU slot number in this document is for reference only. boot-loader Use boot-loader to specify a startup system software image for an MPU.
MPU role Identification format Example Remarks • chassis-number: All MPUs but the global active MPU in IRF mode • chassischassis-number#slotslot-number #StorageMediumName chassis2#slot1#cfa 0 Represents the IRF member ID. • slot-number: Represents the slot number of the MPU. The file-name argument specifies the file name, which typically uses the .bin extension. slot slot-number: Specifies an MPU by its slot number. The slot-number argument represents the slot number of the MPU.
This command will set the boot file of the specified board. Continue? [Y/N]:y The specified file will be used as the main boot file at the next reboot on slot 1! In IRF mode: # Specify test.bin as the main startup system software image file for the global active MPU (slot 0 on IRF member 1). This example assumes that this file has been saved in the root directory of the storage medium on the MPU. boot-loader file test.
display boot-loader Use display boot-loader to display system software image information, including the current system software image and the startup system software images.
Table 14 Command output Field Description Master Board Active MPU. The boot file used this time System software image that has been loaded. Attributes of a system software image: • main—The device always attempts to load this image at startup. • backup—The device attempts to load this image is the main attribute image is not available or has been corrupted. • secure—The device attempts to load this image if neither a main or backup image is available or can be used.
Syntax display patch [ | { 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. 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 In standalone mode: # Display hotfix information.
patch active Use patch active to activate patches. Syntax In standalone mode: patch active [ patch-number ] slot slot-number In IRF mode: patch active [ patch-number ] chassis chassis-number slot slot-number Views System view Default command level 3: Manage level Parameters patch-number: Specifies the sequence number of a patch, in the range of 1 to 200. If no sequence number is specified, this command validates all DEACTIVE patches.
patch deactive Use patch deactive to stop running patches. Syntax In standalone mode: patch deactive [ patch-number ] slot slot-number In IRF mode: patch deactive [ patch-number ] chassis chassis-number slot slot-number Views System view Default command level 3: Manage level Parameters patch-number: Specifies the sequence number of a patch, in the range of 1 to 200. If no sequence number is specified, this command deactivates all ACTIVE patches.
Syntax In standalone mode: patch delete [ patch-number ] slot slot-number In IRF mode: patch delete [ patch-number ] chassis chassis-number slot slot-number Views System view Default command level 3: Manage level Parameters patch-number: Specifies the sequence number of a patch, in the range of 1 to 200. If no sequence number is specified, this command removes all patches in the patch memory area. If a sequence number is specified, this command removes the specified patch and all its subsequent patches.
Syntax patch install { patch-location | file patch-package } 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 a storage medium. file patch-package: Specifies a patch package file. Usage guidelines IMPORTANT: If you have installed patches before executing this command to install a patch package, uninstall the patches first.
Do you want to continue running patches after reboot? [Y/N]:y Installing patches… Installation completed, and patches will continue to run after reboot. [Sysname] patch load Use patch load to load patches from a storage medium to the patch memory area. Syntax In standalone mode: patch load slot slot-number [ file patch-package ] In IRF mode: patch load chassis chassis-number slot slot-number [ file patch-package ] Default The router loads patches from the cfa0:/ directory.
# Load patches from a patch file for the card in slot 3 on IRF member 1. system-view [Sysname] patch load chassis 1 slot 3 # Load patches from a patch package file for the card in slot 3 on IRF member 1. system-view [Sysname] patch load chassis 1 slot 3 file flash:/patchpackege.bin patch location Use patch location to configure the patch loading location. Syntax patch location patch-location Default The patch loading location is cfa0:.
patch run [ patch-number ] [ slot slot-number ] In IRF mode: patch run [ patch-number ] [ chassis chassis-number slot slot-number ] Views System view Default command level 3: Manage level Parameters patch-number: Specifies the sequence number of a patch, in the range of 1 to 200. If no sequence number is specified, this command confirms all ACTIVE patches (including ACTIVE patches for auxiliary CPUs) and changes their state to RUNNING.
Device management commands Many types of storage media are available, such as CF card and USB disk. Different devices support different types of storage media. The examples in this command use CF cards. The slot numbers of the active and standby MPUs in the examples are for illustration only. card-mode Use card-mode to set the working mode of an interface card.
Examples # In standalone mode, set E3 as the working mode of interface card 1 in slot 2. system-view [Sysname] card-mode slot 2 subslot 1 e3 Info: Please reboot or hot-swap the board or card (if supported) to make the configuration take effect. # In IRF mode, set E3 as the working mode of interface card 1 in slot 2 on member device 1.
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. Use undo clock summer-time to cancel the configuration of the daylight saving time. Syntax clock summer-time zone-name one-off start-time start-date end-time end-date add-time undo clock summer-time Default Daylight saving time is disabled and the UTC time zone applies.
• 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. Syntax clock summer-time zone-name repeating start-time start-date end-time end-date add-time undo clock summer-time Default Daylight saving time is disabled and UTC time zone applies.
Usage guidelines The interval between start-time start-date and end-time end-date must be longer than 1 day and shorter than 1 year. If the current system time is in the specified daylight saving days, the add-time value automatically adds to the system time. 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.
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 5 hours to UTC time. system-view [Sysname] clock timezone z5 add 5 Related commands • clock datetime • clock summer-time one-off • clock summer-time repeating • display clock configure-user count Use configure-user count to configure the maximum number of users allowed to enter system view at the same time.
copyright-info enable Use copyright-info enable to enable displaying the copyright statement. Use undo copyright-info enable to disable displaying the copyright statement. Syntax copyright-info enable undo copyright-info enable Default This feature is enabled. Views System view Default command level 3: Manage level Examples # Enable displaying the copyright statement.
User interface con0 is available. Please press ENTER. display alarm Use display alarm to display alarm information. Syntax In standalone mode: display alarm [ slot slot-number ] [ | { begin | exclude | include } regular-expression ] In IRF mode: display alarm [ chassis chassis-number slot slot-number ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 2: Monitor level Parameters slot slot-number: Displays alarms existing on the specified card.
display alarm Chassis Slot Level Info 1 6 ERROR Fan 2 is absent. 1 6 ERROR Power 2 is absent. 1 6 ERROR The board in slot 10 is faulty. 2 3 WARNING The temperature of sensor 3 exceeds the lower limit. display clock Use display clock to display the system time and date. Syntax display clock [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression.
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. 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.
Field Description + User interface that is being used. : User-interface is active. F : User-interface is active and work in async mode. User interface that is being used and operating in asynchronous mode. Related commands configure-user count display copyright Use display copyright to display the software and hardware copyright statements.
display cpu-usage entry-number [ offset ] [ verbose ] [ slot slot-number [ cpu cpu-number ] ] [ from-device ] In IRF mode: display cpu-usage [ chassis chassis-number slot slot-number ] [ | { begin | exclude | include } regular-expression ] display cpu-usage entry-number [ offset ] [ verbose ] [ chassis chassis-number slot slot-number ] [ from-device ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters entry-number: Number of entries to
Usage guidelines The system regularly (typically at 60-second intervals) collects CPU usage statistics and saves the statistical results in the history record area. The display cpu-usage entry-number command displays entry-number latest records, starting from the latest record. The display cpu-usage entry-number offset command displays number latest records, starting from the last (offset+1)th record. Examples # # In standalone mode, display the current CPU usage statistics.
6% in last 5 minutes Chassis 2 Slot 0 CPU usage: 6% in last 5 seconds 6% in last 1 minute 6% in last 5 minutes Chassis 2 Slot 1 CPU usage: 6% in last 5 seconds 6% in last 1 minute 6% in last 5 minutes Chassis 2 Slot 2 CPU usage: 7% in last 5 seconds 6% in last 1 minute 6% in last 5 minutes Table 19 Command output Field Description 1% in last 5 seconds After a boot, the system calculates and records the average CPU usage rate every 5 seconds.
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 1 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.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines This command displays the historical CPU usage statistics for the active MPU if no argument is provided. The system regularly collects CPU usage statistics and saves the statistics in the history record area. The display cpu-usage history command displays the CPU usage statistics for the last 60 minutes in axes, where: • The vertical axis represents the CPU usage.
• 10%: 18 minutes ago • 5%: 19 minutes ago • 2% or lower than 2%: other time # Display the historical CPU usage statistics for task 6.
Parameters configuration [ configuration ]: Displays non-interface configuration. The configuration argument specifies a type of configuration. If no configuration type is specified, this command displays all non-interface settings. If a type of configuration is specified, this command displays the specific configuration. For example: • isis: Displays the ISIS configuration. • isp: Displays the ISP configuration. • post-system: Displays the post system configuration.
# controller E1 6/2 pri-set # controller E1 6/3 using e1 # return # Display the configuration from the line containing "user-interface" to the last line in the running configuration. display current-configuration | begin user-interface user-interface con 0 user-interface aux 0 user-interface vty 0 4 authentication-mode none user privilege level 3 # return # Display the running SNMP configuration.
Default command level 2: System level Parameters cf-card: Displays CF card information. usb: Displays USB interface–connected device information. chassis chassis-number: This option is reserved for future use and the chassis number is always 0. (In standalone mode.) chassis chassis-number: Displays information about an IRF member device. The chassis-number argument represents the IRF member ID of the device.
Field Description Card status: • • • • • Status Slave—The card is a standby MPU. Master—The card is an active MPU. Absent—No card is in the slot. Fault—Error occurred, and the card cannot start correctly. Normal—The card is an interface card and is operating correctly. Primary Whether the card is an active MPU or standby MPU. For a non-MPU card, the value of this field is N/A. Subslots Maximum number of subcards that a card supports. # In IRF mode, display information about the current IRF fabric.
Field Description Patch Ver Version of the patch running on a card. If no patch is on the card, None is displayed. display device manuinfo Use display device manuinfo to display the electronic label data for the device.
Examples # In standalone mode, display electrical label information. display device manuinfo Slot 0: DEVICE_NAME : RT-RSE-X2 DEVICE_SERIAL_NUMBER : 210231A73SA07B000108 MAC_ADDRESS : 000F-E26A-58ED MANUFACTURING_DATE : 2012-11-9 VENDOR_NAME : HP Slot 1: # In IRF mode, display electrical label information.
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)[cfa0:/default.diag]:aa.diag Diagnostic information is outputting to cfa0:/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.
Temperature information (degree centigrade): ---------------------------------------------------SlotNo Temperature Lower limit Upper limit 0 30 0 80 1 32 0 80 2 38 0 80 # In IRF mode, display temperature information.
display fan Fan 1 State: Normal # In IRF mode, display the operating states of all fans. display fan Chassis 1: Fan 1 State: Normal Chassis 2: Fan 1 State: Normal display job Use display job to display information about scheduled jobs configured by using the job command.
Field Description Specified view View containing the commands in the job. Time timeID Execution time of each command in the job. Execute command Command string. Related commands • job • time • view display memory Use display memory to display memory usage statistics.
Usage guidelines In standalone mode: • If no card is specified, this command displays the memory usage statistics for the active MPU. • If no CPU is specified, this command displays the memory usage statistics for the main CPU. In IRF mode: • If no IRF member device is specified, this command displays the memory usage statistics for the active MPU of the master. • If no CPU is specified, this command displays the memory usage statistics for the main CPU. Examples # Display memory usage statistics.
power-id: Displays information about the specified power supply, where power-id represents the power supply number. Without this argument, the command displays information about all power supplies. |: 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. Usage guidelines The power supply information includes the following: • Power supply type, rated input voltage and rated output power. • Number of redundant power supplies and the available, redundant, used, remaining power of each module.
chassis chassis-number slot slot-number: Displays the mode of the last reboot for an IRF member device. The chassis-number argument represents the IRF member ID of the device, and the slot-number argument represents the number of the slot where the card resides. (In IRF mode.) subslot subslot-number: Displays the mode of the last reboot for a subcard. The subslot-number represents the subslot number of a subcard. |: Filters command output by specifying a regular expression.
Examples # Display the configuration of the job configured by using the schedule job command. display schedule job Specified command: execute 1.bat Specified view: system view Executed time: at 12:00 10/31/2007 (in 0 hours and 16 minutes) If you change the system time within 16 minutes after you execute the schedule job command, the scheduled task becomes invalid. Then, if you execute the display schedule job command again, the command output is blank.
Related commands • schedule reboot at • schedule reboot delay display system-failure In standalone mode, use display system-failure to display the exception handling method for the active MPU and standby MPU. In IRF mode, use display system-failure to display the exception handling method for all IRF member devices.
Parameters controller [ controller-type controller-number ]: Displays the key parameters of 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 key parameters for the transceiver modules in all controller interfaces. interface [ interface-type interface-number ]: Displays the key parameters of the transceiver module in an interface.
Field Description Transfer Distance(xx) Transfer distance, with xx representing km for single-mode transceiver modules and m for other transceiver modules. If the transceiver module supports multiple transfer media, every two transfer distance values are separated by a comma. The corresponding transfer medium is included in the bracket following the transfer distance value. The following are the supported transfer media: • • • • • 9 um—9/125 um single-mode fiber. 50 um—50/125 um multi-mode fiber. 62.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines If no error occurs, None is displayed. Table 26 describes the transceiver module alarms that might occur. Table 26 Common transceiver module alarms Field Remarks SFP RX loss of signal Incoming (RX) signal is lost. RX power high Incoming (RX) power is high. RX power low Incoming (RX) power is low. TX fault Transmit (TX) fault. TX bias high TX bias current is high.
Field Remarks Module not ready Module is not ready. APD supply fault APD (Avalanche Photo Diode) supply fault. TEC fault TEC (Thermoelectric Cooler) fault. Wavelength unlocked Wavelength of optical signal exceeds the manufacturer's tolerance. Temp high Temperature is high. 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.
Parameters controller [ controller-type controller-number ]: Displays the current measured values of the digital diagnosis parameters 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 current measured values of the digital diagnosis parameters for transceiver modules in all controller interfaces.
display transceiver manuinfo Use display transceiver manuinfo to display the electronic label data for transceiver modules.
Field Description Vendor Name Vendor name of the transceiver module. display version Use display version to display system version information, including the system software version, chassis model, and basic MPU and interface card data. Syntax display version [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression.
[FIXED PORT] MGE0/0/0 (Hardware)Ver.B, (Driver)1.0, (Cpld)1.0 Slot 2: FIP-600 uptime is 0 week, 0 day, 1 hour, 4 minutes CPU type: FREESCALE P4080 1500MHz 4096M bytes DDR3 SDRAM Memory 8M bytes Flash Memory 128K bytes NVRAM PCB Version: Ver.B Logic Version: 139.0 Basic BootWare Version: 1.09 Extend BootWare Version: 1.09 [FIXED PORT] GE2/0/0 (Hardware)Ver.A, (Driver)1.0, (Cpld)1.0 [FIXED PORT] GE2/0/1 (Hardware)Ver.A, (Driver)1.0, (Cpld)1.0 (Driver)1.0, (Cpld)2.
Parameters incoming: Configures the banner displayed before a Modem dial-in user accesses user view. legal: Configures the banner displayed before a user inputs the username and password to access the CLI. login: Configures the banner displayed before password or scheme authentication is performed for a login user. motd: Configures the greeting banner displayed before the legal banner appears. shell: Configures the banner displayed before a non-Modem dial-in user accesses user view.
Welcome to motd(header motd) Welcome to shell(header shell) # Verify the configuration by using Telnet. (Password authentication is configured.) ****************************************************************************** * Copyright (c) 2012 Hewlett-Packard Development Company, L.P. * * Without the owner's prior written consent, * * no decompiling or reverse-engineering shall be allowed.
You can use the job command to create multiple jobs. Examples # Create the job saveconfiguration or enter its view. system-view [Sysname] job saveconfiguration [Sysname-job-saveconfiguration] Related commands • time • view password-recovery enable Use password-recovery enable to enable password recovery capability. Use undo password-recovery enable to disable password recovery capability.
Use undo power-supply policy priority to restore the default. Syntax In standalone mode: power-supply policy priority priority slot slot-number undo power-supply policy priority slot slot-number In IRF mode: power-supply policy priority priority chassis chassis-number slot slot-number undo power-supply policy priority chassis chassis-number slot slot-number Default The power supply priority of a card is 2.
reboot [ chassis chassis-number [ slot slot-number [ subslot subslot-number ] ] ] Views User view Default command level 3: Manage level Parameters slot slot-number: Specifies the slot number of a card. If you do not specify this option, this command reboots all cards. (In standalone mode.) chassis chassis-number: Specifies an IRF member device by its chassis number. If no IRF member device is specified, this command reboots all IRF member devices. (In IRF mode.
Parameters slot slot-number: Specifies the slot number of a card. subslot subslot-number: Specifies the subslot number of a subcard. It you do not specify this option, this command unmounts the card. Usage guidelines Unmounting a card or subcard stops the services provided on the card or subcard. Interfaces on an unmounted subcard are unconfigurable and cannot be used. After you use the undo remove command to mount a subcard back, a configuration restoration process occurs.
schedule job Use schedule job to schedule a job by using the non-modular method. Use undo schedule job to remove the scheduled job. Syntax schedule job { at time1 [ date ] | delay time2 } view view-name command undo schedule job Views User view Default command level 3: Manage level Parameters at time1 [ date ]: Specifies the time and/or date to execute a command. • time1: Sets time to execute the command, in the hh:mm format.
• If you specify both the time1 and date arguments, the execution time or date must be later than the current system time or date. • If you specify the time1 argument, but not the date argument: { When time1 is earlier than the current system time, the command runs at time1 the next day. { When time1 is later than the current system time, the command runs at time1 of the current day. • The interval between the scheduled time and the current system time cannot exceed 720 hours, or 30 days.
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. date: Specifies a reboot date, in the MM/DD/YYYY or YYYY/MM/DD format. The YYYY value is in the range of 2000 to 2035, the MM value is in the range of 1 to 12, and the DD value is in the range of 1 to 31. Usage guidelines CAUTION: • Device reboot can interrupt network services. • Changing any clock setting can cancel the reboot schedule.
undo schedule reboot Default The scheduled reboot function is disabled. Views User view Default command level 3: Manage level Parameters hh:mm: Specifies a delay for the device reboot, 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 cannot be more than 0. mm: Specifies a delay for the device reboot in minutes, in the range of 0 to 43200.
Use undo shutdown-interval to restore the default. Syntax shutdown-interval time undo shutdown-interval Default The port status detection timer is 30 seconds. Views System view Default command level 2: System level Parameters time: Specifies the port status detection timer in seconds, in the range of 0 to 300. Usage guidelines Some protocols might shut down ports under specific circumstances. For example, MSTP shuts down a BPDU guard–enabled port when the port receives a BPDU.
Views System view Default command level 2: System level Parameters sysname: Name of the device, a string of 1 to 30 characters. Usage guidelines A device name identifies a device in a network and works as the user view prompt at the CLI. For example, if the device name is Sysname, the user view prompt is . Examples # Set the name of the device to R2000. system-view [Sysname] sysname R2000 [R2000] system-failure Use system-failure to configure the exception handling method for MPUs.
Examples # Set the exception handling method to reboot. system-view [Sysname] system-failure reboot time at Use time at to add a command to run at a specific time and date in the job schedule. Use undo time to remove a command from the job schedule.
The time ID (time-id) must be unique in a job. If two time and command bindings have the same time ID, the binding configured most recently takes effect. Changing a clock setting does not affect the schedule set by using the time at command. Use Table 30 when you add commands in a job. Table 30 Command schedule options Command Description time timeid at time date command command Schedules a command to run at a specific time and date. The time or date must be later than the current system time or date.
# Schedule a job to save the configuration file at 8:00 AM on 5th every month. system-view [Sysname] job saveconfig [Sysname-job-saveconfig] view monitor [Sysname-job-saveconfig] time 1 repeating at 8:00 month-date 5 command save a.cfg # Schedule a job to save the configuration file at 8:00 AM on Friday and Saturday in the current week, which might be delayed to the next week if the time has passed.
command command: Specifies the command to be automatically executed, in the text format. The specified command must be a complete command without interactive input. Usage guidelines The commands in a scheduled job must be in the same view. Every job can have up to 10 commands. The time ID (time-id) must be unique in a job. If two time and command bindings have the same time ID, the binding configured most recently takes effect.
Syntax transceiver phony-alarm-disable undo transceiver phony-alarm-disable Default Alarm traps are enabled for transceiver modules. Views System view Default command level 3: Manage level Usage guidelines If you install a transceiver module whose vendor name is not HP, the system repeatedly outputs traps and logs to notify you to replace the module.
Enter a view name in its complete form and make sure the view name is available on the device. Most commonly used view names include monitor for user view, system for system view, GigabitEthernetx/x for Ethernet interface view, and Vlan-interfacex for VLAN interface view. Examples # Specify system view for the job creatvlan. system-view [Sysname] job creatvlan [Sysname-job-creatvlan] view system Related commands • job • time usb disable Use usb disable to disable all USB interfaces.
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 ABCDEFGHIJLMOPQRSTUVW dir,86 A dir,61 acl (user interface view),13 disconnect,62 activation-key,14 display alarm,139 ascii,55 display boot-loader,121 authentication-mode,16 display clipboard,3 auto-execute command,17 display clock,140 B display command-alias,4 backup startup-configuration,102 display configure-user,140 binary,56 display copyright,142 boot-loader,118 display cpu-usage,142 boot-loader update slot,120 display cpu-usage history,146 bye,56 display current-configurat
display this,108 M display transceiver,164 mkdir,69 display transceiver alarm,166 mkdir,92 display transceiver diagnosis,168 more,93 display transceiver manuinfo,170 mount,94 display user-interface,21 move,95 display users,23 O display version,171 open,69 Documents,191 open ipv6,70 E P escape-key,24 parity,31 execute,90 passive,71 F password-recovery enable,175 file prompt,91 patch active,125 fixdisk,91 patch deactive,126 flow-control,25 patch delete,126 format,92 patch inst
reset saved-configuration,109 T reset unused porttag,178 telnet,43 restore startup-configuration,110 telnet client source,44 return,8 telnet ipv6,45 rmdir,99 telnet server enable,46 rmdir,75 terminal type,46 S tftp,79 save,111 tftp client source,81 tftp ipv6,82 schedule job,179 tftp-server acl,78 schedule reboot at,180 time at,185 schedule reboot delay,181 time delay,187 screen-length,38 screen-length disable,8 transceiver phony-alarm-disable,188 send,38 U set authentication passwo