HP FlexFabric 11900 Switch Series Fundamentals Command Reference Part number: 5998-4073 Software version: Release 2105 and later Document version: 6W100-20130515
Legal and notice information © Copyright 2013 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 commands ···················································································································································· 1 command-alias enable ············································································································································· 1 command-alias mapping ········································································································································· 1 displa
user-role ·································································································································································· 38 RBAC commands ······················································································································································· 39 description ··························································································································································
open ········································································································································································ 87 passive ···································································································································································· 88 put ···························································································································································
startup saved-configuration ································································································································ 135 Software upgrade commands ································································································································ 137 boot-loader file····················································································································································· 137 boot-loader update ··
display device manuinfo ····································································································································· 209 display device manuinfo chassis-only ··············································································································· 212 display device manuinfo fan ······························································································································ 213 display device manuinfo power ········
Documents ···························································································································································· 258 Websites······························································································································································· 258 Conventions ·····························································································································································
Basic CLI 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 Predefined user roles network-admin Usage guidelines To make configured aliases take effect, enable the command keyword alias function.
Views System view Predefined user roles network-admin Parameters cmdkey: Specifies the first keyword of a non-undo command or the second keyword of an undo command, a string of 1 to 64 characters. You must enter the keyword in its complete form. alias: Specifies an alias for the keyword, a string of 1 to 20 characters. It must be different from the first keyword of any non-undo command and the second keyword of any undo command.
include: Displays all lines matching the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines Use the | { begin | exclude | include } regular-expression option with a display command to filter the command output. For more information about regular expressions, see Fundamentals Configuration Guide. Examples # Display the lines that contain "vlan" in the running configuration.
display > Use display > to save the output from a display command to a separate file. Syntax display command > filename Views Any view Predefined user roles network-admin network-operator Parameters command: Specifies the keywords and arguments of a display command. To display available keywords and arguments, enter display ?. filename: Specifies the name of the file that is used to save the output. Usage guidelines The display commands show the configuration, statistics, and states of the device.
Predefined user roles network-admin network-operator Parameters command: Specifies the keywords and arguments of a display command. To display available keywords and arguments, enter display ?. filename: Specifies the name of the file that is used to save the output. Usage guidelines The display commands show the configuration, statistics, and states of the device. You can use display >> to save the output from a display command for management purposes.
Views Any view Predefined user roles network-admin network-operator Examples # Display command keyword alias information. display command-alias Command alias is enabled Index Alias Command key 1 ping1 ping 2 ssh1 ssh Related commands • command-alias enable • command-alias mapping display history-command Use display history-command to display all commands that are saved in the command history buffer for your current CLI session.
Related commands history-command max-size display history-command all Use display history-command all to display all commands saved in the command history buffer for all CLI sessions. Syntax display history-command all Views Any view Predefined user roles network-admin network-operator Usage guidelines The system automatically saves commands successfully executed by users to the command history buffer for all CLI sessions. Users can view them and execute them again.
Examples # Display hotkey information. display hotkey ----------------- Hotkeys -----------------Defined command hotkeysCTRL_G display current-configuration CTRL_L display ip routing-table CTRL_O undo debugging all -Undefined command hotkeysCTRL_T NULL CTRL_U NULL -System-reserved hotkeysCTRL_A Move the cursor to the beginning of the line. CTRL_B Move the cursor one character to the left. CTRL_C Stop the current command. CTRL_D Erase the character at the cursor.
Syntax hotkey { CTRL_G | CTRL_L | CTRL_O | CTRL_T | CTRL_U } command 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.
Predefined user roles network-admin network-operator Usage guidelines Executing this command in user view disconnects you from the device. Examples # Return from Ten-GigabitEthernet1/0/1 interface view to system view and then to user view. [Sysname-Ten-GigabitEthernet1/0/1] quit [Sysname] quit return Use return to return to user view from any other view.
Predefined user roles network-admin Usage guidelines If you disable pausing between screens of output, all output is displayed and the screen is refreshed continuously until the final screen is displayed. This command takes effect only for the current session. When you are logged out, the default is restored. Examples # Disable pausing between screens of output for the current session.
Login 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. Unless otherwise noted, devices in the configuration examples are operating in non-FIPS mode. Telnet is not supported in FIPS mode. activation-key Use activation-key to define a shortcut key for starting a terminal session.
* Copyright (c) 2010-2013 Hewlett-Packard Development Company, L.P. * * Without the owner's prior written consent, * * no decompiling or reverse-engineering shall be allowed. * ****************************************************************************** User interface aux0 is available. Press ENTER to get started. 3. Press Enter. Pressing Enter does not start a session. 4. Enter s. A terminal session is started.
Examples # Enable the none authentication mode for user interface VTY 0. (Not supported in FIPS mode.) 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. (Not supported in FIPS mode.
Parameters command: Specifies the command to be automatically executed. Usage guidelines The device automatically executes the specified command when a user logs in to the user interface, and closes the user connection after the command is executed. If the command triggers another task, the device does not close the user connection until the task is completed. Typically, you configure the auto-execute command telnet X.X.X.X command on the device so the device redirects a Telnet user to the host at X.X.X.X.
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 Predefined user roles network-admin Usage guidelines When command accounting is enabled but command authorization is not, every executed command is recorded on the HWTACACS server.
Usage guidelines When command authorization is enabled, a command is available only if the user has the commensurate user role and is authorized to use the command by the AAA scheme. This command takes effect immediately after it is configured. To configure command authorization, follow these steps: 1. Configure AAA on the switch. 2. Configure a user account on the AAA servers and specify the commands that the user can execute. 3. Set the login authentication mode to scheme on the switch. 4.
Examples # Configure AUX 0 to use 5 data bits for each character. system-view [Sysname] user-interface aux 0 [Sysname-ui-aux0] databits 5 display telnet client Use display telnet client to display the source IPv4 address or source interface configured for the device to use for outgoing Telnet packets when serving as a Telnet client.
number2: Specifies the relative number of a user interface, in the range of 0 to 1 for an AUX interface or 0 to 15 for a VTY user interface. summary: Displays summary information about user interfaces. If you do not specify this keyword, the detailed information is displayed. Examples # Display information about user interface 0. display user-interface 0 Idx Type Tx/Rx Modem Auth Int 0 AUX 0 9600 - - + : User interface is active. F : User interface is active and in async mode.
display users Use display users to display information about the user interfaces that are being used. Use display users all to display information about all user interfaces that are supported by the device. Syntax display users [ all ] Views Any view Predefined user roles network-admin network-operator Parameters all: Displays information about all user interfaces supported by the device. Examples # Display information about the user interfaces being used.
escape-key Use escape-key to define a shortcut key for terminating a task. Use undo escape-key to disable the shortcut key for terminating a task. Syntax escape-key { character | default } undo escape-key [ default ] Default Pressing Ctrl+C terminates a task. Views User interface view Predefined user roles network-admin Parameters character: Specifies the shortcut key. It can be a single character, a key sequence, or the ASCII code value (in the range of 0 to 127) of the character or key sequence.
Reply from 192.168.1.49: bytes=56 Sequence=2 ttl=255 time=3 ms 2. Press a. The task is terminated, and the system returns to user view. --- 192.168.1.49 ping statistics --2 packet(s) transmitted 2 packet(s) received 0.00% packet loss round-trip min/avg/max = 3/3/3 ms flow-control Use flow-control to configure the flow control mode. Use undo flow-control to restore the default. Syntax flow-control { hardware | none | software } undo flow-control Default The flow control mode is none.
Views User view Predefined user roles network-admin Parameters number1: Specifies the absolute number of a user interface, in the range of 0 to 23. aux: Specifies the AUX user interface. vty: Specifies the VTY user interface. number2: Specifies the relative number of a user interface, in the range of 0 to 1 for an AUX interface or 0 to 15 for a VTY user interface. Usage guidelines This command does not release the connection you are using. Examples # Release user interface VTY 1: 1.
Views User interface view Predefined user roles network-admin 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.
Setting the idle-timeout to 0 disables the idle-timeout function. Examples # Set the idle-timeout to 1 minute and 30 seconds for user interface VTY 0. system-view [Sysname] user-interface vty 0 [Sysname-ui-vty0] idle-timeout 1 30 lock Use lock to lock the current user interface. This method prevents unauthorized users from using the user interface. Syntax lock Default By default, the system does not lock any user interface.
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 AUX user interface view Predefined user roles network-admin 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.
Default Both Telnet and SSH are supported. Views VTY user interface view Predefined user roles network-admin Parameters all: Supports both protocols. Telnet is not supported in FIPS mode. ssh: Supports SSH only. telnet: Supports Telnet only. This keyword is not supported in FIPS mode. Usage guidelines This configuration is effective only for a user who logs in to the user interface after the configuration is completed.
Usage guidelines This command sets the maximum number of lines that can be displayed on one screen when the screen pause function is enabled. If the screen pause function is disabled, the system displays command output without any pause. The actual number of lines that can be displayed on a screen is restricted by the display specification of the configuration terminal.
Send message? [Y/N]:y The message should appear on the screen of the user's configuration terminal, as shown in the following example: [Sysname] *** *** ***Message from vty0 to vty1 *** Your attention, please. I will reboot the system in 3 minutes. set authentication password Use set authentication password to set a password for password authentication. Use undo set authentication password to remove the password.
Related commands authentication-mode shell Use shell to enable the terminal service for a user interface. Use undo shell to disable the terminal service for a user interface. Syntax shell undo shell Default The terminal service is enabled on all user interfaces. Views VTY user interface view Predefined user roles network-admin Usage guidelines You cannot disable the terminal service on the user interface you are using.
Predefined user roles network-admin Parameters speed-value: Transmission rate in bps. The transmission rates available for asynchronous serial interfaces include: 300 bps, 600 bps, 1200 bps, 2400 bps, 4800 bps, 9600 bps, 19200 bps, 38400 bps, 57600 bps, and 115200 bps. Usage guidelines The configuration terminal and the device must be configured with the same transmission rate to communicate. Examples # Set the transmission rate to 19200 bps for user interface AUX 0.
[Sysname] user-interface aux 0 [Sysname-ui-aux0] stopbits 1 telnet Use telnet to Telnet to a host in an IPv4 network. Syntax telnet remote-host [ service-port ] [ vpn-instance vpn-instance-name ] [ source { interface interface-type interface-number | ip ip-address } ] Views User view Predefined user roles network-admin Parameters remote-host: Specifies the IPv4 address or host name of a remote host, a case-insensitive string of 1 to 253 characters.
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. The source IPv4 address is the primary IPv4 address of the outbound interface. Views System view Predefined user roles network-admin Parameters interface interface-type interface-number: Specifies a source interface.
-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. 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.
system-view [Sysname] acl number 2001 [Sysname-acl-basic-2001] rule permit source 1.1.1.1 0 [Sysname-acl-basic-2001] quit [Sysname] telnet server acl 2001 telnet server ipv6 acl Use telnet server ipv6 acl to apply an IPv6 ACL to filter IPv6 Telnet logins. Use undo telnet server ipv6 acl to restore the default. Syntax telnet server ipv6 acl { layer2-acl-number | ipv6 ipv6-acl-number } undo telnet server ipv6 acl Default No ACL is used to filter IPv6 Telnet logins.
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 Predefined user roles network-admin Usage guidelines Administrators can Telnet to the device only when the Telnet server function is enabled. Examples # Enable the Telnet server function. system-view [Sysname] telnet server enable terminal type Use terminal type to specify the terminal display type.
Examples # Set the terminal display type to VT100. system-view [Sysname] user-interface vty 0 [Sysname-ui-vty0] terminal type vt100 user-interface Use user-interface to enter one or multiple user interface views.
user-role Use user-role to assign a user role to a user interface so users logged in to the user interface get the user role at login. Use undo user-role to remove a user role or restore the default. Syntax user-role role-name undo user-role [ role-name ] Default An AUX user interface user is assigned the user role network-admin. Users of the other user interfaces are assigned the user role network-operator.
RBAC 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. description Use description to configure a description for a user role. Use undo description to delete the description of a user role. Syntax description text undo description Default A user role has no description.
Predefined user roles network-admin network-operator Parameters name role-name: Specifies a user role name, a case-sensitive string of 1 to 63 characters. Usage guidelines If no user role name is specified, the command displays information about all user roles, including the predefined user roles. Examples # Display information about the user role 123.
------------------------------------------------------------------Rule Perm Type Scope Entity ------------------------------------------------------------------sys-1 permit command display * sys-2 deny command display history-command all sys-3 permit command system-view ; switchto mdc * R:Read W:Write X:Execute Role: level-0 Description: Predefined level-0 role VLAN policy: permit (default) Interface policy: permit (default) VPN instance policy: permit (default) ---------------------------
VLAN policy: permit (default) Interface policy: permit (default) VPN instance policy: permit (default) Role: level-4 Description: Predefined level-4 role VLAN policy: permit (default) Interface policy: permit (default) VPN instance policy: permit (default) Role: level-5 Description: Predefined level-5 role VLAN policy: permit (default) Interface policy: permit (default) VPN instance policy: permit (default) Role: level-6 Description: Predefined level-6 role VLAN policy: permit (default) Interface policy:
Role: level-10 Description: Predefined level-10 role VLAN policy: permit (default) Interface policy: permit (default) VPN instance policy: permit (default) Role: level-11 Description: Predefined level-11 role VLAN policy: permit (default) Interface policy: permit (default) VPN instance policy: permit (default) Role: level-12 Description: Predefined level-12 role VLAN policy: permit (default) Interface policy: permit (default) VPN instance policy: permit (default) Role: level-13 Description: Predefined le
VPN instance policy: deny Permitted VPN instances: vpn, vpn1, vpn2 ------------------------------------------------------------------Rule Perm Type Scope Entity ------------------------------------------------------------------1 permit RWX feature-group abc 2 deny feature ldap 3 permit command system ; radius sc * -W- R:Read W:Write X:Execute Table 4 Command output Field Description User role name.
Field Description Rule control scope: • command—Controls access to the command or commands, as specified in the Entity field. Scope • feature—Controls access to the commands of the feature, as specified in the Entity field. • feature-group—Controls access to the commands of the features in the feature group, as specified in the Entity field. Command string, feature name, or feature group specified in the user role rule: Entity • An en dash (–) represents any feature.
Feature: process (Process related commands) … # Display the commands of each feature.
reset counters interface * reset packet-drop * (W) (W) debugging interface * (W) display debugging if display interface * (R) (R) … # Display the commands of the aaa feature.
Field Description (W) Command type is Write. A write command configures the system. (R) Command type is Read. A read command displays configuration or maintenance information. (X) Command type is Execute. An execute command executes a specific function. Related commands feature display role feature-group Use display role feature-group to display feature group information.
Feature: evb (EVB related commands) Feature: trill (Trill related commands) Feature: oap (OAP related commands) Feature group: L3 Feature: route (Route management related commands) Feature: usr (Unicast static route related commands) Feature: ospf (Open Shortest Path First protocol related commands) Feature: rip (Routing Information Protocol related commands) Feature: isis (ISIS protocol related commands) Feature: bgp (Border Gateway Protocol related commands) Feature: l3vpn (Layer 3 Virt
Feature: multicast (Multicast related commands) Feature: pim (Protocol Independent Multicast related commands) Feature: route-policy (Routing Policy related commands) Feature: igmp (Internet Group Management Protocol related commands) Feature: mld (Multicast Listener Discovery related commands) Related commands • feature • role feature-group feature Use feature to add a feature to a feature group. Use undo feature to remove a feature from a feature group.
Use undo interface policy deny to restore the default user role interface policy. Syntax interface policy deny undo interface policy deny Default A user role has access to any interface. Views User role view Predefined user roles network-admin Usage guidelines The interface policy deny command denies the access of a user role to any interface. To restrict the interface access of a user role to only a set of interfaces: 1. Use interface policy deny to deny access to any interface. 2.
Use undo permit interface to disable the access of a user role to specific interfaces. Syntax permit interface interface-list undo permit interface [ interface-list ] Default No permitted interfaces are configured in user role interface policy view. A user role cannot access any interface after you configure the interface policy deny command.
[Sysname-Ten-GigabitEthernet1/0/1] # Verify that you can assign Ten-GigabitEthernet 1/0/5 to VLAN 10. In this example, the user role can access any VLAN because the default VLAN policy of the user role is used. system-view [Sysname] vlan 10 [Sysname-vlan10] port ten-gigabitethernet 1/0/5 # Verify that you cannot enter Ten-GigabitEthernet 1/0/2 interface view. system-view [Sysname] interface ten-gigabitethernet 1/0/2 Permission denied.
Examples # Permit the user role role1 to access VLANs 2, 4, and 50 to 100, enter interface view and VLAN view and execute all the commands that are available in interface view and VLAN view.
Parameters vpn-instance-name&<1-10>: Specifies a space-separated list of up to 10 MPLS L3VPN names. Each name is a case-sensitive string of 1 to 31 characters. Usage guidelines To permit a user role to access an MPLS L3VPN after you configure the vpn-instance policy deny command, you must add the VPN to the permitted VPN list of the policy. With the user role, you can create, remove, configure only the VPNs in the permitted VPN list, enter their views, and specify them in a feature command.
Use undo role to delete a user role. Syntax role name role-name undo role name role-name Default The system has 18 predefined user roles: network-admin, network-operator, and level-n (where n represents an integer in the range of 0 to 15). Views System view Predefined user roles network-admin Parameters name role-name: Specifies a username. The role-name argument is a case-sensitive string of 1 to 63 characters.
Default The default user role function is disabled. AAA users who do not have a user role cannot log in to the device. Views System view Predefined user roles network-admin Usage guidelines The default user role function assigns the network-operator user role to a local or remote AAA authenticated user if the AAA server has not authorized the user to use any user roles. Without the function, AAA authenticated users cannot access the system if they have no user role authorization.
After you create a user role feature group, you can use the display role feature command to display the features available in the system and use the feature command to add features to the feature group. Examples # Create the feature group security-features.
feature [ feature-name ]: Specifies one or all features. The feature-name argument specifies a feature name. If no feature name is specified, you specify all the features in the system. When you specify a feature, you must enter its name exactly as displayed by display role feature, including the case. feature-group feature-group-name: Specifies a user-defined or pre-defined feature group. The feature-group-name argument represents the feature group name, a case-sensitive string of 1 to 31 characters.
Rule Guidelines An asterisk represents zero or multiple characters. In a non-last segment, you can use an asterisk only at the end of the segment. Asterisk (*) is the wildcard. In the last segment, you can use an asterisk in any position of the segment. If the asterisk appears at the beginning, you cannot specify any printable characters behind it.
[Sysname-role-role1] rule 5 deny read feature aaa # Permit role1 to access all read, write, and execute commands of the feature group security-features. [Sysname-role-role1] rule 6 permit read write execute feature-group security-features Related commands • display role • display role feature • display role feature-group • role super Use super to switch to a user role.
undo super authentication-mode Default Local password authentication applies. Views System view Predefined user roles network-admin Parameters local: Enables local password authentication. scheme: Enables remote AAA authentication. Usage guidelines The authentication setting applies only to AUX and VTY users. A console user can switch the user role without authentication. For local password authentication, use the super password command to set a password.
Syntax In non-FIPS mode: super password [ role rolename ] [ { hash | simple } password ] undo super password [ role rolename ] In FIPS mode: super password [ role rolename ] undo super password [ role rolename ] Default No password is set for user role switching. Views System view Predefined user roles network-admin Parameters role rolename: Specifies a user role, a case-sensitive string of 1 to 63 characters. The user role must exist in the system.
Related commands super authentication-mode vlan policy deny Use vlan policy deny to enter the user role VLAN policy view. Use undo vlan policy deny to restore the default user role VLAN policy. Syntax vlan policy deny undo vlan policy deny Default A user role has no access to any VLAN. Views User role view Predefined user roles network-admin Usage guidelines The vlan policy deny command denies the access of a user role to any VLAN. To restrict the VLAN access of a user role to only a set of VLANs: 1.
vpn-instance policy deny Use vpn-instance policy deny to enter user role VPN instance policy view. Use undo vpn-instance policy deny to restore the default user role VPN instance policy. Syntax vpn-instance policy deny undo vpn-instance policy deny Default A user role has access to any VPN. Views User role view Predefined user roles network-admin Usage guidelines The vpn-instance policy deny command denies the access of a user role to any VPN.
FTP 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. FTP is not supported in FIPS mode. FTP server commands display ftp-server Use display ftp-server to display FTP server configuration and status information.
display ftp-user Use display ftp-user to display detailed information about logged-in FTP users. Syntax display ftp-user Views Any view Predefined user roles network-admin network-operator Examples # Display detailed information about logged-in FTP users. display ftp-user UserName HostIP Port HomeDir root 192.168.20.
Predefined user roles network-admin Parameters username: Specifies a username. You can use the display ftp-user command to display FTP user information. Examples # Manually release the FTP connection that was established by using the user account named ftpuser. free ftp user ftpuser Are you sure to free FTP connection? [Y/N]:y free ftp user-ip Use free ftp user-ip to manually release the FTP connection that was established from a specific IPv4 address.
Parameters ipv6-address: Specifies the source IPv6 address of an FTP connection to be released. You can use the display ftp-user command to view the source IPv6 address of the FTP connection. port port: Specifies the source port of an FTP connection to be released. You can use the display ftp-user command to view the source port of the FTP connection. Examples # Manually release the FTP connection that was established from IPv6 address 2000::154.
ftp server enable Use ftp server enable to enable the FTP server. Use undo ftp server enable to disable the FTP server. Syntax ftp server enable undo ftp server enable Default The FTP server is disabled. Views System view Predefined user roles network-admin Examples # Enable the FTP server. system-view [Sysname] ftp server enable ftp timeout Use ftp timeout to set the idle-timeout interval for FTP connections. Use undo ftp timeout to restore the default.
[Sysname] ftp timeout 36 FTP client commands Before executing FTP client configuration commands, make sure you have configured authorization settings for users on the FTP server. Authorized operations include view the files under the working directory, read/download specified files, create directories, upload files, and rename/remove files. The FTP client commands in this section are supported by the device, but whether they can be executed successfully depends on the FTP server.
Predefined user roles network-admin Usage guidelines You can perform this operation only after you log in to the FTP server. The carriage return characters vary with operating systems. For example, HP and Windows use /r/n, and Linux uses /n. To transfer files between two systems that use different carriage return characters, select the FTP transfer mode according to the file type. FTP transfers files in either of the following modes: • Binary mode—Transfers image files or pictures.
Related commands ascii bye Use bye to terminate the connection to the FTP server and return to user view. If no connection is established between the device and the remote FTP server, use this command to return to user view. Syntax bye Views FTP client view Predefined user roles network-admin Examples # Terminate the connection to the FTP server and return to user view. ftp> bye 221-Goodbye. You uploaded 2 and downloaded 2 kbytes. 221 Logout.
Usage guidelines You can perform this operation only after you log in to the FTP server. The directory that can be accessed must be authorized by the FTP server. Examples # Change the working directory to the subdirectory logfile of the current directory. ftp> cd logfile 250 OK. Current directory is /logfile # Change the working directory to the subdirectory diagfile of the FTP root directory. ftp> cd /diagfile 250 OK.
Related commands • cd • pwd close Use close to terminate the connection to the FTP server without exiting FTP client view. Syntax close Views FTP client view Predefined user roles network-admin Usage guidelines You can perform this operation only after you log in to the FTP server. Examples # Terminate the connection to the FTP server without exiting the FTP client view. ftp> close 221-Goodbye. You uploaded 0 and downloaded 0 kbytes. 221 Logout.
ftp> debug Debugging on (debug=1). ftp> debug Debugging off (debug=0). # When the device serves as the FTP client, enable FTP client debugging and download file a.txt from the current directory of the FTP server. ftp> debug Debugging on (debug=1). ftp> get a.txt local: a.txt remote: a.txt ---> EPRT |2|8::124|50198| 200 PORT command successful ---> RETR a.txt 150 Connecting to port 50198 226 File successfully transferred 1569 bytes received in 0.0104 seconds (147.
Examples # Delete file b.txt. ftp> delete b.txt 250 Deleted b.txt 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> dir a.txt s.txt output to local-file: a.txt? [Y/N]y 150 Connecting to port 50203 226-Glob: a.txt # Display the content of file s.txt. ftp> bye 221-Goodbye. You uploaded 0 and downloaded 2 kbytes. 221 Logout. more s.txt -rwxr-xr-x 1 0 0 1481 Jul 7 12:34 a.txt Related commands ls disconnect Use disconnect to terminate the connection to the FTP server without exiting FTP client view.
network-operator Examples # Display the source address settings on the FTP client. display ftp client source The source IP address of the FTP client is 1.1.1.1. The source IPv6 address of the FTP client is 2001::1. ftp Use ftp to log in to the FTP server and enter FTP client view.
Password: 230 Logged in successfully Remote system type is MSDOS. ftp> ftp client source Use ftp client source to specify the source IPv4 address for FTP packets sent by the FTP client. 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 No source IP address is configured for sent FTP packets.
ftp client ipv6 source Use ftp client ipv6 source to specify the source address for FTP packets sent by the IPv6 FTP client. Use undo ftp client ipv6 source to restore the default. Syntax ftp client ipv6 source { interface interface-type interface-number | ipv6 source-ipv6-address } undo ftp client ipv6 source Default No source address is configured. The device automatically selects a source IPv6 address as defined in RFC 3484.
Views User view Predefined user roles network-admin Parameters server-address: Specifies the IP address or host name of the FTP server. service-port: Specifies the TCP port number of the FTP server, in the range of 0 to 65535. The default value is 21. source ipv6 source-ipv6-address: Specifies the source IPv6 address for sent FTP packets. This address must be an IPv6 address that has been configured on the device.
Views FTP client view Predefined user roles network-admin Parameters remotefile: Specifies the name of the file to be downloaded. localfile: Specifies a name for the downloaded file. Usage guidelines You can perform this operation only after you log in to the FTP server. To save the downloaded file to the working directory accessed by the ftp command, the localfile argument must specify a file name such as a.cfg. If you do not provide the localfile argument, the downloaded file uses its original name.
Related commands put help Use help to display all commands supported by an FTP client. Use help command-name to display the help information of a specific command. Syntax help [ command-name ] Views FTP client view Predefined user roles network-admin Parameters command-name: Specifies a command supported by the FTP client. Usage guidelines In FTP client view, executing the help command is the same as entering?. Examples # Display all commands supported by the FTP client.
Views FTP client view Predefined user roles network-admin Parameters directory: Specifies a local directory of the FTP client. There must be a slash sign (/) before the name of the storage medium, for example, /flash:/logfile. /: Specifies the root directory of the FTP client. Examples # Display the local working directory. ftp> lcd Local directory now /flash: # Change the local working directory to flash:/logfile.
-rwxr-xr-x 1 0 0 -rwxr-xr-x 1 0 0 1481 Jul 7 15:36 a.txt drwxr-xr-x 2 0 0 8192 Jul 2 14:33 diagfile drwxr-xr-x 3 0 0 8192 Jul 7 15:21 ftp -rwxr-xr-x 1 0 0 drwxr-xr-x 2 0 0 drwxr-xr-x 2 0 -rwxr-xr-x 1 0 -rwxr-xr-x 0 Sep 27 0 Sep 27 2010 base.bin 2010 kernel.bin 8192 Jul 5 09:15 logfile 0 8192 Jul 2 14:33 seclog 0 40808448 Jul 1 0 0 3050 Jul 7 12:26 startup.cfg -rwxr-xr-x 1 0 0 54674 Jul 4 09:24 startup.
ftp> mkdir newdir 257 "newdir" : The directory was successfully created newer Use newer to update a local file by using a remote file on the FTP server. Syntax newer remotefile [ localfile ] Views FTP client view Predefined user roles network-admin Parameters remotefile: Specifies the name of the remote file on the FTP server. localfile: Specifies the name of the local file to be updated. Usage guidelines You can perform this operation only after you log in to the FTP server.
Usage guidelines After you issue this command, you are prompted to enter the username and password. You must provide correct username and password before you can log in to the server. If you have logged in to an FTP server, you cannot use the open command to log in to another server. To do so, you must first disconnect from the current server. Examples # In FTP client view, log in to the FTP server 192.168.40.7. ftp ftp> open 192.168.40.7 Connected to 192.168.40.7 (192.168.40.
put Use put to upload a file on the client to the remote FTP server. Syntax put localfile [ remotefile ] Views FTP client view Predefined user roles network-admin Parameters localfile: Specifies the name of the local file to be uploaded. remotefile: Specifies the file name for saving the uploaded file on the FTP server. Usage guidelines You can perform this operation only after you log in to the FTP server.
ftp> put chassis1#slot1#flash:/test/a.txt b.txt local: chassis1#slot1#flash:/test/a.txt remote: b.txt 150 Connecting to port 47461 226 File successfully transferred 1569 bytes sent in 0.000671 seconds (2.23 Mbyte/s) Related commands get pwd Use pwd to display the currently accessed directory on the FTP server. Syntax pwd Views FTP client view Predefined user roles network-admin Usage guidelines You can perform this operation only after you log in to the FTP server.
Related commands bye reget Use reget to get the missing part of a file from the FTP server. Syntax reget remotefile [ localfile ] Views FTP client view Predefined user roles network-admin network-operator Parameters remotefile: Specifies the name of the file on the FTP server. localfile: Specifies the name of the local file. Usage guidelines You can perform this operation only after you log in to the FTP server.
newfilename: Specifies the new file name. Usage guidelines You can perform this operation only after you log in to the FTP server. Examples # Rename the file a.txt as b.txt Method 1: ftp> rename (from-name) a.txt (to-name) b.txt 350 RNFR accepted - file exists, ready for destination 250 File successfully renamed or moved Method 2: ftp> rename a.txt (to-name) b.txt 350 RNFR accepted - file exists, ready for destination 250 File successfully renamed or moved Method 3: ftp> rename a.txt b.
Predefined user roles network-admin Parameters marker: Specifies the retransmit marker. Usage guidelines You can perform this operation only after you log in to the FTP server. Support for this command varies with FTP servers. Examples # Retransmit the file h.c (82 bytes) from 2 bytes. ftp> restart 2 restarting at 2. execute get, put or append to initiate transfer ftp> put h.c h.c local: h.c remote: h.c 350 Restart position accepted (2). 150 Ok to send data. 226 File receive OK. 80 bytes sent in 0.
USER PASS NOOP QUIT SYST TYPE HELP CWD XCWD PWD CDUP XCUP XPWD LIST NLST MLSD PORT EPRT PASV EPSV REST RETR STOR APPE DELE MKD XMKD RMD XRMD ABOR SIZE RNFR RNTO 214 UNIX Type: L8 Table 10 Command output Field Description USER Username, corresponding to the xx command in FTP client view. PASS Password. NOOP Null operation. SYST System parameters. TYPE Request type. CWD Changes the current working directory. XCWD Extended command with the meaning of CWD.
Field Description SIZE Size of the transmission file. RNFR Original name. RNTO New name. rmdir Use rmdir to permanently delete a directory on the FTP server. Syntax rmdir directory Views FTP client view Predefined user roles network-admin Parameters directory: Specifies the name of a directory on the remote FTP server. Usage guidelines You can perform this operation only after you log in to the FTP server. To perform this operation, you must have delete permissions on the FTP server.
Predefined user roles network-admin Parameters remotefile: Specifies a directory or file on the FTP server. Usage guidelines You can perform this operation only after you log in to the FTP server. Support for this command and output of this command depends on the FTP server model. Examples # Display FTP server status. ftp> rstatus 211-FTP server status: Connected to 192.168.20.
Table 12 Command output Field Description 213-Status follows: Beginning of the display of the file, where 213 specifies the FTP command. The first bit specifies the file type: • -—Common. • B—Block. • c—Character. • d—Directory. • l—Symbol connection file. • p—Pipe. -rw-r--r-- • s—socket. The second bit through the tenth bit are divided into three groups. Each group contains three characters, representing the access permissions of the owner, group, and other users. • -—No permission.
Not using any security mechanism. Mode: stream; Type: ascii; Form: non-print; Structure: file Verbose: on; Bell: off; Prompting: on; Globbing: off Store unique: off; Receive unique: off Case: off; CR stripping: on Ntrans: off Nmap: off Hash mark printing: off; Use of PORT cmds: on Table 13 Command output Field Description Connected to 192.168.1.56. IP address of the FTP server that is connected to the FTP client. Verbose: on; Bell: off; Prompting: on; Globbing: off Displays debugging information.
Syntax user username [ password ] Views FTP client view Predefined user roles network-admin Parameters username: Specifies the username of the target user account. password: Specifies the password of the target user account. Usage guidelines You can perform this operation only after you log in to the FTP server. The username and password of the target user account must have been configured. Otherwise, the user account change operation fails and the FTP connection is closed.
ftp> verbose Verbose mode on. # Execute the get command when FTP operation information display is disabled. ftp> verbose Verbose mode off. ftp> get a.txt # Execute the get command when FTP operation information display is enabled. ftp> verbose Verbose mode on. ftp> get a.txt local: a.txt remote: a.txt 150 Connecting to port 47455 226 File successfully transferred 1569 bytes received in 0.0117 seconds (130.8 kbyte/s) ? Use ? to display all commands supported by an FTP client.
dir list contents of remote directory Related commands help 101
TFTP 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. TFTP is not supported in FIPS mode. tftp Use tftp to download a file from the TFTP server to the local device or upload a local file to the TFTP server in an IPv4 network.
The source IP address specified with the tftp client source command applies to all TFTP connections while the one specified with the tftp command applies only to the current TFTP connection. Examples # Download the new.bin file from the TFTP server at 192.168.1.1 and save it as new.bin. tftp 192.168.1.1 get new.bin % Total 100 13.9M % Received % Xferd 100 13.
sent to a TFTP server. Make sure the interface is up and has the primary IP address configured. Otherwise, the transmission fails. ip source-ip-address: Specifies the source IP address of sent TFTP packets. The source address must be an IP address that has been configured on the device, and its interface must be up. Otherwise, the transmission fails. Usages guidelines If you execute this command multiple times, the most recent configuration takes effect.
vpn-instance vpn-instance-name: Specifies the MPLS L3VPN where the TFTP server belongs to. The vpn-instance-name argument is a case-sensitive string of 1 to 31 characters. If the TFTP server is on the public network, do not specify this option. source: Specifies the source address of sent IPv6 TFTP packets. If this keyword is not specified, the device automatically selects a source IPv6 address. For more information, see RFC 3484.
ip source-ip-address: Specifies the source IPv6 address of sent TFTP packets. The source address must be an IPv6 address that has been configured on the device, and its interface must be up. Otherwise, the transmission fails. Usages guidelines If you execute this command multiple times, the most recent configuration takes effect. The source IPv6 address specified with the tftp ipv6 command takes precedence over the one specified with the tftp client ipv6 source command.
tftp-server ipv6 acl Use tftp-server ipv6 acl to use an ACL to control the device's access to TFTP servers in an IPv6 network. Use undo tftp-server ipv6 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 TFTP servers. Views System view Predefined user roles network-admin Parameters acl-number: Specifies the number of a basic ACL, in the range of 2000 to 2999.
File system management commands IMPORTANT: • Before managing storage media, files, and directories, make sure you know the possible impacts. • A file or directory whose name starts with a period (.) is considered a hidden file or directory. Do not give a common file or directory a name that starts with a period. • Some system files and directories are hidden. cd Use cd to change the current working directory. Syntax cd { directory | ..
5 LSU1SUPB9 standby 0 NONE None 6 NONE Absent 0 NONE None The output shows that the slot number of the standby MPU is 5. # Access the root directory of the Flash on the standby MPU. cd slot5#flash:/ # Change to the test folder in the root directory of the active MPU. cd flash:/test In IRF mode: # Display the member IDs and slot numbers of the IRF fabric's MPUs.
Parameters fileurl-source: Specifies the name or URL of the file to be copied. If the file resides on an FTP or TFTP server rather than on the device, specify the URL of the file. The file name is case insensitive. Whether a URL is case sensitive depends on the server. fileurl-dest: Specifies the name or URL of the destination file or directory. To copy the source file to an FTP or TFTP server, specify a URL.
# Copy test.cfg from the working directory on TFTP server 1.1.1.1 and save it to the local current folder as testbackup.cfg. copy tftp://1.1.1.1/test.cfg testbackup.cfg Copy tftp://1.1.1.1/test.cfg to flash:/testbackup.cfg?[Y/N]:y Copying file tftp://1.1.1.1/test.cfg to flash:/testbackup.cfg... Done. # Copy test.cfg from the current folder and save it to the working directory on TFTP server 1.1.1.1 as testbackup.cfg. copy test.cfg tftp://1.1.1.1/testbackup.cfg Copy flash:/test.
The delete file-url command (without the /unreserved option) moves the file to the recycle bin unless the device is running out of storage space. If the device is running out of storage space, the command permanently deletes the specified file. A file moved to the recycle bin can be restored by using the undelete command. Do not use the delete command to delete files from the recycle bin. To delete files from the recycle bin, use the reset recycle-bin command.
delete chassis1#slot5#flash:/1.cfg Delete chassis1#slot5#flash:/1.cfg?[Y/N]:y Deleting file chassis1#slot5#flash:/1.cfg...Done. • Method 2 cd chassis1#slot5#flash:/ delete 1.cfg Delete chassis1#slot5#flash:/1.cfg?[Y/N]:y Deleting file chassis1#slot5#flash:/1.cfg...Done. Related commands • undelete • reset recycle-bin dir Use dir to display files or folders.
... # Display information about all files and folders in the storage medium of the standby MPU (in slot 5). cd slot5#flash:/ dir /all Directory of slot5#flash:/ ... In IRF mode: # Display information about all files and folders in the storage medium of the IRF fabric's active MPU. dir /all Directory of flash:/ ... # Display files and folders in the root directory of every storage medium in the IRF fabric. dir /all-filesystems Directory of flash:/ ...
file prompt Use file prompt to set the operation mode for files and folders. Syntax file prompt { alert | quiet } undo file prompt Default The alert mode is activated and the system prompts for confirmation when you perform a destructive file or folder operation. Views System view Predefined user roles network-admin Parameters alert: Prompts for confirmation when a destructive file or folder operation is being performed. quiet: Gives no confirmation prompt for file or folder operations.
Examples # Restore the space of the Flash. fixdisk flash: Restoring flash: may take some time... Restoring flash:...Done. format Use format to format a storage medium. Syntax format medium-name Views User view Predefined user roles network-admin Parameters medium-name: Specifies the name of a storage medium, case insensitive. Usage guidelines Formatting a storage medium permanently deletes all files on the storage medium.
Examples # Decompress the file system.bin.gz. 1. Before decompressing the file, you can display files whose names start with system.. dir system.* Directory of flash: 1 -rw- 20 Jun 14 2012 10:18:53 system.bin.gz 472972 KB total (472840 KB free) 2. Decompress the file system.bin.gz. gunzip system.bin.gz 3. Verify the decompress operation. dir system.* Directory of flash: 1 -rw- 0 May 30 2012 11:42:25 system.
mkdir Use mkdir to create a folder in the current directory. Syntax mkdir directory Views User view Predefined user roles network-admin Parameters directory: Specifies the name of a folder, a case-sensitive string. Usage guidelines The name of the folder to be created must be different from the names of the files and folders in the specified directory. To use this command to create a folder, the specified directory must exist.
Examples In standalone mode: # Display the contents of the testcfg.cfg file on the standby MPU (in slot 2). more slot2#flash:/testcfg.cfg # version 7.1.035, Release 2105 # sysname HP # command-alias enable command-alias mapping display show # ftp server enable # telnet server enable # switch-mode normal slot 2 switch-mode mix-bridging-routing slot 3 ---- More ---- In IRF mode: # Display the contents of the testcfg.cfg file on the IRF fabric's active MPU. more testcfg.cfg # version 7.
Views User view Predefined user roles network-admin Parameters fileurl-source: Specifies the name of the source file, case insensitive. fileurl-dest: Specifies the name of the target file or folder, case sensitive. Usage guidelines If you specify a target folder, the system moves the source file to the specified folder without changing the file name. Examples # Move the flash:/test/sample.txt file to flash:/, and save it as 1.txt. move test/sample.txt 1.txt Move flash:/test/sample.
Predefined user roles network-admin Parameters fileurl-source: Specifies the name of the source file or folder, case insensitive. fileurl-dest: Specifies the name of the destination file or folder, case sensitive. Usage guidelines If the destination file or folder name is the same as the name of an existing file or folder in the current working directory, this command is not executed. Examples # Rename the copy.cfg file as test.cfg. rename copy.cfg test.cfg Rename flash:/copy.
Related commands delete rmdir Use rmdir to remove a folder. Syntax rmdir directory Views User view Predefined user roles network-admin Parameters directory: Specifies a folder name, case insensitive. Usage guidelines To remove a directory, you must delete all files and subfolders in the directory permanently or move them to the recycle bin. If you move them to the recycle bin, executing the rmdir command permanently deletes them. Examples # Remove the subtest folder.
Examples # Restore the copy.cfg file, which was moved from the flash: directory to the recycle bin. undelete copy.cfg Undelete flash:/copy.cfg?[Y/N]:y File flash:/copy.cfg undeleted. # Restore the startup.cfg file, which was moved from the flash:/seclog directory to the recycle bin: • Method 1 undelete seclog/startup.cfg Undelete flash:/seclog/startup.cfg?[Y/N]:y File flash:/copy.cfg undeleted. • Method 2 cd seclog undelete startup.
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. Unless otherwise noted, devices in the configuration examples are operating in non-FIPS mode. backup startup-configuration Use backup startup-configuration to back up the main next-startup configuration file to a TFTP server.
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 Predefined user roles network-admin Parameters private-key: Encrypts configuration with a private key. Only the MPU where the configuration file is encrypted can decrypt the file. public-key: Encrypts configuration with a public key.
Parameters configuration [ module-name ]: Displays feature configuration. The module-name argument specifies a feature module. If no feature module is specified, this command displays all feature settings you have made. Available feature modules depend on your configuration. For example: • isis: Displays the IS-IS configuration. • isp: Displays the ISP configuration. • radius-template: Displays RADIUS schemes. • system: Displays the system configuration.
display default-configuration Use display default-configuration to display the factory defaults. Syntax display default-configuration Views Any view Predefined user roles network-admin network-operator Usage guidelines Factory defaults are contained in the default configuration file. They are product-specific default settings that are different from initial settings.
command-alias enable command-alias mapping display show # ftp server enable # telnet server enable # switch-mode normal slot 2 switch-mode mix-bridging-routing slot 3 ---- More ---- Related commands • reset saved-configuration • save display startup Use display startup to display the current startup configuration file and the next-startup configuration files.
Current startup saved-configuration file: flash:/startup.cfg Next main startup saved-configuration file: flash:/startup.cfg Next backup startup saved-configuration file: NULL Slot 1: Current startup saved-configuration file: flash:/startup.cfg Next main startup saved-configuration file: flash:/startup.cfg Next backup startup saved-configuration file: NULL Table 16 Command output Field Description MainBoard Displays the startup configuration files on the active MPU.
display this Use display this to display the running configuration in the current view. Syntax display this Views Any view Predefined user roles network-admin network-operator Usage guidelines Use this command to verify the configuration you have made in a certain view. Typically, this command does not display parameters that are set to their default settings.
reset saved-configuration Use reset saved-configuration to delete next-startup configuration files. Syntax reset saved-configuration [ backup | main ] Views User view Predefined user roles network-admin Parameters backup: Deletes the backup next-startup configuration file. main: Deletes the main next-startup configuration file. Usage guidelines Delete a next-startup configuration file if it does not match the software version or is corrupted. Use this command with caution.
The saved configuration file will be erased. Are you sure? [Y/N]:y Configuration file in flash is being cleared. Please wait ... .. MainBoard: Configuration file is cleared. Chassis 2 Slot 2: Erase next configuration file successfully Related commands display saved-configuration restore startup-configuration Use restore startup-configuration to download a configuration file from a TFTP server and specify it 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...Finished. Related commands backup startup-configuration save In standalone mode: Use save file-url to save the running configuration to a configuration file, without specifying the file as a next-startup configuration file.
operation, the next-startup configuration file is retained. In fast mode, the device directly overwrites the target next-startup configuration file. If a reboot or power failure event occurs during this process, the next-startup configuration file is lost. backup: Saves the running configuration to a configuration file, and specifies the file as the backup next-startup configuration file.
startup saved-configuration In standalone mode: Use startup saved-configuration to specify a file as a next-startup configuration file 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 factory defaults at the next startup. In IRF mode: Use startup saved-configuration to specify a file as a next-startup configuration file for all MPUs in the IRF fabric.
You can also specify a configuration file as a next startup file when you use the save command to save the running configuration to it. Examples # Specify the main next-startup configuration file. startup saved-configuration testcfg.cfg Please wait .... ...
Software upgrade commands boot-loader file Use boot-loader file to specify startup software image files.
main: Specifies the files as main startup files. The device always first attempts to start up with main startup files. Usage guidelines Use this command to upgrade the startup software images on all MPUs. To upgrade only standby MPUs, you can also use the boot-loader update command. In standalone mode: Before using this command, you must save the startup software image file to the root directory of the flash on the active MPU.
flash:/ssh.bin already exists on chassis 1 slot 4. Overwrite it? [Y/N]:y The specified file list will be used as the backup startup software images at the next reboot on chassis 1 slot 4. Related commands display boot-loader boot-loader update In standalone mode: Use boot-loader update to synchronize startup images from the active MPU to the standby MPU. In IRF mode: Use boot-loader update to synchronize startup images from the global active MPU to a standby MPU.
If an ISSU patch installation or software upgrade has been performed, use the install commit command to update the main startup images on the active MPU before software synchronization for startup image consistency between the active MPU and the standby MPU. Examples # In standalone mode, synchronize startup images from the active MPU to the standby MPU in slot 5. boot-loader update slot 5 This command will update the specified standby MPU. Continue? [Y/N]:y Updating. Please wait...
slot slot-number-list: Specifies a space-separated list of up to seven slot number items. Each item specifies a card by its slot number or a range of cards in the form of start-slot-number to end-slot-number. For example, slot 0 to 1 2. (In standalone mode.) chassis chassis-number: Specifies an IRF member device by its member ID. (In IRF mode.) slot slot-number-list: Specifies a space-separated list of up to seven slot number items.
chassis chassis-number [ slot slot-number ]: Specifies an IRF member device or an MPU in an IRF member device. The chassis-number argument represents the IRF member ID of the device, and the slot-number argument represents the slot number of the MPU on the device. If no IRF member device is specified, this command displays the software images on each MPU in the IRF fabric.
Related commands boot-loader file version auto-update enable Use version auto-update enable to enable software synchronization from the active MPU to the standby MPU at startup. Use undo version auto-update enable to disable the function. Syntax version auto-update enable undo version auto-update enable Default If software inconsistency is detected at startup, the standby MPU loads the current software images of the active MPU.
Syntax version check ignore undo version check ignore Default The startup software images on the standby MPU are checked for version inconsistency with the current software images on the active MPU. Views System view Predefined user roles network-admin Usage guidelines This command is available in standalone mode. When the standby MPU starts up, this command disables the system to examine the standby MPU's startup software images for version inconsistency with the active MPU's current software images.
ISSU commands ISSU series commands display issu rollback-timer Use display issu rollback-timer to display automatic-rollback timer information. Syntax display issu rollback-timer Views Any view Predefined user roles network-admin network-operator Usage guidelines Because change to the automatic-rollback interval does not take effect on the ongoing ISSU process, the current remaining rollback time might be greater than the configured automatic-rollback interval.
Syntax display issu state Views Any view Predefined user roles network-admin network-operator Usage guidelines The key to an ISSU is to follow the correct upgrade procedure. You can use this command to view the ISSU status and thereby determine what to do next. Examples # In standalone mode or IRF mode (single-chassis), display ISSU status information when no upgrade is going on.
flash:/ssh.bin Upgrade version list: boot: 1.0.4 system: V700R001B01D012 ssh: V700R001B01D012 Upgrade software images: flash:/boot02.bin flash:/system04.bin flash:/ssh04.bin # In IRF mode (single-chassis), display ISSU status information while the issu load command is being executed. display issu state ISSU state: Loading Compatibility: Incompatible Work state: Normal Upgrade method: Card by card Upgraded slot: None Current upgrading slot: chassis 1 slot 5 Previous version list: boot: 1.0.
ssh: V700R001B01D009 Previous software images: flash:/boot.bin flash:/system.bin flash:/ssh.bin Upgrade version list: system: V700R001B01D010 ssh: V700R001B01D010 Upgrade software images: flash:/system02.bin flash:/ssh02.bin # In IRF mode (multichassis), display ISSU status information on the original master after the issu load command is completed.
Table 19 Command output Field Description ISSU state • • • • • • • • • ISSU status: Init—The ISSU process has not started or has finished. Loading—The system is executing the issu load command. Loaded—The issu load command is completed. Switching—The system is executing the issu run switchover command. Switchover—The issu run switchover command is completed. Accepted—The issu accept command is completed. Committing—The system is executing the issu commit command. Rollbacking—A rollback is going on.
Field Description Software versions to upgrade to. Upgrade version list Upgrade software images If you execute this command on an original standby MPU during an ISSU for an incompatible version, the value of this field is Unknown. Software images used for the upgrade. If you execute this command on an original standby MPU during an ISSU for an incompatible version, the value of this field is Unknown.
ipe ipe-filename: Specifies the name of a .ipe file in the format storage medium name:/xxx.ipe, for example, flash:/a.ipe. It can be a case-insensitive string of 1 to 63 characters. The specified file must be saved in the root directory of a storage medium on the active MPU. (In standalone mode.) ipe ipe-filename: Specifies the name of a .ipe file in the format storage medium name:/xxx.ipe, for example, flash:/a.ipe. It can be a case-insensitive string of 1 to 63 characters.
CFA # In IRF mode, display the compatibility information of cmw710-cfa-a7122.bin and the ISSU methods to be used to upgrade the software to the specified version. (This example assumes the specified version is compatible with the running version.) display version comp-matrix file feature flash:/cmw710-cfa-a7122.bin Feature image: flash:/cmw710-cfa-a7122.
Influenced service according to following table on chassis 2 slot 6: flash:/cmw710-cfa-a7122.bin CFA Influenced service according to following table on chassis 2 slot 7: flash:/cmw710-cfa-a7122.bin CFA Table 20 Command output Field Description Version compatibility list History versions that are compatible with this version. Version dependency boot list Boot image versions that support the image. Version dependency system list System image versions that support the image.
Usage guidelines If you execute this command for an ISSU to an incompatible version, an error message appears. After you execute this command, the automatic-rollback timer is removed and the system does not perform automatic rollback for the ISSU process. However, you can use the issu rollback command to manually roll back to the original software configuration. This command is optional. You can execute the issu commit command to finish the ISSU process without executing this command.
chassis chassis-number slot slot-number: Specifies the member ID and slot number of the original active MPU. (Single-chassis in IRF mode.) chassis chassis-number: Specifies the member ID of the original master or a subordinate member that has not been upgraded. (Multichassis in IRF mode.) Usage guidelines For a device operating in standalone mode or an IRF fabric with a single member, this command ends the ISSU process.
flash:/feature.bin Running Version New Version Alpha 7122 Alpha 7123 Chassis Slot Upgrade Way 4 0 Service Upgrade 4 1 Service Upgrade 4 2 Service Upgrade 4 3 Service Upgrade 4 4 Service Upgrade Upgrading software images to compatible versions. Continue? [Y/N]:y issu commit chassis 1 Upgrade summary according to following table: flash:/feature.
issu load In standalone mode, use issu load to upgrade the boot, system, and feature images of the standby MPU and configure the upgrade images as the main startup software images for the standby MPU. In IRF mode: • When the IRF fabric has only one member, use issu load to upgrade the boot, system, and feature images of a global standby MPU and configure the upgrade images as the startup software images for the standby MPU.
ipe ipe-filename: Specifies the name of a .ipe file in the format storage medium name:/xxx.ipe, for example, flash:/a.ipe. It can be a case-insensitive string of 1 to 63 characters. The specified file must be saved in the root directory of a storage medium on the active MPU. (In standalone mode.) ipe ipe-filename: Specifies the name of a .ipe file in the format storage medium name:/xxx.ipe, for example, flash:/a.ipe. It can be a case-insensitive string of 1 to 63 characters.
Determines the ISSU methods. • The ISSU methods available for a compatible version include: { Incremental upgrade. During the upgrade, the involved processes will be upgrade. { ISSU reboot. During the upgrade, CPUs will be rebooted. { Reboot. During the upgrade, the specified MPU or member devices will be rebooted. The ISSU method for an incompatible version is always reboot.
flash:/feature.bin Running Version New Version Alpha 7122 Alpha 7123 Slot Upgrade Way 0 Service Upgrade 2 Service Upgrade 3 Service Upgrade 4 Service Upgrade Upgrading software images to compatible versions. Continue? [Y/N]:y # In standalone mode (single-MPU), upgrade the MPU with the feature image file flash:/feature.bin. (In this example, the image is incompatible with the running images.) issu load file feature flash:/feature.
This operation will delete the rollback point information for the previous upgrade and maybe get unsaved configuration lost. Continue? [Y/N]:Y Upgrade summary according to following table: flash:/feature.bin Running Version New Version Alpha 7122 Alpha 7123 Chassis Slot Upgrade Way 3 0 Reboot 3 1 Reboot 3 2 Reboot 3 3 Reboot 3 4 Reboot 4 0 Reboot 4 1 Reboot 4 2 Reboot 4 3 Reboot 4 4 Reboot Upgrading software images to incompatible versions.
# In IRF mode (single-MPU single-chassis), upgrade the MPU on member device 1 with the feature image file flash:/feature.bin. (In this example, the image is compatible with the running images.) issu load file feature flash:/feature.bin chassis 1 slot 4 This operation will delete the rollback point information for the previous upgrade and maybe get unsaved configuration lost. Continue? [Y/N]:Y Upgrade summary according to following table: flash:/feature.
issu rollback Use issu rollback to cancel the ISSU and roll back to the original software configuration. Syntax issu rollback Views User view Predefined user roles network-admin Usage guidelines The device supports automatic rollback and manual rollback. You trigger a manual rollback with this command.
Use undo issu rollback-timer to restore the default. Syntax issu rollback-timer minutes undo issu rollback-timer Default The automatic-rollback interval is 45 minutes. Views System view Predefined user roles network-admin Parameters minutes: Specifies the automatic-rollback interval in minutes, in the range of 0 to 120. Setting it to 0 disables the automatic rollback function.
• During an ISSU to a compatible version on a multichassis IRF fabric, use issu run switchover to perform a master/subordinate switchover. • During an ISSU to an incompatible version on a multichassis IRF fabric, use issu run switchover to perform a master/subordinate switchover and upgrade all members that have not been upgraded.
Reboot upgrade or ISSU upgrade—Reboots the current master with the old software version to cause the upgraded subordinate member to become the new master. For an incompatible version—The issu load command splits the IRF fabric into two fabrics, with the { • upgraded members forming a new fabric. The issu run switchover command reboots and upgrades the old IRF fabric. After startup, the old fabric's members join the new IRF fabric as subordinate members and the ISSU process ends.
# In IRF mode (multichassis), perform a master/subordinate switchover during an ISSU to a compatible version. issu run switchover Upgrade summary according to following table: flash:/feature.bin Running Version New Version Alpha 7122 Alpha 7123 Chassis Slot 1 Switchover Way 4 Active standby process switchover Upgrading software images to compatible versions.
1 3 Service Upgrade Upgrading software images to compatible versions. Continue? [Y/N]:y # In IRF mode (dual-MPU single-chassis), perform a master/subordinate switchover during an ISSU to an incompatible version. issu run switchover Upgrade summary according to following table: flash:/feature.bin Running Version New Version Alpha 7122 Alpha 7123 Chassis Slot Upgrade Way 1 0 Reboot 1 2 Reboot 1 3 Reboot 1 4 Reboot Upgrading software images to incompatible versions.
Predefined user roles network-admin network-operator Parameters slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command is applied to all cards in the device. (In standalone mode.) chassis chassis-number slot slot-number: Specifies a card on an IRF member. If you do not specify this option, the command is applied to all cards in the IRF fabric. (In IRF mode.) verbose: Displays detailed information.
Service name: system Platform version: 7.1.022 Product version: Test 2201 Patch version: 000 Supported board: mpu Version type: debug [Component] Component: system Description: system package flash:/ssh-feature.bin [Package] Vendor: HP Product: xxxx Service name: ssh Platform version: 7.1.022 Product version: Test 2201 Patch version: 000 Supported board: mpu Version type: debug [Component] Component: ssh Description: ssh package # In IRF mode, display detailed information about active software images.
Patch version: 000 Supported board: mpu Version type: debug [Component] Component: system Description: system package flash:/ssh-feature.bin [Package] Vendor: HP Product: xxxx Service name: ssh Platform version: 7.1.022 Product version: Test 2201 Patch version: 000 Supported board: mpu Version type: debug [Component] Component: ssh Description: ssh package Table 23 Command output Field Description Active packages on slot n Active software images on the card in the specified slot. (In standalone mode.
display install backup Use display install backup to display backup startup software images. Syntax In standalone mode: display install backup [ slot slot-number ] [ verbose ] In IRF mode: display install backup [ chassis chassis-number slot slot-number ] [ verbose ] Views Any view Predefined user roles network-admin network-operator Parameters slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command is applied to all cards in the device. (In standalone mode.
display install committed Use display install committed to display main startup software images. Syntax In standalone mode: display install committed [ slot slot-number ] [ verbose ] In IRF mode: display install committed [ chassis chassis-number slot slot-number ] [ verbose ] Views Any view Predefined user roles network-admin network-operator Parameters slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command is applied to all cards in the device.
Platform version: 7.1 Product version: Beta 1330 Supported board: mr, lc, sfc Version type: debug [Component] Component: boot Description: boot package flash:/system-a0201.bin [Package] Vendor: HP Product: xxxx Service name: system Platform version: 7.1 Product version: Beta 1330 Supported board: mr, lc, sfc Version type: debug [Component] Component: system Description: system package flash:/ssh-feature.bin [Package] Vendor: HP Product: xxxx Service name: ssh Platform version: 7.
display install inactive [ chassis chassis-number slot slot-number ] [ verbose ] Views Any view Predefined user roles network-admin network-operator Parameters slot slot-number: Specifies a card by its slot number. If you do not specify this option, the command is applied to all cards in the device. (In standalone mode.) chassis chassis-number slot slot-number: Specifies a card on an IRF member. If you do not specify this option, the command is applied to all cards in the IRF fabric. (In IRF mode.
Views Any view Predefined user roles network-admin network-operator Parameters ipe-file: Specifies the name of an existing .ipe file, a string of 1 to 63 characters. It must include the storage medium name and the extension .ipe, for example, flash:/new.ipe. If the specified .ipe file does not exist, the command fails. Usage guidelines An .ipe file contains one or more software images. You can use the software images for a software upgrade. Examples # Display information about .ipe file flash:/ssh.ipe.
Action:install activate flash:/ssh-feature.bin on chassis 1 slot 5 The output shows that the device is executing the install activate flash:/ssh-feature.bin chassis 1 slot 5 command. display install log Use display install log to display ISSU logs. Syntax display install log [ log-id ] [ verbose ] Views Any view Predefined user roles network-admin network-operator Parameters log-id: Specifies a log by its ID. If you do not specify this argument, all software upgrade-related logs are displayed.
Install activate flash:/ssh.bin on slot 5 Job 1 completed successfully at 04/28/2001 08:39:30. Detail of activating packages on slot 5. Get upgrade policy successfully. Detail of activating packages on slot 5. Uncompress package to system successfully. Remove files from system successfully. Related commands reset install log-history oldest display install package Use display install package to display software image file information.
flash:/system.bin [Package] Vendor: HP Product: xxxx Service name: system Platform version: 7.1.022 Product version: Beta 1330 Supported board: mpu Version type: debug # Display detailed information about software image file system.bin. display install package flash:/system.bin verbose flash:/system.bin [Package] Vendor: HP Product: xxxx Service name: system Platform version: 7.1.
Install rollback information 1 on slot 5: Update from flash:/route-1.bin to flash:/route-2.bin. Install rollback information 2 on slot 5: Deactivating flash:/route-2.bin The output shows that the device has two rollback points in total: • At rollback point 1, flash:/route-1.bin was upgraded to flash:/route-2.bin. • At rollback point 1, flash:/route-2.bin was deactivated.
display install which file sshc.cli File sshc.cli is in following packages on slot 5: [Package] Vendor: xxx Product: xxxx Service name: ssh Platform version: 7.1.022 Product version: Beta 1330 Supported board: mr, lc, sfc Version type: debug For more information about the fields of the command output, see Table 23. install abort Use install abort to abort an ISSU operation.
install activate { boot filename | system filename | feature filename&<1-30> } * slot slot-number [ test ] install activate patch filename slot slot-number In IRF mode: install activate { boot filename | system filename | feature filename&<1-30> } * chassis chassis-number slot slot-number [ test ] install activate patch filename chassis chassis-number slot slot-number Views User view Predefined user roles network-admin Parameters boot: Specifies a boot image file.
Examples # In standalone mode, check for the ISSU method to be used for feature upgrade of the card in slot 5 with image file route-feature.bin and view the possible impact of the upgrade. install activate feature flash:/route-feature.bin slot 5 test Upgrade summary according to following table: flash:/route-feature.bin Running Version New Version None Beta 1330 Slot Upgrade Way 5 ISSU Reboot The output shows that an ISSU reboot will be used for the upgrade.
flash:/ssh2.bin Running Version New Version Beta 1330 Beta 1331 Chassis Slot Upgrade Way 1 0 Service Upgrade 1 4 Service Upgrade Influenced service according to following table: flash:/ssh2.bin SSH IFMGR CFA LAGG The output shows that a service upgrade will be used for the upgrade, and the SSH, IFMGR, CFA, and LAGG modules will be rebooted during the upgrade process. # In standalone mode, activate the system image in file system.bin and feature images in file feature.
Table 24 Command output Field Description Upgrade summary according to following table Upgrade summary. Running Version Version number of the running software. New Version Version number of the new software. Chassis Member ID of the device in the IRF fabric. (In IRF mode.) Slot Number of the slot where the card resides. ISSU methods: • Service Upgrade—Service-level incremental upgrade. This type of upgrade affects only the upgraded service modules.
medium-name: Specifies the name of the storage medium for saving the software images. To specify a storage medium on the active MPU, enter its name directly, for example, flash. To specify a storage medium on the standby MPU, prefix its name with the string slotn#, where n represents the number of the slot holding the standby MPU, for example slot1#flash. (In standalone mode.) medium-name: Specifies the name of the storage medium for saving the software images.
Examples # Confirm the software changes. install commit Related commands • install activate • install deactivate • install rollback install deactivate Use install deactivate to deactivate feature images and patch images.
Related commands • display install active • display install inactive install remove Use install remove to remove inactive software images. Syntax In standalone mode: install remove [ slot slot-number ] { filename | inactive } In IRF mode: install remove [ chassis chassis-number slot slot-number ] { filename | inactive } Views User view Predefined user roles network-admin Parameters slot slot-number: Specifies a card by its slot number.
Syntax install rollback to { point-id | original } Views User view Predefined user roles network-admin Parameters point-id: Specifies a rollback point ID. To view available rollback points, use the display install rollback command. original: Rolls back to the software configuration before you perform an ISSU. Usage guidelines Every time you activate or deactivate a software image for an incremental upgrade, the system creates a rollback point to record the current software configuration.
flash:/system-a0201.bin display install committed Committed packages on slot 5: flash:/boot-a0201.bin flash:/system-a0201.bin The output shows the device is rolled back to the original software configuration and image flash:/ssh-feature-a0201.bin has been removed. Related commands display install rollback install verify Use install verify to verify the software change confirmation status and software image integrity and consistency.
Verifying packages on slot 5: Start to check active package completeness. flash:/boot-a0101.bin verification successful. flash:/system-a0101.bin verification successful. Start to check active package consistency. Active packages are consistent with committed packages on their own board. Active packages are consistent with the reference packages. Verification is done. # In IRF mode, verify the software change confirmation status and software image integrity and consistency.
Examples # Clear the two oldest ISSU logs. reset install log-history oldest 2 Related commands display install log reset install rollback oldest Use reset install rollback oldest to clear ISSU rollback points. Syntax reset install rollback oldest point-id Views User view Predefined user roles network-admin Parameters point-id: Specifies a rollback point by its ID. Usage guidelines This command clears the specified rollback point and all rollback points earlier than the specified one.
Device management commands clock datetime Use clock datetime to set the UTC time. Syntax clock datetime time date Views User view Predefined user roles network-admin Parameters time: Specifies a time in the format hh:mm:ss. The hh value is in the range of 0 to 23, the mm value is in the range of 0 to 59, and the ss value is in the range of 0 to 59. The leading zero in a segment can be omitted. If the seconds segment is 0 (hh:mm:00), you can omit it.
Use undo clock timezone to restore the default. Syntax clock timezone zone-name { add | minus } zone-offset undo clock timezone Default The local time zone is the UTC time zone. Views System view Predefined user roles network-admin Parameters zone-name: Specifies a time zone by its name, a case-sensitive string of 1 to 32 characters. add: Adds a specified offset to the UTC time. minus: Decreases the UTC time by a specified offset.
Syntax clock summer-time name start-time start-date end-time end-date add-time undo clock summer-time Default Daylight saving time is disabled. Views System view Pre-defined user roles network-admin Parameters name: Specifies a name for the daylight saving time schedule, a case-sensitive string of 1 to 32 characters. start-time: Specifies the start time in the format hh:mm:ss. The hh value is in the range of 0 to 23, the mm value is in the range of 0 to 59, and the ss value is in the range of 0 to 59.
If both the minutes and seconds segments are 0 (hh:00:00), you can omit both of the segments. For example, to specify 08:00:00, you can enter 8. Usage guidelines The daylight saving time, together with the UTC time and local time zone, determines the system time. You can use the display clock command to view the system time. A correct system time setting is essential to network management and communication.
Examples # Assign commands to job backupconfig to back up configuration file startup.cfg to the TFTP server at 192.168.100.11. system-view [Sysname] scheduler job backupconfig [Sysname-job-backupconfig] command 2 tftp 192.168.100.11 put flash:/startup.cfg backup.cfg Related commands scheduler job copyright-info enable Use copyright-info enable to enable displaying the copyright statement. Use undo copyright-info enable to disable displaying the copyright statement.
Press ENTER to get started. # 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 aux0 is available. Press ENTER to get started. display alarm Use display alarm to display alarm information.
Table 25 Command output Field Description Slot Number of the slot where the card with an alarm resides. If the value is a hyphen (-), the alarm was generated by the chassis. (In standalone mode.) Level Alarm severity. Possible values include ERROR, WARNING, NOTICE, and INFO, in descending order. Info Detailed alarm information. faulty The card is starting up or is faulty. # Display alarm information. (In IRF mode.
Parameters chassis: Displays the asset profile of the chassis. fan fan-id: Displays the asset profile of the specified fan. power power-id: Displays the asset profile of the specified power supply. slot slot-number: Displays the asset profile of the card in the specified slot. csn: Displays the asset ID. custom: Displays the customized asset profile. department: Displays the name of the department to which the asset belongs. description: Displays the asset description.
Type : Fan 0 csn : 123456 description : FAN 0 location : service-date: department : MKT state : Normal custom: # (In IRF mode) Display the asset ID of fan 0 on IRF member device 1. (The output depends on the actual settings.) system-view [Sysname] display asset-info chassis 1 fan 0 csn Type : Fan 0 csn : 123456 # (In IRF mode) Display the asset profile of fan 0 on IRF member device 1. (The output depends on the actual settings.
• reset asset-info • set asset-info display clock Use display clock to display the system time, date, local time zone, and daylight saving time. Syntax display clock Views Any view Predefined user roles network-admin network-operator Examples # Display the system time and date when the local time zone is not specified. display clock 10:09:00 UTC Fri 03/16/2012 # Display the system time and date when the local time zone Z5 is specified.
network-operator Examples # Display the copyright statement. (The output depends on the device model and is not shown here.) display copyright display cpu-usage Use display cpu-usage to display CPU usage statistics.
Slot 4 CPU 0 CPU usage: 2% in last 5 seconds 2% in last 1 minute 2% in last 5 minutes Slot 6 CPU 0 CPU usage: 11% in last 5 seconds 11% in last 1 minute 11% in last 5 minutes # In IRF mode, display the current CPU usage statistics for all cards.
Syntax In standalone mode: display cpu-usage history [ job job-id ] [ slot slot-number [ cpu cpu-number ] ] In IRF mode: display cpu-usage history [ job job-id ] [ chassis chassis-number slot slot-number [ cpu cpu-number ] ] Views Any view Predefined user roles network-admin network-operator Parameters job job-id: Specifies a process by its ID.
75%| 70%| 65%| 60%| 55%| 50%| 45%| 40%| 35%| 30%| 25%| 20%| 15%| # 10%| ### 5%| # ######## -----------------------------------------------------------10 20 30 40 50 60 (minutes) cpu-usage (CPU 0) last 60 minutes (SYSTEM) The output shows the historical CPU usage statistics for the entire system (with the 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 minutes ago • 10%: 18 minutes ago • 5%
20%| 15%| 10%| 5%| # -----------------------------------------------------------10 20 30 40 50 60 (minutes) cpu-usage (CPU 0) last 60 minutes (scmd) The output shows the historical CPU usage statistics of process 1 (with the process name scmd) in the last 60 minutes. A process name with square brackets ([ ]) means that the process is a kernel process. • 5%: 20 minutes ago • 2% or lower than 2%: Other time display device Use display device to display device information.
8 NONE Absent 0 NONE None 9 NONE Absent 0 NONE None The output shows that the device has two MPUs and one interface card. The standby MPU is in slot 4, the active MPU is in slot 5, and the interface card is in slot 2. Table 29 Command output Field Description Slot . Number of the slot where the card resides. Type Hardware type of the card. Card status: • Standby—The card is a standby MPU. • Master—The card is the active MPU. Status • Absent—The slot is not installed with a card.
Table 30 Command output Field Description Chassis ID of the IRF member device. Slot Number of the slot where the card on the IRF member device resides. Type Card type. Card state: • Absent—The card is inserted in the slot. State • Master—The card is the active MPU of the IRF fabric. • Standby—The card is a standby MPU of the IRF fabric. • Normal—The card is an interface card and is operating correctly. • Fault—The card is faulty. Subslot Maximum number of subcards that the card supports.
display device manuinfo Chassis self DEVICE_NAME : BACKPLANE DEVICE_SERIAL_NUMBER : 210235A0J7X10C000009 MAC_ADDRESS : 0023-8912-3d06 MANUFACTURING_DATE : VENDOR_NAME : Slot 1 No manuinfo in EEPROM, please download it.
Chassis self DEVICE_NAME : BACKPLANE DEVICE_SERIAL_NUMBER : 210235A0J7X10C000009 MAC_ADDRESS : 0023-8912-3d06 MANUFACTURING_DATE : VENDOR_NAME : Slot 1 No manuinfo in EEPROM, please download it.
Table 31 Command output Field Description Chassis 1 Slot 0 Information about the card in slot 0 on IRF member device 1. DEVICE_NAME Device name. DEVICE_SERIAL_NUMBER Serial number. MAC_ADDRESS MAC address. MANUFACTURING_DATE Manufacturing date. VENDOR_NAME Vendor name. display device manuinfo chassis-only Use display device manuinfo chassis-only to display the electronic label data for the specified backplane.
MAC_ADDRESS : 0023-8912-3d06 MANUFACTURING_DATE : 2012-01-20 VENDOR_NAME : HP display device manuinfo fan Use display device manuinfo fan to display the electronic label data for the specified fan. Syntax In standalone mode: display device manuinfo fan fan-id In IRF mode: display device manuinfo chassis chassis-number fan fan-id Views Any view Predefined user roles network-admin network-operator Parameters chassis chassis-number: Specifies an IRF member device by its chassis number. (In IRF mode.
Syntax In standalone mode: display device manuinfo power power-id In IRF mode: display device manuinfo chassis chassis-number power power-id Views Any view Predefined user roles network-admin network-operator Parameters chassis chassis-number: Specifies an IRF member device. (In IRF mode.) power-id: Specifies a power supply by its ID. Examples # In standalone mode, display the electronic label data for power supply 2.
Predefined user roles network-admin network-operator Parameters hardware: Displays hardware-related operating statistics. infrastructure: Displays operating statistics for the fundamental modules. l2: Displays operating statistics for the Layer 2 features. l3: Displays operating statistics for the Layer 3 features. service: Displays operating statistics for upper-layer features.
display environment [ slot slot-number ] In IRF mode: display environment [ chassis chassis-number [ slot slot-number ] ] Views Any view Predefined user roles network-admin network-operator Parameters chassis chassis-number: Specifies an IRF member device. (In IRF mode.) slot slot-number: Specifies a card by the number of the slot where the card resides. Usage guidelines • If no card is specified, this command displays the temperature statistics for all temperature sensors on the device.
1 2 hotspot 3 45 0 88 100 110 1 2 hotspot 4 45 0 88 100 110 1 3 hotspot 1 43 0 68 80 NA 1 3 hotspot 2 55 0 88 100 110 1 4 inflow 1 23 0 48 60 NA 1 4 hotspot 1 30 0 80 95 N Table 32 Command output Field Description System Temperature information (degree centigrade) Temperature information (°C). Temperature sensor: sensor • hotspot—Hotspot sensor. • inflow—Air inlet sensor. • outflow—Air outlet sensor. Slot In standalone mode, this field indicates a card.
fan-id: Specifies a fan by its ID. Examples # Display the operating states of all fans. display fan Fan Frame 0 State: Normal display memory Use display memory to display memory usage. Syntax In standalone mode: display memory [ slot slot-number ] In IRF mode: display memory [ chassis chassis-number slot slot-number ] Views Any view Predefined user roles network-admin network-operator Parameters slot slot-number: Specifies a card by its slot number.
-/+ Buffers/Cache: Swap: 298932 0 398232 0 0 # In IRF mode, display memory usage. display memory Chassis 1 Slot 1 The statistics about memory is measured in KB: Chassis 1 Slot 1: Total Used Free Shared Buffers Cached FreeRatio 2778356 489232 2289124 0 0 163068 82.4% -/+ Buffers/Cache: 326164 2452192 Mem: Swap: 0 0 0 Table 33 Command output Field Description Slot Slot number of a card. (In standalone mode.) Chassis x Slot x Slot number of a card on a member device.
Predefined user roles network-admin Parameters slot slot-number: Specifies a card by its slot number. Without this option, the command displays the memory usage thresholds and memory usage notification statistics for the active MPU. (In standalone mode.) chassis chassis-number slot slot-number: Specifies a card on an IRF member device. Without this option, the command displays the memory usage thresholds and memory usage notification statistics for the global active MPU. (In IRF mode.
Total number of notifications sent: 0 display power Use display power to display power supply information. Syntax In standalone mode: display power [ power-id ] In IRF mode: display power [ chassis chassis-number [ power-id ] ] Views Any view Predefined user roles network-admin network-operator Parameters chassis chassis-number: Specifies an IRF member device by its chassis number. If no IRF member device is specified, this command displays power supply information on all IRF member devices.
Parameters job-name: Specifies a job by its name, a case-sensitive string of 1 to 47 characters. If no job is specified, the command displays the configuration information of all jobs. Examples # Display the configuration information of all jobs. display scheduler job Job name: saveconfig copy startup.cfg backup.
Table 34 Command output Field Description Logfile Size Size of the log file, in bytes. Schedule name Schedule to which the job belongs. Execution time Time when the job was started. Completion time Time when the job was completed. If the job has never been executed or the job has no commands, this field is blank. Job output Commands in the job and their output.
display switch-mode status chassis chassis-number Views Any view Predefined user roles network-admin network-operator Parameters chassis chassis-number: Displays the operating modes of all cards on an IRF member device. The chassis-number argument represents the IRF member ID of the switch. (In IRF mode) |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
NORMAL Normal mode. NONE The card is a switching fabric module. display scheduler schedule Use display scheduler schedule to display schedule information. Syntax display scheduler schedule [ schedule-name ] Views Any view Predefined user roles network-admin network-operator Parameters schedule-name: Specifies a schedule by its name, a case-sensitive string of 1 to 47 characters. If no schedule is specified, the command displays information about all schedules.
Field Description Result of the most recent execution: • Successful. • Failed. Last execution status • Waiting—The device is executing the schedule and the job is waiting to be executed. • In process—The job is being executed. • -NA-—The execution time has not arrived yet. To view information about whether the commands in the job has been executed and the execution results, execute the display scheduler logfile command.
Usage guidelines Table 37 shows the alarms that might occur to the commonly used transceiver modules. If no error occurs, "None" is displayed. Table 37 Alarms on commonly used transceiver modules Field Remarks SFP/SFP+: RX loss of signal Received signals are lost. RX power high The received optical power is high. RX power low The received optical power is low. TX fault Transmission error. TX bias high The transmitted bias current is high. TX bias low The transmitted bias current is low.
Field Remarks Transceiver info checksum error Transceiver information checksum error. Transceiver type and port configuration mismatch The type of the transceiver module does not match the port configuration. Transceiver type not supported by port hardware The port does not support the specified type of transceiver modules. Examples # Display the alarms present on the transceiver module in interface GigabitEthernet 1/0/1.
GigabitEthernet1/0/1 transceiver diagnostic information: Current diagnostic parameters: Temp(°C) Voltage(V) Bias(mA) RX power(dBm) 36 3.31 6.13 -35.64 TX power(dBm) -5.19 Table 39 Command output Field Description transceiver diagnostic information Digital diagnosis information of the transceiver module on the interface. Temp.(°C) Temperature in °C, accurate to 1°C. Voltage(V) Voltage in V, accurate to 0.01 V. Bias(mA) Bias current in mA, accurate to 0.01 mA.
Field Description Transceiver Type Transceiver module type. Connector type options: Connector Type • MPO—Multi-fiber Push On • LC—1.25 mm/RJ-45 fiber connector developed by Lucent. • RJ-45. • Fiber transceiver: Central wavelength (in nm) of the transmit laser. If the Wavelength(nm) transceiver supports multiple wavelengths, every two wavelength values are separated by a comma. • Copper cable: Displayed as N/A.
Examples # Display the electronic label data for the transceiver module on interface GigabitEthernet 1/0/1. display transceiver manuinfo interface gigabitethernet 1/0/1 GigabitEthernet1/0/1 transceiver manufacture information: Manu. Serial Number : 213410A0000054000251 Manufacturing Date : 2012-09-01 Vendor Name : HP Table 41 Command output Field Description Manu. Serial Number Serial number generated during production of the transceiver module.
PCB 1 Version: VER.A Bootrom Version: 110 CPLD 1 Version: 001 CPLD 2 Version: 001 CPLD 3 Version: 001 Release Version: HP 11908-2105 Patch Version None : LPU Chassis 1 Slot 2: Uptime is 0 weeks,0 days,6 hours,46 minutes HP 11908-V LPU with 1 XLS408 Processor ---- More ---- display version-update-record Use display version-update-record to display the startup software image upgrade history records of the active MPU. (In standalone mode.
Related commands reset version-update-record header Use header to create a banner. Use undo header to clear a banner. Syntax header { incoming | legal | login | motd | shell } text undo header { incoming | legal | login | motd | shell } Views System view Predefined user roles network-admin Parameters incoming: Configures the banner to be displayed before a modem dial-up user accesses user view. If authentication is required, the incoming banner appears after the authentication is passed.
Welcome to shell(header shell)% In this example, the percentage sign (%) is the starting and ending character of the text argument. Entering the percentage sign after the text quits the header command. Because it is the starting and ending character, the percentage sign is not included in the banner. # Test the configuration by using Telnet. The login banner appears only when password or scheme login authentication has been configured.
Usage guidelines You can assign multiple jobs to a schedule. The jobs in a schedule are executed concurrently. The jobs to be assigned to a schedule must already exist. To create a job, use the scheduler job command. Examples # Assign job save-job to schedule saveconfig. system-view [Sysname] scheduler schedule saveconfig [Sysname-schedule-saveconfig] job save-job Related commands • scheduler job scheduler schedule • load-sharing mode Use load-sharing mode to set the load sharing mode.
flexible: Performs load sharing by packet type (for example, Layer 2, IPv4, IPv6, MPLS). slot slot-number: Specifies a card by its slot number. (In standalone mode.) chassis chassis-number slot slot-number: Specifies a card on an IRF member device. (In IRF mode.) Usage guidelines If you execute this command multiple times, the most recent configuration takes effect. If the device does not support the specified load sharing mode, an error message is displayed.
Syntax In standalone mode: memory-threshold [ slot slot-number ] minor minor-value severe severe-value critical critical-value normal normal-value undo memory-threshold [ slot slot-number ] In IRF mode: memory-threshold [ chassis chassis-number slot slot-number ] minor minor-value severe severe-value critical critical-value normal normal-value undo memory-threshold [ chassis chassis-number slot slot-number ] Default • Minor alarm threshold: 96 MB. • Severe alarm threshold: 64 MB.
Examples # Set the minor alarm, severe alarm, critical alarm, and normal state thresholds to 64 MB, 48 MB, 32 MB, and 96 MB, respectively. system-view [Sysname] memory-threshold minor 64 severe 48 critical 32 normal 96 password-recovery enable Use password-recovery enable to enable password recovery capability. Use undo password-recovery enable to disable password recovery capability. Syntax password-recovery enable undo password-recovery enable Default Password recovery capability is enabled.
reboot [ slot slot-number ] [ force ] In IRF mode: reboot [ chassis chassis-number [ slot slot-number] ] [ force ] Default The default setting depends on the device model. Views User view Predefined user roles network-admin Parameters chassis chassis-number: Specifies an IRF member device by its chassis number. (In IRF mode.) slot slot-number: Specifies a card by the number of the slot where the card resides. force: Reboots the device immediately without performing any software check.
# If any configuration has changed, reboot the device and save the configuration. reboot Start to check configuration with next startup configuration file, please wait.........DONE! Current configuration will be lost after the reboot, save current configuration? [Y/N]:y Please input the file name(*.cfg)[flash:/startup.cfg] (To leave the existing filename unchanged, press the enter key): flash:/startup.cfg exists, overwrite? [Y/N]:y Validating file. Please wait...
Now rebooting, please wait... reset asset-info Use reset asset-info to clear the asset profile of a physical component, such as, the chassis, a card, a fan, or a power supply.
If you specify a fan or power supply to clear its asset profile, but the specified fan or power supply does not exist, the system prompts that the fan or power supply is not present. Examples # In standalone mode, clear the asset ID of fan 0. system-view [Sysname] reset asset-info fan 0 csn # In IRF mode, clear the asset ID of fan 0 on IRF member device 1.
Predefined user roles network-admin Examples # Clear job execution log information. reset scheduler logfile Related commands display scheduler logfile scheduler job Use scheduler job to create a job and enter job view. If the job already exists, you enter job view directly. Use undo scheduler job to delete a job. Syntax scheduler job job-name undo scheduler job job-name Default No job exists.
Default The size of the job execution log file is 16 KB. Views System view Predefined user roles network-admin Parameters value: Sets the size of the job execution log file, in KB. The value range is 16 to 1024. Usage guidelines The job execution log file saves the execution information of jobs. If the file is full, old records will be replaced by new records. If the size of the log information to be written to the file is larger than the size of the file, the excessive part is not written to the file.
CAUTION: Device reboot interrupts network services. When the date argument is not specified: • If the reboot time is later than the current time, a reboot occurs at the reboot time of the current day. • If the reboot time is earlier than the current time, a reboot occurs at the reboot time the next day. You can have only one reboot schedule. The schedule reboot at command and the schedule reboot delay command overwrite each other, and whichever is configured most recently takes effect.
Examples # Configure the device to reboot after 88 minutes. This example assumes that the current time is 11:48 a.m. on June 6, 2011. scheduler reboot delay 88 Reboot system at 13:16 06/06/2011(in 1 hours and 28 minutes). Confirm? [Y/N]: set asset-info Use set asset-info to set the asset profile of a physical component, such as, the chassis, a card, a fan, or a power supply.
chassis chassis-number: Sets the asset profile on the specified IRF member device. The chassis-number argument represents the IRF member ID of the switch. (In IRF mode) NOTE: When you use this command to set the asset profile of a specific power supply, only the csn csn-number option is supported, and the csn-number argument must be a string up to 48 characters. Usage guidelines If you execute this command repeatedly to set the same item in the asset profile, the most recent configuration is effective.
To configure a schedule: 1. Use the scheduler job command to create a job. 2. In job view, use the command command to assign commands to the job. 3. Use the scheduler schedule command to create a schedule. 4. In schedule view, use the job command to assign the job to the schedule. You can assign multiple jobs to a schedule. The jobs must already exist. 5. In schedule view, use the time at, time once, or time repeating command to specify an execution time for the schedule.
this port will be recovered 8 seconds later. If the detection timer is set to 30 seconds and you change it to 2 seconds ten seconds after the port is shut down, this port is recovered immediately. Examples # Set the detection timer to 100 seconds. system-view [Sysname] shutdown-interval 100 switch-mode jiggle Use switch-mode jiggle enable to enable the forwarding service buttons on switching fabric cards.
Default The device name is HP. Views System view Predefined user roles network-admin Parameters sysname: Specifies a name for the device, a string of 1 to 30 characters. Usage guidelines A device name identifies a device in a network and is used 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.
Examples # Set the operating mode to advanced. system-view [Sysname] system-working-mode advance The system working mode is changed, it will take effect after system restart. temperature-limit Use temperature-limit to set the temperature alarm thresholds for the device. Use undo temperature-limit to restore the default.
Usage guidelines The device can monitor its temperature through its temperature sensors and automatically take actions based on the following thresholds: lower temperature threshold, warning threshold, alarming threshold, and shutdown threshold. The shutdown threshold is not configurable. When the device temperature drops below the lower temperature threshold or reaches the warning threshold, the device logs the event and sends a log message and a trap.
Usage guidelines The specified time (date plus time) must be later than the current system time. The time at command, the time once command, and the time repeating command overwrite one another. The most recently configured command takes effect. Examples # Configure the device to execute schedule saveconfig at 01:01 a.m. on May 11, 2011.
The time at command, the time once command, and the time repeating command overwrite one another, whichever is configured most recently takes effect. Examples # Configure the device to execute schedule saveconfig once at 15:00. system-view [Sysname] scheduler schedule saveconfig [Sysname-schedule-saveconfig] time once at 15:00 Schedule starts at 15:00 5/11/2011. # Configure the device to execute schedule saveconfig once at 15:00 on the coming 15th day in a month.
date: Specifies the start date for the periodic schedule, in the format MM/DD/YYYY or YYYY/MM/DD. The YYYY value is in the range of 2000 to 2035, the MM value is in the range of 1 to 12, and the value range of DD depends on the month value. If you do not specify this argument, the execution start date is the first day when the specified time arrives. interval interval-time: Specifies the execution time interval in the format hh:mm or mm. This argument can consist up to 6 characters.
Tcl commands tclsh Use tclsh to enter Tcl configuration view from user view. Syntax tclsh Views User view Predefined user roles network-admin Usage guidelines From user view, you can use the tclsh command to enter Tcl configuration view, where you can execute the following commands: • All Tcl 8.5 commands. • Comware commands. In this case, the Tcl configuration view is equivalent to the user view. You can use Comware commands in Tcl configuration view in the same way that you do in user view.
Examples # Return from Tcl configuration view to user view.
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 ABCDEFGHIJLMNOPQRSTUV dir,113 A disconnect,78 activation-key,12 display | { begin | exclude | include },2 append,71 display | by-linenum,3 ascii,71 display >,4 authentication-mode,13 display >>,4 auto-execute command,14 display alarm,198 B display asset-info,199 backup startup-configuration,124 display boot-loader,141 binary,72 display clock,202 boot-loader file,137 display command-alias,5 boot-loader update,139 display copyright,202 bootrom update,140 display cpu-usage,203 by
display install rollback,179 ftp ipv6,81 display install which,180 ftp server acl,69 display issu rollback-timer,145 ftp server enable,70 display issu state,145 ftp timeout,70 display memory,218 G display memory-threshold,219 get,82 display power,221 gunzip,116 display role,39 gzip,117 display role feature,45 display role feature-group,48 H display saved-configuration,127 header,233 display scheduler job,221 help,84 display scheduler logfile,222 history-command max-size,23 display sc
more,118 rstatus,95 move,119 rule,58 N S newer,87 save,133 O scheduler job,243 scheduler logfile size,243 open,87 scheduler reboot at,244 P scheduler reboot delay,245 parity,26 scheduler schedule,247 passive,88 screen-length,27 password-recovery enable,238 screen-length disable,10 permit interface,51 send,28 permit vlan,53 set asset-info,246 permit vpn-instance,54 set authentication password,29 protocol inbound,26 shell,30 put,89 shutdown-interval,248 pwd,90 speed,30 pwd,120
tftp-server ipv6 acl,107 user-role,38 time at,252 V time once,253 verbose,99 time repeating,254 version auto-update enable,143 U version check ignore,143 undelete,122 vlan policy deny,64 user,98 vpn-instance policy deny,65 user-interface,37 264