HP 6125 Blade Switch Series Fundamentals Command Reference Part number: 5998-3164 Software version: Release 2103 Document version: 6W100-20120907...
Page 2
HEWLETT-PACKARD COMPANY MAKES NO WARRANTY OF ANY KIND WITH REGARD TO THIS MATERIAL, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Hewlett-Packard shall not be liable for errors contained herein or for incidental or consequential damages in connection with the furnishing, performance, or use of this material.
CLI configuration commands command-alias enable Syntax command-alias enable undo command-alias enable View System view Default level 2: System level Description Use command-alias enable to enable the command keyword alias function. Use undo command-alias enable to disable the command keyword alias function. By default, the command keyword alias function is disabled.
alias: Alias for the keyword, which must be different from the first keyword of any non-undo command. Description Use command-alias mapping to configure a command keyword alias. Use undo command-alias mapping to delete a command keyword alias. By default, a command keyword has no alias. Command keyword aliases take effect only after you enable the command keyword alias function.
[ destination-filename ] [ source { interface interface-type interface-number | ip source-ip-address } ] command is 3. To enable users with the privilege level 0 to execute the tftp server-address put source-filename command (such as tftp 192.168.1.26 put syslog.txt) and disable them from specifying the get, sget, source, or destination-filename option, configure the command-privilege level 0 view shell tftp 1.1.1.1 put a.cfg command.
Examples # Display data in the clipboard. <Sysname> display clipboard ---------------- CLIPBOARD----------------- display current-configuration display command-alias Syntax display command-alias [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Description Use display history-command to display commands saved in the command history buffer.
CTRL_L display ip routing-table CTRL_O undo debug all =Undefined hotkeys= Hotkeys Command CTRL_T NULL CTRL_U NULL =System hotkeys= Hotkeys Function CTRL_A Move the cursor to the beginning of the current line. CTRL_B Move the cursor one character left. CTRL_C Stop current command function. CTRL_D Erase current character.
CTRL_L: Assigns a command to Ctrl+L. CTRL_O: Assigns a command to Ctrl+O. CTRL_T: Assigns a command to Ctrl+T. CTRL_U: Assigns a command to Ctrl+U. command: Command to be assigned to the hotkey. Description Use hotkey to assign a command to a configurable hotkey. Use undo hotkey to restore the default.
return Syntax return View Any view except user view Default level 2: System level Description Use return to return to user view from any other view. Pressing Ctrl+Z has the same effect. Related commands: quit. Examples # Return to user view from GigabitEthernet 1/0/1 interface view. [Sysname-GigabitEthernet1/0/1] return <Sysname>...
super Syntax super [ level ] View User view Default level 0: Visit level Parameters level: User level, which ranges from 0 to 3 and defaults to 3. Description Use super to switch from the current user privilege level to a specified user privilege level. If a level is not specified, the command switches the user privilege level to 3.
View System view Default level 2: System level Parameters local: Uses the local password set with the super password command for user privilege level switching authentication. If no password is set with the command, the system allows a console port user to switch the privilege level without authentication, but denies the switching requests of VTY users.
cipher: Sets a ciphertext password. simple: Sets a plaintext password. password: Specifies the password string. This argument is case sensitive. If simple is specified, it must be a string of 1 to 16 characters. If cipher is specified, it must be a ciphertext string of 1 to 53 characters. Description Use super password to set the password used to switch from the current user privilege level to a higher one.
If you configure two or more ACLs of the same type for a VTY user interface, only the last one takes effect. A basic ACL with the inbound keyword and a basic ACL with the outbound keyword are considered different types of ACLs. The same is true for advanced ACLs. If you apply more than one type of ACL to a VTY user interface, the match order is basic ACL, advanced ACL, and Ethernet frame header ACL.
<Sysname> quit Log in to the console port again. The following message appears. ****************************************************************************** * Copyright (c) 2010-2012 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.
Page 22
To verify the configuration, Telnet to 192.168.1.40. The device automatically Telnets to 192.168.1.41. The following output is displayed: C:\> telnet 192.168.1.40 ****************************************************************************** * Copyright (c) 2010-2012 Hewlett-Packard Development Company, L.P. * Without the owner's prior written consent, * no decompiling or reverse-engineering shall be allowed. ******************************************************************************...
<Sysname> Trying 192.168.1.41 ... Press CTRL+K to abort Connected to 192.168.1.41 ... ****************************************************************************** * Copyright (c) 2010-2012 Hewlett-Packard Development Company, L.P. * Without the owner's prior written consent, * no decompiling or reverse-engineering shall be allowed. ****************************************************************************** <Sysname> This operation is the same as directly logging in to the device at 192.168.1.41. If the Telnet connection to 192.168.1.41 is broken down, the Telnet connection to 192.168.1.40 breaks down at the same time.
<Sysname> system-view [Sysname] user-interface vty 0 [Sysname-ui-vty0] authentication-mode password [Sysname-ui-vty0] set authentication password simple 321 # Authenticate users by username and password for VTY 0. Set the username to 123 and the password to 321. <Sysname> system-view [Sysname] user-interface vty 0 [Sysname-ui-vty0] authentication-mode scheme [Sysname-ui-vty0] quit [Sysname] local-user 123...
command authorization Syntax command authorization undo command authorization View User interface view Default level 3: Manage level Parameters None Description Use command authorization to enable command authorization. Use undo command authorization to restore the default. By default, command authorization is disabled. Logged-in users can execute commands without authorization.
By default, 8 data bits are set for each character. This command is only applicable to the asynchronous serial port (console port). The data bits setting must be the same for the user interfaces of the connecting ports on the device and the terminal device for communication.
Field Description Operation status: Operation status • Running—The HTTP service is enabled. • Stopped—The HTTP service is disabled. display ip https Syntax display ip https [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters |: Filters command output by specifying a regular expression.
Field Description Operation status: Operation status • Running—The HTTPS service is enabled. • Stopped—The HTTPS service is disabled. display telnet client configuration Syntax display telnet client configuration [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters...
Page 29
Parameters num1: Absolute number of a user interface, in the range of 0 to 19. aux: Specifies the AUX user interface. vty: Specifies the VTY user interface. num2: Relative number of a user interface, in the range of 0 to 7 for an AUX user interface and in the range of 0 to 7 for a VTY user interface.
Field Description Type Type and relative number of the user interface. Tx/Rx Transmission/Receive rate of the user interface. Privi Indicates the command level of a user under that user interface. Auth Authentication mode for the users, A, P, L, or N. The physical port that corresponds to the user interface.
Parameters all: Displays information about all user interfaces that the device supports. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
display web users [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow.
Page 33
3: Manage level Parameters character: Specifies the shortcut key for terminating a task, a single character (or its corresponding ASCII code value in the range of 0 to 127) or a string of 1 to 3 characters. Only the first character of a string functions as the shortcut key.
num1: Absolute number of a user interface, in the range of 0 to 19. aux: Specifies the AUX user interface. vty: Specifies the VTY user interface. num2: Relative number of a user interface, in the range of 0 to 7 for an AUX user interface and in the range of 0 to 7 for a VTY user interface.
Use free web-users to log out web users. Related commands: display web users. Examples # Log out all web users. <Sysname> free web-users all history-command max-size Syntax history-command max-size size-value undo history-command max-size View User interface view Default level 2: System level Parameters size-value: Specifies the maximum number of history commands that the buffer can store.
Default level 2: System level Parameters minutes: Specifies the timeout time in minutes, in the range of 0 to 35791. The default value is 10 minutes. seconds: Specifies timeout time in seconds, in the range of 0 to 59. The default value is 0 seconds. Description Use idle-timeout to set the idle-timeout timer.
Examples # Associate the HTTP service with ACL 2001 to only allow the clients within the 10.10.0.0/16 network to access the device through HTTP. <Sysname> system-view [Sysname] acl number 2001 [Sysname-acl-basic-2001] rule permit source 10.10.0.0 0.0.255.255 [Sysname-acl-basic-2001] quit [Sysname] ip http acl 2001 ip http dscp Syntax ip http dscp dscp-value...
Description Use ip http enable to enable the HTTP service. Use undo ip http enable to disable the HTTP service. The device can act as the HTTP server that can be accessed only after the HTTP service is enabled. By default, the HTTP service is disabled. Related commands: display ip http.
ip https acl Syntax ip https acl acl-number undo ip https acl View System view Default level 3: Manage level Parameters acl-number: ACL number, in the range of 2000 to 2999. Description Use ip https acl to associate the HTTPS service with an ACL. Use undo ip https acl to remove the association.
Description Use ip https certificate access-control-policy to associate the HTTPS service with a certificate attribute access control policy. Use undo ip https certificate access-control-policy to remove the association. By default, the HTTPS service is not associated with any certificate attribute access control policy. Association of the HTTPS service with a certificate attribute access control policy can control the access rights of clients.
[Sysname] ip https enable ip https port Syntax ip https port port-number undo ip https port View System view Default level 3: Manage level Parameters port-number: Port number of the HTTPS service, in the range of 1 to 65535. Description Use ip https port to configure the port number of the HTTPS service.
By default, the HTTPS service is not associated with any SSL server-end policy. The HTTPS service can be enabled only after this command is configured successfully. With the HTTPS service enabled, you cannot modify the associated SSL server-end policy or remove the association between the HTTPS service and the SSL server-end policy after the HTTPS service is enabled.
Description Use lock to lock the user interface. This method prevents unauthorized users from using the user interface. When entering the lock command, you are asked to input a password (up to 16 characters) and then confirm it by inputting the password again. To unlock the user interface, you must press Enter and input the correct password.
Use undo parity to restore the default. By default, no parity check is performed. The parity check setting must be the same for the user interfaces of the connecting ports on the device and the target terminal device for communication. Examples # Configure the Console port to perform odd parity check.
Syntax screen-length screen-length undo screen-length View User interface view Default level 2: System level Parameters screen-length: Number of lines to be displayed on the screen, in the range of 0 to 512. The value of 0 disables pausing between screens of output. Description Use screen-length to set the number of lines to be displayed on the screen.
Page 47
num2: Relative number of a user interface, in the range of 0 to 7 for an AUX user interface and in the range of 0 to 7 for a VTY user interface. Description Use send to send messages to the specified user interfaces. To end message input, press Ctrl+Z.
If a user is trying to log in through VTY 1, the message appears. (VTY 1 receives the message from VTY 0 when the interface GigabitEthernet command is input.) [Sysname] interface gigabiteth ***Message from vty0 to vty1 Note please, I will reboot the system in 3 minutes! set authentication password Syntax set authentication password { cipher | simple } password...
shell undo shell View VTY user interface view Default level 3: Manage level Parameters None Description Use shell to enable terminal services on the current user interface. Use undo shell to disable terminal services on the current user interface. You cannot disable the terminal services on the user interface through which you are logged in. By default, terminal services are enabled on all user interfaces.
Use undo speed to restore the default transmission rate. By default, the transmission rate is 9600 bps. The transmission rate setting must be identical for the user interfaces of the connecting ports on the device and the target terminal device for communication. Examples # Set the transmission rate on the AUX 0 user interface to 19200 bps.
View User view Default level 0: Visit level Parameters remote-host: IPv4 address or host name of a remote host, a case-insensitive string of 1 to 20 characters. service-port: TCP port number of the Telnet service on the remote host. It is in the range of 0 to 65535 and defaults to 23.
Examples # Set the DSCP value for IPv4 to use for outgoing Telnet packets to 30 on a Telnet client. <Sysname> system-view [Sysname] telnet client dscp 30 telnet client ipv6 dscp Syntax telnet client ipv6 dscp dscp-value undo telnet client ipv6 dscp View System view Default level...
Description Use telnet client source to specify the source IPv4 address or source interface for sending Telnet packets when the device serves as a Telnet client. Use undo telnet client source to remove the source IPv4 address or source interface for sending Telnet packets.
telnet server dscp Syntax telnet server dscp dscp-value undo telnet server dscp View System view Default level 2: System level Parameters dscp-value: Specifies a DSCP value in the range of 0 to 63. Description Use telnet server dscp to set the DSCP value for IPv4 to use for outgoing Telnet packets on a Telnet server. Use undo telnet server dscp to restore the default.
telnet server ipv6 dscp Syntax telnet server ipv6 dscp dscp-value undo telnet server ipv6 dscp View System view Default level 2: System level Parameters dscp-value: Specifies a DSCP value in the range of 0 to 63. Description Use telnet server ipv6 dscp to set the DSCP value for IPv6 to use for outgoing Telnet packets on a Telnet server.
types (for example, HyperTerminal or Telnet terminal) or both are set to ANSI, when the total number of characters of the currently edited command line exceeds 80, an anomaly such as cursor corruption or abnormal display of the terminal display may occur on the client. Examples # Set the terminal display type to VT100.
copy Copy from one file to another debugging Enable system debugging functions delete Delete a file List files on a file system display Display current system information fixdisk Recover lost chains in storage device format Format the device free Clear user terminal interface Open FTP connection Interprocess communication lock...
Page 58
[Sysname] user-interface aux 0 [Sysname-ui-aux0] # Enter the user interface views of VTYs 0 to 7. <Sysname> system-view [Sysname] user-interface vty 0 7 [Sysname-ui-vty0-7]...
FTP configuration commands FTP server configuration commands display ftp-server Syntax display ftp-server [ | { begin | exclude | include } regular-expression ] View Any view Default level 3: Manage level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
Field Description Allowed idle time of an FTP connection. If there is no packet exchange Timeout value (in minute) between the FTP server and client during the time frame, the FTP connection will be disconnected. Put Method File update method of the FTP server, fast or normal. display ftp-user Syntax display ftp-user [ | { begin | exclude | include } regular-expression ]...
Field Description Idle Duration time of the FTP connection, in minutes HomeDir Authorized path of the logged-in user free ftp user Syntax free ftp user username View User view Default level 3: Manage level Parameters username: Username. You can use the display ftp-user command to view FTP login user information. Description Use free ftp user to manually release the FTP connection established by the specified user.
An ACL enables the FTP server to permit the FTP requests from specific FTP clients. This configuration only filters the FTP connections to be established, and has no effect on existing FTP connections and operations. If you execute the command multiple times, the last specified ACL takes effect. Examples # Associate the FTP service with ACL 2001 to allow only the client 1.1.1.1 to access the FTP server through FTP.
Default level 3: Manage level Parameters None Description Use ftp server enable to enable the FTP server and allow the login of FTP users. Use undo ftp server to disable the FTP server. By default, the FTP server is disabled. Examples # Enable the FTP server.
undo ftp update View System view Default level 3: Manage level Parameters fast: Fast update. In this mode, the FTP server writes the complete file to the memory before writing it to the storage medium. normal: Normal update. In this mode, the FTP server writes the data of a file from the memory to the storage medium multiple times, with up to 4096 bytes per time.
The carriage return characters vary with operating systems. For example, HP and Windows use characters /r/n, and Linux uses characters /n. To transfer files between two systems that use different carriage return characters, determine FTP transfer mode according to the file type. FTP transfers files in the following modes: Binary mode—for program file or picture transmission.
Page 66
Parameters None Description Use bye to disconnect from the remote 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 directly. Related commands: close, disconnect, and quit. Examples # Terminate the connection with the remote FTP server and return to user view.
cdup Syntax cdup View FTP client view Default level 3: Manage level Parameters None Description Use cdup to exit the current directory and enter the upper directory of the FTP server. This command does not change the working directory if the directory is the FTP root directory. Related commands: cd and pwd.
150 Opening ASCII mode data connection for /sample.file. The parsed reply is 150 FTPC: File transfer started with the signal light turned on. FTPC: File transfer completed with the signal light turned off. .226 Transfer complete. FTP: 3304 byte(s) received in 4.889 second(s), 675.00 byte(s)/sec. [ftp] Table 9 Command output Field...
Page 70
Default level 3: Manage level Parameters remotefile: Name of the file or directory on the remote FTP server. localfile: Name of the local file to save the displayed information. Description Use dir to display detailed information about the files and subdirectories under the remote FTP server's current working directory.
disconnect Syntax disconnect View FTP client view Default level 3: Manage level Parameters None Description Use disconnect to disconnect from the remote FTP server but remain in FTP client view. This command is equal to the close command. Examples # Disconnect from the remote FTP server but remain in FTP client view. [ftp] disconnect 221 Server closing.
User(192.168.0.211:(none)):abc 331 Password required for abc Password: 230 User logged in. [ftp] ftp client dscp Syntax ftp client dscp dscp-value undo ftp client dscp View System view Default level 2: System level Parameters dscp-value: Specifies a DSCP value in the range of 0 to 63. Description Use ftp client dscp to set the DSCP value for IPv4 to use for outgoing FTP packets on an FTP client.
Use undo ftp client ipv6 dscp to restore the default. By default, IPv6 uses the DSCP value 0 for outgoing FTP packets on an FTP client. Examples # Set the DSCP value for IPv6 to use for outgoing FTP packets to 30 on an FTP client. <Sysname>...
[Sysname] ftp client source interface vlan-interface 1 ftp ipv6 Syntax ftp ipv6 [ server-address [ service-port ] [ source ipv6 source-ipv6-address ] [ -i interface-type interface-number ] ] View User view Default level 3: Manage level Parameters server-address: IP address or host name of the remote FTP server. service-port: TCP port number of the FTP server, in the range of 0 to 65535.
View FTP client view Default level 3: Manage level Parameters remotefile: Name of the file to be downloaded. localfile: File name used after a file is downloaded and saved locally. If this argument is not specified, the local file uses the name of the source file on the FTP server by default. Description Use get to download a file from a remote FTP server and save it.
Page 77
Examples # Display the local working directory. [ftp] lcd FTP: Local directory now flash:/clienttemp. The output shows that the working directory of the FTP client before execution of the ftp command is flash:/clienttemp. Syntax ls [ remotefile [ localfile ] ] View FTP client view Default level...
[ftp] ls logfile 227 Entering Passive Mode (192,168,1,50,10,49). 125 ASCII mode data connection already open, transfer starting for /logfile/*. logfile.log a.cfg 226 Transfer complete. FTP: 20 byte(s) received in 0.075 second(s), 266.00 byte(s)/sec. # Save information about directory logfile to file aa.txt. [ftp] ls logfile aa.txt 227 Entering Passive Mode (192,168,1,50,4,3).
View FTP client view Default level 3: Manage level Parameters server-address: IP address or host name of a remote FTP server. service-port: Port number of the remote FTP server, in the range of 0 to 65535. The default value is 21. Description Use open to log in to the IPv4 FTP server under FTP client view.
has a link local address. For the configuration of link local addresses, see Layer 3—IP Services Configuration Guide. Description Use open ipv6 to log in to the IPv6 FTP server in FTP client view. At login, enter the username and password for accessing the FTP server. If your input is correct, the login succeeds.
FTP: passive is on Syntax put localfile [ remotefile ] View FTP client view Default level 3: Manage level Parameters localfile: Name of the local file to be uploaded. remotefile: File name used after a file is uploaded and saved on the FTP server. Description Use put to upload a file on the client to the remote FTP server.
Parameters None Description Use pwd to display the working directory on the remote FTP server. Examples # Display the working directory on the remote FTP server. [ftp] cd servertemp [ftp] pwd 257 "/servertemp" is current directory. The output shows that you are accessing the servertemp folder under the FTP root directory. quit Syntax quit...
Page 83
Description Use remotehelp to display the help information of FTP-related commands supported by the remote FTP server. If no argument is specified, FTP-related commands supported by the remote FTP server are displayed. Examples # Display FTP commands supported by the remote FTP server. [ftp] remotehelp 214-Here is a list of available ftp commands Those with '*' are not yet implemented.
Field Description RNFR* Rename the source. RNTO* Rename the destination. ABOR* Abort the transmission. DELE Delete a file. Delete a folder. Create a folder. Print working directory. LIST List files. NLST List file description. SITE* Locate a parameter. SYST Display system parameters. STAT* State.
When you execute the rmdir command, the files in the remote recycle bin in the directory will be automatically deleted. Examples # Delete the temp1 directory from the FTP root directory. [ftp] rmdir /temp1 200 RMD command successful. user Syntax user username [ password ] View FTP client view...
verbose Syntax verbose undo verbose View FTP client view Default level 3: Manage level Parameters None Description Use verbose to enable display of detailed prompt information received from the server. Use undo verbose to disable display of detailed prompt information. By default, the display of detailed prompt information is enabled.
Parameters ipv6: References an IPv6 ACL. If it is not specified, an IPv4 ACL is referenced. acl-number: Number of a basic ACL, in the range of 2000 to 2999. Description Use tftp-server acl to control the device's access to a specific TFTP server using an ACL. Use undo tftp-server acl to restore the default.
vpn-instance vpn-instance-name: Specifies the MPLS L3VPN where the TFTP server belongs. The vpn-instance-name argument is a case-sensitive string of 1 to 31 characters. source: Configures parameters for source address binding. interface interface-type interface-number: Specifies the source interface by its type and number. The •...
Use undo tftp client dscp to restore the default. By default, IPv4 uses the DSCP value 0 for outgoing TFTP packets on a TFTP client. Examples # Set the DSCP value for IPv4 to use for outgoing TFTP packets to 30 on a TFTP client. <Sysname>...
sent to a TFTP server. If the source interface has no primary IP address specified, no TFTP connection can be established. ip source-ip-address: Specifies the source IP address of packets sent to a TFTP server, which is one of the IP addresses configured on the device.
Page 92
put: Uploads a file. source-file: Source filename. destination-file: Destination filename. If it is not specified, this filename is the same as the source filename. Description Use tftp ipv6 to download a file from or upload a local file to a TFTP server in an IPv6 network. Examples # Download filetoget.txt from the TFTP server.
File system management commands In the following examples, the current working directory is the root directory of the storage medium on the device. For the qualified filename formats, see Fundamentals Configuration Guide. Syntax cd { directory | .. | / } View User view Default level...
Default level 3: Manage level Parameters fileurl-source: Name of the source file. fileurl-dest: Name of the target file or folder. Description Use copy to copy a file. If you specify a target folder, the system will copy the file to the specified folder and use the name of the source file as the file name.
Examples # Remove file tt.cfg from the current directory of the Flash on the master. <Sysname> delete tt.cfg Delete flash:/tt.cfg?[Y/N]:y %Delete file flash:/tt.cfg...Done. # Remove file tt.cfg from the Flash root directory of a subordinate device (with the member ID 2): Approach 1 •...
Page 96
-rw- Mar 25 2011 10:50:39 patchstate -rwh 2884 Apr 01 2011 17:56:14 private-data.txt -rw- 3921 Apr 01 2011 17:56:30 startup.cfg -rw- 12955373 Apr 01 2011 15:24:20 backup.bin -rw- Apr 01 2011 17:56:24 system.xml 260736 KB total (2517 KB free) # Display files and folders in the root directory of all storage media on the IRF fabric. (The output depends on your switch model.) <Sysname>...
drw- Apr 26 2011 12:11:53 oldver 260736 KB total (1839 KB free) Table 11 Command output Field Description Directory of Current working directory. Indicates a directory. If this field does not exist, it indicates a file. Indicates that the file or directory is readable. Indicates that the file or directory is writable.
chunk(1) 1236 chunk(2) 1235 filename: test.cfg Table 12 Command output Field Description Logic Chunk Serial number of the logical pages. Physical Page Serial number of the physical pages. The first logical page of this file corresponds to the 1234th physical page chunk(0) 1234 on the device.
Table 13 Command output Field Description Serial number of the bad blocks Physical block Serial number of the physical pages with bad blocks 3200 block(s) total, 3 block(s) bad. Total number of blocks and bad blocks in the NAND Flash memory display nandflash page-data Syntax display nandflash page-data page-value [ | { begin | exclude | include } regular-expression ]...
… execute Syntax execute filename View System view Default level 2: System level Parameters filename: Name of a batch file with a .bat extension. To change the extension of a configuration file to .bat, use the rename command. Description Use execute to execute the specified batch file. Batch files are command line files.
Description Use file prompt to set the file system operation mode. By default, the operation mode is alert. When the operation mode is set to quiet, the system does not warn for any file system operation. To avoid misoperation, use the alert mode. Examples # Set the file system operation mode to alert.
IMPORTANT: Formatting a storage medium results in loss of all the files on the storage medium and these files cannot be restored. In particular, if a startup configuration file exists on a storage medium, formatting the storage medium results in loss of the startup configuration file. Examples # Format the Flash.
Parameters file-url: File name. Description Use more to display the contents of the specified file. It indicates that there are more lines than the screen can display. Pressing Enter displays the next line. Pressing Space displays the next screen. Pressing Ctrl+C or any other key exits the display. This command is valid only for text files.
# Move file b.cfg to the subfolder test2. <Sysname> move b.cfg test2 Move flash:/b.cfg to flash:/test2/b.cfg?[Y/N]:y %Moved file flash:/b.cfg to flash:/test2/b.cfg. Syntax View User view Default level 3: Manage level Parameters None Description Use pwd to display the current path. Examples # Display the current path.
% Renamed file flash:/sample.txt to flash:/sample.bat reset recycle-bin Syntax reset recycle-bin [ /force ] View User view Default level 3: Manage level Parameters /force: Deletes all files in the recycle bin, including files that cannot be deleted by the command without the /force keyword.
Clear flash:/~/b.cfg ?[Y/N]:y Clearing files from flash may take a long time. Please wait..%Cleared file flash:/~/b.cfg... In directory flash:, check whether the file b.cfg in the recycle bin is deleted. <Sysname> dir /all Directory of flash:/ -rwh 3080 Apr 26 2011 16:41:43 private-data.txt -rw-...
Default level 3: Manage level Parameters directory: Name of the folder. Description Use rmdir to remove a folder. The folder must be an empty one. If it is not empty, use the delete command to delete all files and subfolders under it. After you execute the rmdir command successfully, the files in the recycle bin in the folder will be automatically deleted.
Page 108
%Undeleted file flash:/test/b.cfg. Or, you can use the following steps to restore file flash:/test/b.cfg. <Sysname> cd test <Sysname> undelete b.cfg Undelete flash:/test/b.cfg?[Y/N]:y ..%Undeleted file flash:/test/b.cfg.
Configuration file management commands archive configuration Syntax archive configuration View User view Default level 3: Manage level Parameters None Description Use archive configuration to manually archive the running configuration to the configuration archive directory. Before manually archiving the running configuration, complete the following tasks: Create a directory for saving configuration archives.
undo archive configuration interval View System view Default level 3: Manage level Parameters minutes: Specifies the interval for automatically saving the running configuration, in minutes. The value is in the range of 10 to 525600 (365 days). Description Use archive configuration interval to enable the automatic running configuration archiving and set the archiving interval.
Page 111
View System view Default level 3: Manage level Parameters directory: Specifies a configuration archive directory, a case-insensitive string of 1 to 63 characters. The directory must take the format storage-media name:/folder name. In an IRF fabric, this directory must already exist on the master. filename-prefix: Specifies a file name prefix for configuration archives, a case-insensitive string of 1 to 30 characters.
Specify the directory as the configuration archive directory, and configure an archive file name prefix. <Sysname> system-view [Sysname] archive configuration location flash:/archive filename-prefix my_archive archive configuration max Syntax archive configuration max file-number undo archive configuration max View System view Default level 3: Manage level Parameters file-number: Set the maximum number of configuration archives that can be saved.
Default level 2: System level Parameters dest-addr: Specifies a TFTP server's IPv4 address or name, a sting of 1 to 20 characters. dest-filename: Specifies the target file name used for saving the file on the server. The file extension must be .cfg.
If the configuration file is not created on the current device, make sure the configuration file content • format is fully compatible with the current device. The replacement configuration file is not encrypted. Examples # Replace the running configuration with the configuration file in the my_archive_1.cfg configuration file. <Sysname>...
Table 14 Command output Field Description Location Directory for saving running-configuration archives. Filename prefix File name prefix for configuration archives. Interval (in minutes) for the system to automatically archive the running configuration. Archive interval in minutes If automatic configuration saving is disabled, this field is not available. Timestamp Time when the configuration archive was created.
Description Use display current-configuration to display the running configuration. Use this command to verify the configuration you have made. Typically, this command does not display parameters that are set to their default settings. If the system has automatically changed the setting you have made for a parameter, for example, due to a system restriction, this command displays the effective setting rather than the configured one.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Description Use display default-configuration to display the factory defaults. The device is shipped with some basic settings called "factory defaults." These default settings make sure the device can start up and run normally when it has no configuration file or the configuration file is corrupted.
Ctrl+C or any other key to stop displaying the configuration. # Display the saved configuration file, and number each line. <Sysname> display saved-configuration by-linenum version 5.20.99, Release 0000 sysname 6125G Blade Switch irf mac-address persistent timer irf auto-update enable undo irf link-delay...
Description Use display startup to display the running configuration file, the next-startup configuration file. Current startup configuration file is the configuration file used at this startup. Next-startup configuration file is the configuration file used at the next startup. All IRF members maintain the same current startup configuration file as the master. After a master/subordinate switchover, it is normal that the current startup configuration files on them are displayed as NULL, because the new master continues to run with the running configuration rather than rebooting with the previous current startup configuration file.
Page 121
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
reset saved-configuration Syntax reset saved-configuration [ backup | main ] View User view Default level 3: Manage level Parameters backup: Deletes the backup next-startup configuration file. main: Deletes the main next-startup configuration file. Description Use reset saved-configuration to delete next-startup configuration files. Delete the next-startup configuration file if it does not match the software version or has been corrupted.
Parameters src-addr: Specifies a TFTP server's IPv4 address or name. The address cannot be an IPv6 address. src-filename: Specifies the file name of the configuration file to be downloaded. Description Use restore startup-configuration to download a configuration file from a TFTP server and specify it as the next-startup configuration file.
Page 124
system saves configuration in a temporary file and starts overwriting the target next-startup configuration file after the save operation is complete. If a reboot or power failure occurs during the save operation, the next-startup configuration file is still retained. In fast mode, the device directly overwrites the target next-startup configuration file.
The current configuration is saved to the active main board successfully. Slot 2: The current configuration file is saved successfully. Configuration is saved to device successfully. <Sysname> display startup MainBoard: Current startup saved-configuration file: NULL Next main startup saved-configuration file: flash:/startup.cfg Next backup startup saved-configuration file: NULL Slot 2: Current startup saved-configuration file: NULL...
Parameters None Description Use slave auto-update config to enable the configuration auto-update function for all the member devices to automatically save the running configuration as the master device does when you execute the save [ safely ] [ backup | main ] [ force ] command or the save filename all command. Use undo slave auto-update config to disable the function.
Page 127
In an IRF fabric, use the undo startup saved-configuration command with caution. This command can cause an IRF split after the IRF fabric or an IRF member reboots. If neither backup nor main is specified, the startup saved-configuration command specifies the main next-startup configuration file.
Software upgrade commands boot-loader Syntax boot-loader file file-url slot { all | slot-number } { main | backup } View User view Default level 3: Manage level Parameters file file-url: Specifies a file path, a string of 1 to 63 characters. If you enter a relative path, the system automatically converts it to an absolute path.
Examples # Specify test.bin as the main startup system software image file for the master (member ID 1). This example assumes that this file has been saved in the root directory of the storage medium on the master. <Sysname> boot-loader file test.bin slot 1 main This command will set the boot file of the specified board.
# Use the a.btm file to upgrade BootWare on IRF member device 2 (a subordinate device). This example assumes that the upgrade file has been saved in the root directory of the storage medium on the subordinate device. <Sysname> bootrom update file slot2#flash:/a.btm slot 2 This command will update bootrom file on the specified board(s), Continue? [Y/N]:y Now updating bootrom, please wait...
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Description Use display patch to display patch files that have been installed. If a patch file is loaded from a patch package file, this command also displays the package file version. Examples #Display patch files that have been installed.
---------------------------------------------------------------------- 0x43457b0 Table 18 Command output Field Description Patch file location. You can use the patch location command to change the The location of patches location. Member ID. If only one CPU is on the device, slot-number is displayed. If Slot multiple CPUs are on the device, slot-number is displayed for the master CPU and slot-number.cpu-id is displayed for a subordinate CPU.
Page 134
Before executing the command, save the patch package file to the root directory of the Flash on each Member device . Examples # Install files from Flash memory. <Sysname> system-view [Sysname] patch install flash: Patches will be installed. Continue? [Y/N]:y Do you want to run patches after reboot? [Y/N]:y Installing patches…...
Device management commands clock datetime Syntax clock datetime time date View User view Default level 3: Manage level Parameters time: Specifies a time, in the hh:mm:ss format. The hh value ranges from 00 to 23, the mm value ranges from 00 to 59, and the ss value ranges from 00 to 59. Zeros can be omitted, unless you specify 00:00:00.
Parameters zone-name: Specifies a daylight saving time by its zone name, a case-sensitive string of 1 to 32 characters. start-time: Start time, in the hh:mm:ss format. Zeros can be omitted, unless you specify 00:00:00. start-date: Start date, in the MM/DD/YYYY or YYYY/MM/DD format. end-time: End time, in the hh:mm:ss format.
Enter the year, month and date at one time, in the MM/DD/YYYY or YYYY/MM/DD format. • • Enter the year, month and date one by one, separated by spaces. The year ranges from 2000 to 2035; the month can be January, February, March, April, May, June, July, August, September, October, November or December;...
Default level 3: Manage level 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 UTC time. minus: Subtracts a specified offset to UTC time. zone-offset: Specifies an offset to the UTC time, in the hh:mm:ss format. Zeros can be omitted, unless you specify 00:00:00.
[Sysname] copyright-info enable When a Telnet user logs in, the following statement appears: • ****************************************************************************** * Copyright (c) 2010-2011 Hewlett-Packard Development Company, L.P. * Without the owner's prior written consent, * no decompiling or reverse-engineering shall be allowed. ****************************************************************************** <Sysname>...
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
Description Use display clock to display the system time and date. The system time and date are decided by the clock datetime, clock summer-time one-off (or clock summer-time repeating), and clock timezone commands. For more information about how the system time and date are decided, see Fundamentals Configuration Guide.
Page 142
exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Description Use display cpu-usage to display CPU usage statistics. The system regularly (typically at 60-second intervals) collects CPU usage statistics and saves the statistical results in the history record area.
Field Description After a boot, the system calculates and records the average CPU usage rate every five minutes. 1% in last 5 minutes This field displays the average CPU usage rate in the last five minutes. CPU usage rate records (no: The (no+1)th record is displayed. no numbers from 0, a smaller number equals a newer record.
Page 144
exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Description Use display cpu-usage history to display historical CPU usage statistics in a chart. The system regularly collects CPU usage statistics and saves the statistics in the history record area.
10%: 15 minutes ago • • 5%: 16 and 17 minutes ago 10%: 18 minutes ago • 5%: 19 minutes ago • • 2% or lower than 2%: other time # Display the historical CPU usage statistics of task 6. <Sysname>...
Parameters slot slot-number: Displays information about an IRF member switch. The slot-number argument represents the IRF member ID of the switch. subslot subslot-number: Displays information about the specified host or subcard (interface card). The subslot-number represents the subslot of the host or subcard. If the switch does not support the subcard or the subcard is not installed, 0 is displayed.
exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Description Use display device manuinfo to display electronic label data. An electronic label is a profile of a device or card and contains the permanent configuration including the serial number, manufacturing date, MAC address, and vendor name.
include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Description Use display diagnostic-information to display or save operating statistics for multiple feature modules in the system. For diagnosis or troubleshooting, you can use separate display commands to collect running status data module by module, or use the display diagnostic-information command to bulk collect running data for multiple modules.
exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Description Use display job to display the jobs configured by using the job command. If no job is specified, this command displays information about all scheduled jobs.
exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Description Use display memory to display memory usage statistics. If no IRF member switch is specified, the system displays the memory usage statistics for the master.
If no IRF member switch is specified, the system displays the mode of the last reboot of the master. Examples # Display the mode of the last reboot of IRF member switch 1. <Sysname> display reboot-type slot 1 The rebooting type this time is: Cold The output shows that the mode of the last reboot of member switch 1 is Cold boot (cold boot will restart a device by powering it on).
Field Description Execution time of the command and the difference between Executed time the current system time and scheduled time display schedule reboot Syntax display schedule reboot [ | { begin | exclude | include } regular-expression ] View Any view Default level 3: Manage level Parameters...
begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Description Use display system-failure to display the exception handling method.
Transfer Distance(m) : 550(50um),270(62.5um) Digital Diagnostic Monitoring : YES Vendor Name : HP Ordering Name : JD118B Table 25 Command output Field Description transceiver information Transceiver module information. Transceiver Type Transceiver module type. Connector type options: • SC—Fiber connector developed by NTT. Connector Type •...
Page 155
Parameters interface [ interface-type interface-number ]: Displays the alarms present on the transceiver module in the specified interface. The interface-type interface-number argument specifies an interface by its type and number. If no interface is specified, the command displays present alarm information for all transceiver modules.
<Sysname> display transceiver alarm interface gigabitethernet 1/0/3 GigabitEthernet1/0/3 transceiver current alarm information: RX loss of signal RX power low Table 27 Command output Field Description transceiver current alarm information Alarms present on the transceiver module. RX loss of signal Incoming (RX) signal is lost. RX power low Incoming (RX) power level is low.
3.31 6.13 -35.64 -5.19 Table 28 Command output Field Description Digital diagnosis parameters of the transceiver module in transceiver diagnostic information the interface. Current diagnostic parameters Current diagnostic parameters. Digital diagnosis parameter-temperature, in °C, with the Temp.(°C) precision to 1°C. Digital diagnosis parameter-voltage, in V, with the Voltage(V) precision to 0.01 V.
HP 6125G/XG Blade Switch with 1 Processor 1024M bytes SDRAM 256M bytes Nand Flash Memory Hardware Version is Ver.A CPLD Version is 001 BootWare Version is 1.04 [SubSlot 0] Back Panel [SubSlot 1] Front Panel Table 30 Command output Field...
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Description Use display version-update-record to display the system software version update history of the device. The system records the system software version at each reboot. If the software is updated while the switch is running, the system records the update time and new software version.
Page 161
As the starting and ending characters, % is not part of the banners. # Verify the configuration by using Telnet. (The login authentication is not configured.) ****************************************************************************** * Copyright (c) 2010-2011 Hewlett-Packard Development Company, L.P. * Without the owner's prior written consent, * no decompiling or reverse-engineering shall be allowed. ****************************************************************************** Welcome to legal (header legal) Press Y or ENTER to continue, N to exit.
Password: Welcome to shell(header shell) <Sysname> Syntax job job-name undo job job-name View System view Default level 3: Manage level Parameters job-name: Specifies the name of the scheduled job, a string of 1 to 32 characters. Description Use job to schedule a job or enter job view. Use undo job to delete a scheduled job.
Parameters slot slot-number: Specifies a switch. In an IRF fabric, if you do not specify this option, this command reboots all IRF member switches. Description CAUTION: Device reboot can interrupt ongoing services. • If the main system software image file has been corrupted or does not exist, the reboot command cannot •...
reset version-update-record Syntax reset version-update-record View System view Default level 3: Manage level Parameters None Description Use reset version-update-record to clear the system software update history. Related commands: display version-update-record. Examples # Clear the system software update history. <Sysname> system-view [Sysname] reset version-update-record schedule job Syntax...
Page 165
view view: Specifies the view in which the command is executed. The view argument represents the view name, and it takes either of the following values at present: shell—Represents user view. • system—Represents system view. • command: Command to be executed. Description Use schedule job to schedule a job.
schedule reboot at Syntax schedule reboot at hh:mm [ date ] undo schedule reboot View User view Default level 3: Manage level Parameters hh:mm: Specifies a reboot time, in the hh:mm format. The hh value ranges from 0 to 23, and the mm value ranges from 0 to 59.
<Sysname> %Jun 6 11:48:44:860 2010 Sysname CMD/4/REBOOT: vty0(192.168.1.54): Set schedule reboot parameters at 11:48:44 06/06/2010, and system will reboot at 13:16 06/06/2010. shutdown-interval Syntax shutdown-interval time undo shutdown-interval View System view Default level 2: System level Parameters time: Specifies the port status detection timer in seconds, which ranges from 0 to 300. Description Use shutdown-interval to set the port status detection timer.
undo sysname View System view Default level 2: System level Parameters sysname: Name of the device, which is a string of 1 to 30 characters. Description Use sysname to set the device name. Use undo sysname to restore the default. The default device name is HP.
Examples # Set the exception handling method to reboot. <Sysname> system-view [Sysname] system-failure reboot time at Syntax time time-id at time date command command time time-id { one-off | repeating } at time [ month-date month-day | week-day week-daylist ] command command undo time time-id View...
Page 171
The time ID (time-id) must be unique in a job. If two time and command bindings have the same time ID, the one configured last takes effect. Table 31 when you add commands in a job. Table 31 Command schedule options Command Description time timeid at time date command...
<Sysname> system-view [Sysname] job saveconfig [Sysname-job-saveconfig] view monitor [Sysname-job-saveconfig] time 1 repeating at 8:00 month-date 5 command save a.cfg # Schedule a job to save the configuration file at 8:00 AM on Friday and Saturday in the current week, which might be delayed to the next week if the time has passed. <Sysname>...
Changing a clock setting does not affect the schedule set by using the time delay command. The time ID (time-id) must be unique in a job. If two time and command bindings have the same time ID, the one configured last takes effect. Table 32 when you add commands in a job.
Page 174
Input a view name in its complete form. Most commonly used view names include monitor for user view, system for system view, GigabitEthernet x/x/x, and Ten-GigabitEthernet x/x/x for Ethernet interface view, and Vlan-interfacex for VLAN interface view. Related commands: job and time. Examples # Specify the view in which the commands in the job run.
Support and other resources Contacting HP For worldwide technical support information, see the HP support website: http://www.hp.com/support Before contacting HP, collect the following information: Product model names and numbers • • Technical support registration number (if applicable) Product serial numbers •...
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. Braces enclose a set of required syntax choices separated by vertical bars, from which { x | y | ...
Page 177
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.
Page 178
Index A B C D E F G H I J L M O P Q R S T U V W debugging,61 delete,87 acl (user interface view),12 delete,62 activation-key,13 dir,62 archive configuration,102 dir,88 archive configuration interval,102 disconnect,64 archive configuration location,103 display alarm,132...
Page 179
display system-failure,145 idle-timeout,29 display telnet client configuration,21 ip http acl,30 display tftp client configuration,80 ip http dscp,31 display this,1 13 ip http enable,31 display transceiver,146 ip http port,32 display transceiver alarm,147 ip https acl,33 display transceiver diagnosis,149 ip https certificate access-control-policy,33 display transceiver manuinfo,150...