H3C WX Series Command Reference Manual
Hide thumbs Also See for WX Series:
Table of Contents

Advertisement

H3C WX Series Access Controllers
Fundamentals Command Reference
Abstract
This document details the fundamentals commands for the WX series access controllers.
Hangzhou H3C Technologies Co., Ltd.
http://www.h3c.com

Advertisement

Table of Contents
loading

Summary of Contents for H3C WX Series

  • Page 1 H3C WX Series Access Controllers Fundamentals Command Reference Abstract This document details the fundamentals commands for the WX series access controllers. Hangzhou H3C Technologies Co., Ltd. http://www.h3c.com...
  • Page 2 However, the statements, information, and recommendations in this document do not constitute a warranty of any kind, express or implied. Hangzhou H3C Technologies Co., Ltd. and its licensors shall not be liable for technical or editorial errors or omissions contained herein.
  • Page 3: Table Of Contents

    Table of Contents 1 CLI commands ·················································································································11 command-alias enable·········································································································· 11 command-alias mapping······································································································· 11 command-privilege level ······································································································· 12 display command-alias ·········································································································· 14 display history-command ······································································································· 15 display hotkey ······················································································································· 16 hotkey ·································································································································· 17 quit ······································································································································· 19 return ···································································································································· 19 screen-length disable ············································································································ 20 system-view···························································································································...
  • Page 4 display ftp-server ··················································································································· 36 display ftp-user ······················································································································ 37 free ftp user ··························································································································· 38 ftp server acl ························································································································· 38 ftp server enable ··················································································································· 39 ftp timeout ···························································································································· 40 ftp update ···························································································································· 41 FTP client configuration commands ····························································································· 41 ascii ······································································································································ 42 binary ···································································································································...
  • Page 5 put ······································································································································· 60 pwd······································································································································ 61 quit ······································································································································· 62 remotehelp ··························································································································· 62 rmdir ····································································································································· 65 user ······································································································································ 65 verbose ································································································································ 66 4 TFTP client configuration commands ···················································································68 display tftp client configuration······························································································· 68 tftp-server acl ························································································································ 68 tftp ······································································································································· 70 tftp client source···················································································································· 71 tftp ipv6 ································································································································...
  • Page 6 protocol inbound ·················································································································· 90 screen-length ························································································································ 91 send ····································································································································· 92 set authentication password ·································································································· 93 shell ······································································································································ 94 speed (in user interface view) ································································································· 95 stopbits ································································································································· 96 terminal type ························································································································· 97 user privilege level ················································································································· 98 user-interface ························································································································ 99 6 File management commands ··························································································...
  • Page 7 7 Configuration file management commands ······································································ 118 archive configuration··········································································································· 118 archive configuration interval ······························································································· 118 archive configuration location······························································································ 120 archive configuration max ··································································································· 121 backup startup-configuration ······························································································· 122 configuration encrypt ·········································································································· 123 configuration replace file ····································································································· 124 display archive configuration ······························································································· 124 display saved-configuration ·································································································...
  • Page 8 display power ······················································································································ 145 display reboot-type ············································································································· 146 display rps ··························································································································· 147 display schedule reboot ······································································································· 147 display system-failure ··········································································································· 148 job ····································································································································· 148 license append ··················································································································· 149 reboot ································································································································ 150 reset unused porttag ··········································································································· 151 schedule reboot at ·············································································································· 152 schedule reboot delay ·········································································································...
  • Page 9 ······················································································································· 192 patch deactive ··················································································································· 192 patch delete ······················································································································· 193 patch install ························································································································ 194 patch load ·························································································································· 195 patch location ···················································································································· 195 patch run ···························································································································· 196 13 Support and other resources ···························································································· 198 Related documentation ··········································································································· 198 Contacting H3C ······················································································································· 198...
  • Page 10  Support of the H3C WX series access controllers (ACs) for commands may vary by AC model. For more information, see Feature Matrix and Command Matrix in H3C WX Series Access Controllers WX Command References Getting Started.
  • Page 11: Cli Commands

    CLI commands command-alias enable Syntax command-alias enable undo command-alias enable View System view Default level 2: System level Parameters None Description Use the command-alias enable command to enable the command alias function. Use the undo command-alias enable command to disable the command alias function.
  • Page 12: Command-Privilege Level

    undo command-alias mapping cmdkey View System view Default Level 2: System level Parameters cmdkey: The complete form of the first keyword of a command for which an alias will be configured. alias: Specifies the command alias, which cannot be the same as the first keyword of an existing command.
  • Page 13 Default Level 3: Manage level Parameters level level: Command level, which ranges from 0 to 3. view view: Specifies a view. The value shell of the argument view represents user view. The specified view must be the view to which the command provided by the command argument belongs;...
  • Page 14: Display Command-Alias

     When you configure the undo command-privilege command, the value of the command argument can be an abbreviated form of the specified command. You only need to enter the keywords at the beginning of the command. For example, after the undo command-privilege view system ftp command is executed, all commands starting with the keyword ftp (such as ftp server acl, ftp server enable, and ftp timeout) are restored to the default level.
  • Page 15: Display History-Command

    Parameters None Description Use the display command-alias command to display defined command aliases and the corresponding commands. Examples Display the defined command aliases and the corresponding commands. <Sysname> display command-alias Command alias is enabled index alias command key show display display history-command Syntax display history-command...
  • Page 16: Display Hotkey

    quit display hotkey Syntax display hotkey View Any view Default Level 1: Monitor level Parameters None Description Use the display hotkey command to display hotkey information. Examples Display hotkey information. <Sysname> display hotkey ----------------- HOTKEY ----------------- =Defined hotkeys= Hotkeys Command CTRL_G display current-configuration CTRL_L...
  • Page 17: Hotkey

    CTRL_N Display the next command from the history buffer. CTRL_P Display the previous command from the history buffer. CTRL_R Redisplay the current line. CTRL_V Paste text from the clipboard. CTRL_W Delete the word left of the cursor. CTRL_X Delete all characters up to the cursor. CTRL_Y Delete all characters after the cursor.
  • Page 18 By default, the system specifies corresponding commands for Ctrl+G, Ctrl+L and Ctrl+O, while the others are null.  Ctrl+G corresponds to display current-configuration  Ctrl+L corresponds to display ip routing-table  Ctrl+O corresponds to undo debugging all You can customize this scheme as needed however. Examples Example 1: Assign the hot key Ctrl+T to the display tcp status command.
  • Page 19: Quit

    CTRL_X Delete all characters up to the cursor. CTRL_Y Delete all characters after the cursor. CTRL_Z Return to the user view. CTRL_] Kill incoming connection or redirect connection. ESC_B Move the cursor one word back. ESC_D Delete remainder of word. ESC_F Move the cursor forward one word.
  • Page 20: Screen-Length Disable

    Default Level 2: System level Parameters None Description Use the return command to return to user view from current view, as you do with the hot key Ctrl+Z. Related commands: quit. Examples Return to user view from GigabitEthernet 1/0/1 view. [Sysname-GigabitEthernet1/0/1] return <Sysname>...
  • Page 21: System-View

    Examples Disable multiple-screen output of the current user. <Sysname> screen-length disable system-view Syntax system-view View User view Default Level 2: System level Parameters None Description Use the system-view command to enter system view from the current user view. Related commands: quit, return. Examples Enter system view from the current user view.
  • Page 22: Commands For Logging In To An Access Controller

    Commands for logging in to an access controller acl (user interface view) Syntax For common and advanced ACLs: acl [ ipv6 ] acl-number { inbound | outbound } undo acl [ ipv6 ] acl-number { inbound | outbound } For WLAN and Layer 2 ACLs: acl acl-number inbound undo acl acl-number inbound View...
  • Page 23 connection is established. When the device functions as a Telnet client, this keyword is used to restrict the Telnet server that is allowed to access the device. Description Use the acl command to apply an Access Control List (ACL) for limiting the access authority of the current user interface.
  • Page 24: Authorization-Attribute

    When user A (IP address: 192.168.1.26) telnets to the device, the connection is established; when user B (IP address: 192.168.1.60) telnets to the device, the connection failed, and the system prompt appears: %connection closed by remote host! Example 2: When the device accesses another device through Telnet, only the Telnet server with the IP address of 192.168.1.41 can be accessed through this user interface;...
  • Page 25 View Local user view, user group view Default Level 3: Manage level Parameters acl acl-number: Specifies the authorized ACL for the local user(s). The argument acl- number is the authorized ACL number, in the range 2000 to 5999. callback-number callback-number: Specifies the authorization PPP callback number of the local user(s), where callback-number represents the authorization PPP callback number, which is a case-sensitive string of one to 64 characters.
  • Page 26 sensitive string of one to 32 characters. It can consist of English letters, digits, and underlines and must start with an English letter. vlan vlan-id: Specifies the authorized VLAN of the local user(s), where vlan-id represents the VLAN number, in the range 1 to 4094. work-directory directory-name: Specifies the authorized work directory of the local user(s), if the user or users are authorized the FTP or SFTP service type.
  • Page 27: Display Telnet Client Configuration

    [Sysname] user-group abc [Sysname-ugroup-abc] authorization-attribute vlan 3 display telnet client configuration Syntax display telnet client configuration View Any view Default Level 1: Monitor level Parameters None Description Use the display telnet client configuration command to view information about the current Telnet client. At present, the command displays the configuration information of the source IP address or source interface of the Telnet client.
  • Page 28 login: Sets the login banner at authentication. shell: Sets the banner displayed when a non Modem login user enters user view. motd: Sets the login banner. text: Banner message, which can be input in two formats: Input all the text in one line. Altogether 510 characters, including command keyword, can be input.
  • Page 29 As the starting and ending character, % is not a part of a banner. Example 2: Test the configuration remotely using Telnet. (The login banner can be displayed only when login authentication is configured). **************************************************************************** * Copyright (c) 2004-2009 Hangzhou H3C Tech. Co., Ltd. All rights reserved.*...
  • Page 30: Service-Type

    * Without the owner's prior written consent, * no decompiling or reverse-engineering shall be allowed. **************************************************************************** Welcome to legal(header legal) Press Y or ENTER to continue, N to exit. Welcome to motd(header motd) Welcome to login(header login) Login authentication Password: Welcome to shell(header shell) <Sysname>...
  • Page 31: Service-Type Lan-Access

    Description Use the service-type command to specify the login type. Use the undo service-type command to cancel login type configuration. Examples Configure the login type as Telnet for the users logging in using the user name of user. <Sysname> system-view [Sysname] local-user user [Sysname-luser-user] service-type telnet service-type lan-access...
  • Page 32: Telnet

    Use the undo sysname command to revert to the default system name. The CLI prompt reflects the system name of an access controller. For example, if the system name of an access controller is H3C, then the prompt of user view is <H3C>. Examples Set the system name of the access controller to ABC.
  • Page 33: Telnet Client Source

    interface interface-type interface-number: Specifies the source interface. The source IPv4 address of the Telnet packets sent is the IPv4 address of the specified interface. interface-type interface-number represents the interface type and number. ip ip-address: Specifies the source IPv4 address of Telnet packets. Description Use the telnet command to telnet a remote host to remotely manage the host.
  • Page 34: Telnet Ipv6

    By default, no source IPv4 address or source interface is specified for Telnet packets, and the system uses the IPv4 address of the interface determined by the matched route as the source IPv4 address of Telnet packets.  The source IPv4 address or source interface specified by this command is applicable to all Telnet connections.
  • Page 35: Telnet Server Enable

    NOTE: Support for this command depends on your device model. Examples Telnet the remote host with the IPv6 address 5000::1. <Sysname> telnet ipv6 5000::1 telnet server enable Syntax telnet server enable undo telnet server enable View System view Default Level 3: Manage level Parameters None...
  • Page 36: Ftp Configuration Commands

    FTP configuration commands FTP server configuration commands display ftp-server Syntax display ftp-server View Any view Default Level 3: Manage level Parameters None Description Use the display ftp-server command to display the FTP server configuration. After configuring FTP server parameters, you may verify them with this command. Related commands: ftp server enable, ftp timeout, and ftp update.
  • Page 37: Display Ftp-User

    Field Description Allowed idle time of an FTP connection. If there is no packet exchange between the FTP server and client Timeout value (in minute) during the whole period, the FTP connection will be disconnected. File update method of the FTP server, including: Put Method ...
  • Page 38: Free Ftp User

    Field Description HostIP IP address of the currently logged-in user Port Port which the currently logged-in user is using Duration time of the current FTP connection, in Idle minutes HomeDir Authorized path of the present logged-in user free ftp user Syntax free ftp user username View...
  • Page 39: Ftp Server Enable

    View System view Default Level 3: Manage level Parameters acl-number: Basic access control list (ACL) number, in the range 2000 to 2999. Description Use the ftp server acl command to control FTP clients’ access to the AC using an ACL. Use the undo ftp server acl command to restore the default.
  • Page 40: Ftp Timeout

    Parameters None Description Use the ftp server enable command to enable the FTP server and allow the login of FTP users. Use the undo ftp server command to disable the FTP server. By default, the FTP server is disabled to prevent attacks. Examples Enable the FTP server.
  • Page 41: Ftp Update

    <Sysname> system-view [Sysname] ftp timeout 36 ftp update Syntax ftp update { fast | normal } undo ftp update View System view Default Level 3: Manage level Parameters fast: Fast update. normal: Normal update. Description Use the ftp update command to set the file update mode that the FTP server uses while receiving data.
  • Page 42: Ascii

    The carriage return characters vary with operating systems. For example, to indicate the end of a line and transfer to the next line, the H3C device system and Windows system use characters /r/n, and the Linux system uses characters /n. Therefore, after the...
  • Page 43: Bye

    Default Level 3: Manage level Parameters None Description Use the binary command to set the file transfer mode to binary (also called flow mode). By default, the transfer mode is ASCII mode. Related commands: ascii. Examples Set the file transfer mode to binary. [ftp] binary 200 Type set to I.
  • Page 44 The parsed reply is 221 <Sysname> Syntax cd { directory | .. | / } View FTP client view Default Level 3: Manage level Parameters directory: Name of the target directory, in the format of [drive:/]path. For the detailed explanation of the drive and path arguments, see File Management in the Fundamentals Configuration Guide.
  • Page 45: Cdup

    250 CWD command successful. cdup Syntax cdup View FTP client view Default Level 3: Manage level Parameters None Description Use the cdup command to exit the current directory and enter the upper directory of the FTP server. Execution of this command will not change the working directory if the current directory is already the authorized directory (work-directory).
  • Page 46: Debugging

    Parameters None Description Use the close command to terminate the connection to the FTP server, but remain in FTP client view. This command is equal to the disconnect command. Examples Terminate the connection to the FTP server and remain in FTP client view. [ftp] close 221 Server closing control connection [ftp]...
  • Page 47 Connected to 192.168.1.46. 220 FTP service ready. User(192.168.1.46:(none)):ftp 331 Password required for ftp. Password: 230 User logged in. [ftp]undo passive FTP: passive is off [ftp] debugging FTP: debugging switch is on [ftp] get sample.file ---> PORT 192,168,1,44,4,21 200 Port command okay. The parsed reply is 200 --->...
  • Page 48: Delete

    delete Syntax delete remotefile View FTP client view Default Level 3: Manage level Parameters remotefile: File name. Description Use the delete command to permanently delete a specified file on the remote FTP server. A deleted file cannot be restored. To do this, you must be a user with the delete permission on the FTP server. Examples Delete file temp.c.
  • Page 49 Use the dir remotefile command to display the detailed information of the specified file or directory on the remote FTP server. Use the dir remotefile localfile command to display the detailed information of the specified file or directory on the remote FTP server, and save the displayed information into a local file specified by the localfile argument.
  • Page 50: Disconnect

    disconnect Syntax disconnect View FTP client view Default Level 3: Manage level Parameters None Description Use the disconnect command 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.
  • Page 51: Ftp

    NOTE: Currently this command displays the configured source IP address or source interface of the FTP client. Related commands: ftp client source. Examples Display the current configuration information of the FTP client. <Sysname> display ftp client configuration The source IP address is 192.168.0.123 Syntax ftp [ server-address [ service-port ] [ source { interface interface-type interface-number | ip source-ip-address } ] ]...
  • Page 52: Ftp Client Source

     If you specify the parameters, you are prompted to enter the username and password for accessing the FTP server.  The priority of the source address specified with this command is higher than that with the ftp client source command. If you specify the source address with the ftp client source command first and then with the ftp command, the source address specified with the ftp command is used to communicate with the FTP server.
  • Page 53: Ftp Ipv6

    Description Use the ftp client source command to configure the source address of the transmitted FTP packets from the FTP client. Use the undo ftp client source command to restore the default. By default, an AC uses the IP address of the interface determined by the matched route as the source IP address to communicate with an FTP server.
  • Page 54: Get

    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 0 to 65535. The default value is 21. source ipv6 source-ipv6-address: Specifies a source IPv6 address for transmitted FTP packets.
  • Page 55: Lcd

    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 file is saved locally using the source file name to the current working directory, namely the directory where the user executes the ftp command.
  • Page 56 The above information indicates that the working directory of the FTP client before execution of the ftp command is cfa0:/clienttemp. Syntax ls [ remotefile [ localfile ] ] View FTP client view Default Level 3: Manage level Parameters remotefile: Filename or directory on the remote FTP server. localfile: Name of a local file used to save the displayed information.
  • Page 57: Mkdir

    logfile mainar.app arbasicbtm.app test bb.cfg testcfg.cfg 226 Transfer complete. FTP: 87 byte(s) received in 0.132 second(s) 659.00 byte(s)/sec. Example 2: View the information of directory logfile, and save the result to file aa.txt. [ftp] ls logfile aa.txt 227 Entering Passive Mode (192,168,1,46,4,3). 125 ASCII mode data connection already open, transfer starting for /logfile/*.
  • Page 58: Open

    Examples Create subdirectory mytest on the current directory of the remote FTP server. [ftp] mkdir mytest 257 "/mytest" new directory created. open Syntax open server-address [ service-port ] 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 0 to 65535, with the default value of 21.
  • Page 59: Open Ipv6

    [ftp] open ipv6 Syntax open ipv6 server-address [ service-port ] [ -i interface-type interface-number ] View FTP client view Default Level 3: Manage level Parameters server-address: IP address or host name of the remote FTP server. service-port: Port number of the remote FTP server, in the range 0 to 65535. The default value is 21.
  • Page 60: Passive

    passive Syntax passive undo passive View FTP client view Default Level 3: Manage level Parameters None Description Use the passive command to set the data transmission mode to passive. Use the undo passive command to set the data transmission mode to active. The default transmission mode is passive.
  • Page 61: Pwd

    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 the put command to upload a file on the client to the remote FTP server. If no name is assigned to the file to be saved on the FTP server, the name of the source file is used by default.
  • Page 62: Quit

    quit Syntax quit View FTP client view Default Level 3: Manage level Parameters None Description Use the quit command to disconnect from the remote FTP server and exit to user view. Examples Disconnect from the remote FTP server and exit to user view. [ftp] quit 221 Server closing control connection <Sysname>...
  • Page 63 STAT* HELP NOOP* XCUP XCWD XMKD XPWD XRMD 214 Direct comments to H3C company. Example 2: Display the help information for the user command. [ftp] remotehelp user 214 Syntax: USER <sp> <username>. [ftp] Table 4 remotehelp command output description Field...
  • Page 64 Field Description STOR Upload a file STOU* Store unique APPE* Appended file ALLO* Allocation space REST* Restart 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...
  • Page 65: Rmdir

    rmdir Syntax rmdir directory View FTP client view Default Level 3: Manage level Parameters directory: Directory name on the remote FTP server. Description Use the rmdir command to remove a specified directory from the FTP server. Only authorized users are allowed to use this command. ...
  • Page 66: Verbose

    password: Login password. You can input this argument after the username argument plus a space; or you can input this argument when the “Password:” prompt appears after you input the username and then press Enter. Description Use the user command to relog in to the currently accessed FTP server with another username.
  • Page 67 Description Use the verbose command to enable the protocol information function to display detailed prompt information. Use the undo verbose command to disable the protocol information function. By default, the protocol information function is enabled. Examples Example 1: Enable the protocol information function. [ftp] verbose FTP: verbose is on Example 2:...
  • Page 68: Tftp Client Configuration Commands

    TFTP client configuration commands display tftp client configuration Syntax display tftp client configuration View Any view Default Level 1: Monitor level Parameters None Description Use the display tftp client configuration command to display the configuration information of the TFTP client. Related commands: tftp client source.
  • Page 69 View System view Default Level 3: Manage level Parameters ipv6: References an IPv6 ACL. If it is not specified, an IPv4 ACL is referenced. acl-number: Number of a basic ACL, in the range 2000 to 2999. Description Use the tftp server acl command to control the AC’s access to a specific TFTP server using an ACL.
  • Page 70: Tftp

    tftp Syntax tftp server-address { get | put | sget } source-filename [ destination-filename ] [ source { interface interface-type interface-number | ip source-ip-address } ] View User view Default Level 3: Manage level Parameters server-address: IP address or host name of a TFTP server. get: Downloads a file in normal mode.
  • Page 71: Tftp Client Source

    This command applies to IPv4 networks. Related commands: tftp client source. Examples Example 1: Download the config.cfg file from the TFTP server with the IP address of 192.168.0.98 and save it as config.bak. Specify the source IP address to be 192.168.0.92. <Sysname>...
  • Page 72: Tftp Ipv6

    ip source-ip-address: The source IP address of TFTP connections. It must be an IP address that has been configured on the AC. Description Use the tftp client source command to configure the source address of the TFTP packets from the TFTP client. Use the undo telnet client source command to restore the default.
  • Page 73 Default Level 3: Manage level Parameters tftp-ipv6-server: IPv6 address or host name (a string of 1 to 46 characters) of a TFTP server. -i interface-type interface-number: Specifies the egress interface by its type and number. This parameter can be used only in case that the TFTP server address is a link local address and the specified egress interface must have a link local address (For the configuration of link local address, see IPv6 Basics in the Layer 3 –...
  • Page 74: User Interface Configuration Commands

    User interface configuration commands activation-key Syntax activation-key character undo activation-key View User interface view Default Level 3: Manage level Parameters character: Shortcut key for starting terminal sessions, a single character (or its corresponding ASCII code value in the range 0 to 127) or a string of 1 to 3 characters. But in fact, only the first character functions as the shortcut key.
  • Page 75: Auto-Execute Command

    Exit the terminal session on the console port. [Sysname-ui-console0] return <Sysname> quit ****************************************************************************** * Copyright (c) 2004-2009 Hangzhou H3C Tech. Co., Ltd. All rights reserved. * Without the owner's prior written consent, * no decompiling or reverse-engineering shall be allowed. ****************************************************************************** User interface con0 is available.
  • Page 76 Telnet to the device again. The display brief interface loopback command is executed automatically before the telnet connection breaks. The following information displays: ****************************************************************************** * Copyright (c) 2004-2009 Hangzhou H3C Tech. Co., Ltd. All rights reserved. * Without the owner's prior written consent, * no decompiling or reverse-engineering shall be allowed.
  • Page 77: Authentication-Mode

    <Sysname> authentication-mode Syntax authentication-mode { none | password | scheme } undo authentication-mode View User interface view Default Level 3: Manage level Parameters none: Performs no authentication. password: Performs local password authentication. scheme: Performs authorization and authentication of AAA. For more information about AAA, see AAA in the Security Configuration Guide.
  • Page 78: Command Accounting

    [Sysname] user-interface vty 0 [Sysname-ui-vty0] authentication-mode password [Sysname-ui-vty0] set authentication password cipher 321 Example 3: Set to use username and password authentication when users use VTY 0 interface to log onto the device. The username is 123 and the authentication password is 321. <Sysname>...
  • Page 79: Command Authorization

    Examples Enable command accounting for VTY 0. Then the HWTACACS server records the commands executed by the users logging in from VTY 0. <Sysname> system-view [Sysname] user-interface vty 0 [Sysname-ui-vty0] command accounting command authorization Syntax command authorization undo command authorization View User interface view Default Level...
  • Page 80: Display History-Command

    undo databits View User interface view Default Level 2: System level Parameters 5: Five data bits for each character. 6: Six data bits for each character. 7: Seven data bits for each character. 8: Eight data bits for each character. Description Use the databits command to set data bits for the user interface.
  • Page 81: Display User-Interface

    Parameters None Description Use the display history-command command to view the valid history commands that have been executed recently. Currently, the system can display up to 256 history commands. Related commands: history-command max-size. Examples Display history commands. <Sysname> display history-command system-view quit display current-configuration...
  • Page 82 authentication mode and the physical location.  If the summary keyword is present, the command displays all the number and type of user interfaces. Examples Display information about user interface 0. <Sysname> display user-interface 0 Type Tx/Rx Modem Privi Auth AUX 0 9600 : Current user-interface is active.
  • Page 83: Display Users

    display users Syntax display users [ all ] View Any view Default Level 1: Monitor level Parameters all: Displays information about all user interfaces that the device supports. Description Use the display users command to display the information about the user interfaces being used.
  • Page 84: Escape-Key

    Table 6 display users command output description Field Description Absolute number of the user interface Relative number of the user interface. The first column, for example, VTY, represents user interface type, and the second column, for example, 0, represents the relative number of the user interface.
  • Page 85 By default, you can use Ctrl+C to terminate a task. After defining a new shortcut key using the escape-key command, the new shortcut key will function to terminate a task. You can use the display current-configuration command to display the shortcut key you have defined. If you set the character argument in a user interface of a device, when you use the user interface to log in to the device and then telnet to another device through the device you have logged in, the character argument can be used as a control...
  • Page 86: Free User-Interface

    free user-interface Syntax free user-interface { num1 | { aux | console | vty } num2 } View User view Default Level 3: Manage level Parameters num1: Absolute number of a user interface, typically starting from 0 num2: Relative number of a user interface, in the following rules: ...
  • Page 87: Idle-Timeout

    Parameters size-value: History buffer size in the range 0 to 256. It defaults to 10. Up to ten history commands can be stored. Description Use the history-command max-size command to set the size of history command buffer of the current user interface. Use the undo history-command max-size command to restore the default, or 10.
  • Page 88: Lock

    Use the undo idle-timeout command to restore the default. The default idle-timeout is 10 minutes. NOTE:  The system automatically terminates the user’s connection if there is no information interaction between the device and the user in timeout time.  Setting idle-timeout to zero disables the timer and the connection is maintained whether it is idle or not.
  • Page 89: Parity

    <Sysname> lock Please input password<1 to 16> to lock current user terminal interface: Password: Again: locked ! Password: <Sysname> parity Syntax parity { even | mark | none | odd | space } undo parity View User interface view Default Level 2: System level Parameters even: Even parity check.
  • Page 90: Protocol Inbound

    NOTE:  The command is only applicable to asynchronous serial interfaces (including AUX and console ports).  The parity check setting on the terminal must be the same as that on the device user interface for communication. Examples Perform odd parity check on the AUX interface. <Sysname>...
  • Page 91: Screen-Length

    Enable the VTYs 0 through 4 to support SSH only. <Sysname> system-view [Sysname] user-interface vty 0 4 [Sysname-ui-vty0-4] authentication-mode scheme [Sysname-ui-vty0-4] protocol inbound ssh screen-length Syntax screen-length screen-length undo screen-length View User interface view Default Level 2: System level Parameters screen-length: Number of lines displayed on the next screen, in the range 0 to 512, with zero meaning to display all information at one time;...
  • Page 92: Send

    Set the number of lines displayed on the next screen of console user interface to 30. <Sysname> system-view [Sysname] user-interface console 0 [Sysname-ui-console0] screen-length 30 send Syntax send { all | num1 | { aux | console | vty } num2 } View User view Default Level...
  • Page 93: Set Authentication Password

    hello abc <Sysname> A user logging in through VTY 0 wants to restart the device. To inform the other users to take corresponding actions (for example, save the current configuration), the system sends the message “Note please, I will reboot the system!”. ...
  • Page 94: Shell

    password: A case sensitive string. If the password format is set to simple, the password argument must be in plain text. If it is set to cipher, password can be either in cipher text or in plain text depending on what has been input. A plain text password can be a string of no more than 16 consecutive characters, 1234567 for example.
  • Page 95: Speed (In User Interface View)

    Parameters None Description Use the shell command to enable terminal services on the user interface. Use the undo shell command to disable this function. By default, terminal services are enabled on all user interfaces. There are a few restrictions on using the undo shell command: ...
  • Page 96: Stopbits

     600 bps  1200 bps  2400 bps  4800 bps  9600 bps  19200 bps  38400 bps  57600 bps  115200 bps The transmission rate varies with devices and configuration environment. Description Use the speed command to set the transmission rate on the user interface. Use the undo speed command to restore the default transmission rate.
  • Page 97: Terminal Type

    Use the undo stopbits command to restore the default. By default, the stop bit is one. NOTE:  The WX series access controllers do not support the stop bits of 1.5.  The command is only applicable to asynchronous serial interfaces (including AUX and console ports).
  • Page 98: User Privilege Level

    vt100: Specifies the terminal display type as VT100. Description Use the terminal type command to configure the type of terminal display under the current user interface. Use the undo terminal type command to restore the default. By default, the terminal display type is ANSI. The system supports two types of terminal display: ANSI and VT100.
  • Page 99: User-Interface

    NOTE: Command level is divided into four levels of visit, monitor, system, and manage, corresponding to the number 0, 1, 2 and 3 respectively. The administrator can change the command level of a user when necessary. Description Use the user privilege level command to configure the command level that the login users on the current user interface can access.
  • Page 100 2: System level Parameters first-num1: Absolute number of the first user interface, typically starting from 0 last-num1: Absolute number of the last user interface. The value normally starts from 0, but cannot be smaller than the first-num1. first-num2: Relative number of the first user interface, in the following rules: ...
  • Page 101: File Management Commands

    File management commands NOTE:  The current working directory is the root directory of the storage medium on the device in the examples in this manual.  For the qualified filename formats, see File Management in the Fundamentals Configuration Guide. Syntax cd { directory | ..
  • Page 102: Copy

    Example 2: Return to the upper directory (Remember to enter a space after the keyword cd). <Sysname> cd .. Example 3: Return to the root directory. <Sysname> cd / After you change the current directory using the cd command, you can use the pwd command to view the path of the current working directory.
  • Page 103: Delete

    %Copy file flash:/test/1.cfg to flash:/testbackup/1backup.cfg...Done. delete Syntax delete [ /unreserved ] file-url View User view Default Level 3: Manage level Parameters /unreserved: Permanently deletes the specified file, and the deleted file can never be restored. file-url: Name of the file to be deleted. Asterisks (*) are acceptable as wildcards. For example, to remove files with the extension of .txt in the current directory, you may use the delete *.txt command.
  • Page 104 View User view Default Level 3: Manage level Parameters /all: Displays all files. file-url: Name of the file or directory to be displayed. Asterisks (*) are acceptable as wildcards. For example, to display files with the .txt extension under the current directory, you may use the dir *.txt command.
  • Page 105: Execute

    Field Description Indicates that the file is in the recycle bin. execute Syntax execute filename View System view Default Level 2: System level Parameters filename: Name of a batch file with a .bat extension. You can use the rename command to change the suffix of the configuration file to .bat to use it as a batch file. Description Use the execute command to execute the specified batch file.
  • Page 106: File Prompt

    file prompt Syntax file prompt { alert | quiet } View System view Default Level 3: Manage level Parameters alert: Enables the system to warn you about operations that may bring undesirable results such as file corruption or data loss. quiet: Disables the system from warning you about any operation.
  • Page 107: Format

    Description Use the fixdisk command to restore the space of a storage medium when it becomes unavailable because of some abnormal operation. Examples Restore the space of the Flash. <Sysname> fixdisk flash: format Syntax format device [ FAT16 | FAT32 ] View User view Default Level...
  • Page 108: Mkdir

    %Format flash: completed. Example 2: Format the CF card using the FAT16 format. <Sysname> format cfa0: FAT16 mkdir Syntax mkdir directory View User view Default Level 3: Manage level Parameters directory: Name of a folder. Description Use the mkdir command to create a folder under a specified directory on the storage medium.
  • Page 109: More

    So far, this command is valid only for text files. Examples Example 1: Display the contents of file test.txt. <Sysname> more test.txt Welcome to H3C. Example 2: Display the contents of file testcfg.cfg. <Sysname> more testcfg.cfg version 5.20, Beta 1201, Standard...
  • Page 110: Mount

    mount Syntax mount device View User view Default Level 3: Manage level Parameters device: Name of a storage medium (for example cf). Description Use the mount command to mount a hot swappable storage medium, such as a CF card, etc (excluding flash). This command is effective only when the device is in unmounted state.
  • Page 111: Move

    move Syntax move fileurl-source fileurl-dest View User view Default Level 3: Manage level Parameters fileurl-source: Name of the source file. fileurl-dest: Name of the target file or folder. Description Use the move command to move a file. If you specify a target folder, the system moves the source file to the specified folder, with the file name unchanged.
  • Page 112: Rename

    View User view Default Level 3: Manage level Parameters None Description Use the pwd command to display the current path. Examples Display the current path. <Sysname> pwd flash: rename Syntax rename fileurl-source fileurl-dest View User view Default Level 3: Manage level Parameters fileurl-source: Name of the source file or folder.
  • Page 113: Reset Recycle-Bin

    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. Description Use the reset recycle-bin command to permanently delete the files in the recycle bin in the current directory.
  • Page 114: Rmdir

    -rw- 2386 May 08 2008 11:14:20 [a.cfg] -rw- 3608 Dec 03 2007 17:29:30 [b.cfg] 31750 KB total (23875 KB free) //The output shows that in the current directory flash:, there are two files a.cfg and b.cfg in the recycle bin. ...
  • Page 115: Umount

    Parameters directory: Name of the folder. Description Use the rmdir command to remove a folder.  The folder must be an empty one. If not, you must delete all files and subfolders under it with the delete command.  After you execute the rmdir command successfully, the files in the recycle bin under the folder are automatically deleted.
  • Page 116: Undelete

    When a storage medium is connected to a lower version system, the system may not be able to recognize the device automatically, and you must use the mount command for the storage medium to function normally. Before removing a mounted storage medium from the system, you must first unmount it to avoid damaging the device.
  • Page 117 ..%Undeleted file flash:/a.cfg. Example 2: Restore file b.cfg in directory flash:/test from the recycle bin. <Sysname> undelete flash:/test/b.cfg Undelete flash:/test/b.cfg?[Y/N]:y ..%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 ..
  • Page 118: Configuration File Management Commands

    Configuration file management commands archive configuration Syntax archive configuration View User view Default Level 3: Manage level Parameters None Description Use the archive configuration command to save the current running configuration manually. After the execution of this command, the system saves the current running configuration with the specified filename (filename prefix + serial number) to the specified path.
  • Page 119 undo archive configuration interval View System view Default Level 3: Manage level Parameters minutes: Specifies the interval for automatically saving the current running configuration, in minutes. The value ranges from 10 to 525,600 (365 days). Description Use the archive configuration interval command to enable the automatic saving of the current running configuration and set the interval.
  • Page 120: Archive Configuration Location

    <Sysname> system-view [Sysname] archive configuration interval 60 Info: Archive files will be saved every 60 minutes. archive configuration location Syntax archive configuration location directory filename-prefix filename-prefix undo archive configuration location View System view Default Level 3: Manage level Parameters directory: The path of the folder for saving configuration files, a case insensitive string of 1 to 63 characters, in the format of storage medium name:/[folder name]/subfolder name.
  • Page 121: Archive Configuration Max

    %Created dir flash:/archive. <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: The maximum number of configuration files that can be saved, which ranges from 1 to 10.
  • Page 122: Backup Startup-Configuration

    Before executing this command, configure the path and filename prefix of a saved configuration file by using the archive configuration location command; otherwise, the execution of this command fails. If the undo archive configuration location command is executed, the maximum number of configuration files that can be saved also restores to the default.
  • Page 123: Configuration Encrypt

    After the above operation completes, the device backs up file test.cfg to TFTP server 2.2.2.2, where the file is saved as 192-168-1-26.cfg. configuration encrypt Syntax configuration encrypt { private-key | public-key } undo configuration encrypt View System view Default Level 3: Manage level Parameters private-key: Encrypts a configuration file with a private key.
  • Page 124: Configuration Replace File

    <Sysname> system-view [Sysname] configuration encrypt public-key configuration replace file Syntax configuration replace file filename View System view Default Level 3: Manage level Parameters filename: Specifies the name of the replacement configuration file for configuration rollback. Description Use the configuration replace file command to set configuration rollback. After the execution of this command, the current running configuration rolls back to the configuration state based on the specified configuration file (filename).
  • Page 125: Display Saved-Configuration

    Parameters None Description Use the display archive configuration command to display the information about configuration rollback. Examples Display the information about configuration rollback. <Sysname> display archive configuration Location: flash:/archive Filename prefix: my_archive Archive interval in minutes: 120 Maximum number of archive files: 10 Saved archive files: No.
  • Page 126 Description Use the display saved-configuration command to display the contents of the configuration file saved for the next startup of the device. During device management and maintenance, you can use this command to check whether important configurations are saved to the configuration file to be used for the next startup of the device.
  • Page 127: Display Startup

    The configurations are displayed in the order of global, port, and user interface. The More prompt indicates that there are more line that the screen can display. Press Enter to display the next line. Press Space to display the next screen. Press Ctrl+C or any other key to exit the display.
  • Page 128: Reset Saved-Configuration

    Default Level 1: Monitor level Parameters None Description Use the display startup command to display the configuration file used at the current system startup and the configuration file(s) to be used at the next system startup, and also the enabled/disabled status of the Boot ROM access control function if the function is supported on the device.
  • Page 129: Restore Startup-Configuration

    This command will permanently delete the configuration file from the device. Use it with caution. Related commands: save, display saved-configuration. Examples Delete the configuration file for the next startup of the device from the storage medium of the device. <Sysname> reset saved-configuration The saved configuration will be erased.
  • Page 130: Save

    save Syntax save [ file-url | [ safely ] ] View Any view Default Level 2: System level Parameters file-url: File path, where the extension of the file name must be .cfg. safely: Sets the configuration saving mode to safe. If this argument is not specified, the configuration file is saved in fast mode.
  • Page 131: Startup Saved-Configuration

    <Sysname> display startup Current startup saved-configuration file: flash:/hmr.cfg Next main startup saved-configuration file: flash:/aa.cfg Next backup startup saved-configuration file: NULL // The above information indicates that the main startup configuration file for the next system startup is aa.cfg. <Sysname> save The current configuration will be written to the device.
  • Page 132 Related commands: display startup. Examples Specify a startup configuration file for the next system startup. <Sysname> startup saved-configuration testcfg.cfg Please wait ..Done!
  • Page 133: Device Management Commands

    Device management commands NOTE: There are many types of storage media such as flash memory, compact flash (CF), universal serial bus (USB), and hard disk. Different devices support different types of storage media. Flash memory is exemplified in this document. boot-loader Syntax boot-loader file file-url { main | backup }...
  • Page 134: Bootrom

    Related commands: display boot-loader. Examples Specify the main boot file for the next boot of the AC as plat.bin. <Sysname> boot-loader file plat.bin main This command will set boot file, Continue? [Y/N]:y The specified file will be used as the main boot file at the next reboot! bootrom Syntax bootrom { backup | read | restore | update file file-url } [ all | part ]...
  • Page 135: Display Boot-Loader

    To execute the bootrom command successfully, you must first save the Boot ROM program under the root directory of the storage medium. If the keywords all and part are not specified, all contents of the Boot ROM program are operated. Examples Use the a.btm file to upgrade the Boot ROM program of the AC.
  • Page 136: Display Cpu-Usage

    Table 10 display boot-loader command output description Field Description The boot file used this time File used for the current boot of the system attribute Attributes of a boot file: main or backup The boot file used next time Boot file used for the next boot of the AC display cpu-usage Syntax display cpu-usage [ entry-number [ offset ] [ verbose ] [ from-device ] ]...
  • Page 137: Display Cpu-Usage History

    Examples Display information of the current CPU usage statistics on the AC. <Sysname> display cpu-usage Unit CPU usage: 1% in last 5 seconds 1% in last 1 minute 1% in last 5 minutes Table 11 display cpu-usage command output description Field Description Unit CPU usage...
  • Page 138 Description Use the display cpu-usage history command to display the history statistics of the CPU usage in a chart. If no argument is specified, the CPU usage of the whole system is displayed for the AC. The system takes statistics of the CPU usage at an interval and saves the statistical results in the history record area.
  • Page 139: Display Device

    If the cf-card and usb keywords are not provided, the system displays information of all cards on the AC. Examples Display brief information of boards on the AC. <Sysname> display device Slot No. Board Type Status Max Ports H3C WX5002-128 Board Normal...
  • Page 140: Display Device Manuinfo

    AC. The information includes name of the board, device serial number, and vendor name. Examples Display electrical label information of the AC. <Sysname> display device manuinfo DEVICE_NAME : WX5002 DEVICE_SERIAL_NUMBER : DPPMWWB123456 MAC_ADDRESS : 000f-e212-5002 MANUFACTURING_DATE : 2006-08-08 VENDOR_NAME : H3C...
  • Page 141: Display Device Serial-Number

    Table 13 display device manuinfo command output description Field Description DEVICE_NAME AC name DEVICE_SERIAL_NUMBER Device serial number MAC_ADDRESS MAC address of the AC MANUFACTURING_DATE Manufacturing date of the AC VENDOR_NAME Vendor name display device serial-number Syntax display device serial-number View Any view Default Level 1: Monitor level...
  • Page 142: Display Environment

    display environment Syntax display environment [ cpu ] View Any view Default Level 1: Monitor level Parameters cpu: Displays temperature information of the CPUs on the AC. Description Use the display environment command to display the temperature information, including the current temperature and temperature thresholds of boards. Use the display environment cpu command to display the temperature information of all CPUs on the AC.
  • Page 143: Display Job

    Description Use the display fan command to display the operating state of built-in fans. NOTE: Support for this command depends on your AC model. Examples Display the operating state of all fans of the AC. <Sysname> display fan 1 State: Normal 2 State: Normal The above information displays all fans work normally.
  • Page 144: Display License

    Table 15 display job command output description Field Description Job name Name of the scheduled task Specified view View containing the commands in the task Execution time of each command in the Time timeID task Execute command Command string display license Syntax display license View...
  • Page 145: Display Memory

    Field Description License Key License Key Activation Key Activation Key Status License status display memory Syntax display memory View Any view Default Level 1: Monitor level Parameters None Description Use the display memory command to display the usage of the memory of an AC. Examples Display the usage of the memory of the AC.
  • Page 146: Display Reboot-Type

    View Any view Default Level 1: Monitor level Parameters power-id: Displays the status of the specified power supply unit (PSU), where power-id represents the PSU number. The value varies by AC model. Description Use the display power command to display the status of the power supply of an AC. NOTE: Support for this command depends on your AC model.
  • Page 147: Display Rps

    The above information indicates that the last reboot type of the AC is Cold boot (cold boot is to restart an AC by powering it on). (The display of Warm represents a warm boot, which means to restart an AC by using the commands like reboot). display rps Syntax display rps [ rps-id ]...
  • Page 148: Display System-Failure

    Parameters None Description Use the display schedule reboot command to display the AC reboot time set by the user. Related commands: schedule reboot at and schedule reboot delay. Examples Display the reboot time of the AC. <Sysname> display schedule reboot System will reboot at 16:00:00 03/10/2006 (in 2 hours and 5 minutes).
  • Page 149: License Append

    undo job job-name View System view Default Level 3: Manage level Parameters job-name: Specifies name of the scheduled task, a string of 1 to 32 characters. Description Use the job command to create a scheduled task and enter job view, or enter this view directly if a task is ready.
  • Page 150: Reboot

    Description Use the license append command to add a license to a specified AC. NOTE:  After adding the license successfully, you must reboot the AC to make the license effective.  Support for this command depends on your AC model. Examples Add a license to the AC with the license key of F2DED8FB42C662571820, and the activation key of CD59D7CD04AF48D89404.
  • Page 151: Reset Unused Porttag

    <Sysname> reboot Start to check configuration with next startup configuration file, please wait..DONE! This command will reboot the device. Continue? [Y/N]:y Now rebooting, please wait... Example 2: Reboot the AC after the current configuration changes.. <Sysname> reboot Start to check configuration with next startup configuration file, please wait..DONE! This command will reboot the device.
  • Page 152: Schedule Reboot At

    schedule reboot at Syntax schedule reboot at hh:mm [ date ] undo schedule reboot View User view Default Level 3: Manage level Parameters hh:mm: Reboot time of an AC, in the format of hh:mm (hours:minutes). The value of the hh argument ranges from 0 to 23, and the value of the mm argument ranges from 0 to date: Reboot date of an AC, in the format mm/dd/yyyy (month/day/year) or in the format yyyy/mm/dd (year/month/day) The yyyy value ranges from 2000 to 2035, the mm value ranges from 1 to 12, and the dd value depends on a specific month.
  • Page 153: Schedule Reboot Delay

    After you execute the above command, the AC prompts you to confirm the configuration. You must enter <Y> or <y> to make the configuration take effect. The original configuration is overwritten at the same time. If a date (month/day/year or year/month/day) later than the current date is specified for the schedule reboot at command, the AC is rebooted at the reboot time.
  • Page 154 Description Use the schedule reboot delay command to enable the scheduled reboot function and set a reboot wait time. Use the undo schedule reboot command to disable the scheduled reboot function. By default, the scheduled reboot function is disabled. The reboot wait time can be in the format of hh:mm (hours:minutes) or mm (absolute minutes).
  • Page 155: System-Failure

    system-failure Syntax system-failure { maintain | reboot } undo system-failure { maintain | reboot } View System view Default Level 3: Manage level Parameters maintain: Specifies that when the system detects any software abnormality, it maintains the current situation, and does not take any measure to recover itself. reboot: Specifies that when the system detects any software abnormality, it recovers itself through automatic reboot.
  • Page 156: Time

    upper-value: Upper temperature limit in Celsius degrees. The value ranges from 20 to The upper-value argument must be larger than the lower-value argument. Description Use the temperature-limit command to set the temperature alarm threshold on a board. Use the undo temperature-limit command to restore the temperature alarm threshold to the default.
  • Page 157 at time1: Specifies the execution time, in the format of hh:mm (hour:minute), where hh is in the rage of 0 to 23 and mm is in the range of 0 to 59. date: Specifies the execution date, in the format of MM/DD/YYYY (month/date/year) or YYYY/MM/DD (year/month/date), where the year is in the range of 2000 to 2035, the month is in the range of 1 to 12, and the date range depends on the specified month.
  • Page 158 command will be executed on the second day. This command will be executed only once.  Use time timeID one-off at time1 month-date month-day command command to specify the time on the specified day in the current month for executing the command.
  • Page 159: View

    Example 3: Configure to save the configuration file at 8:00 AM on 5 in the current month, which may be executed in the second month if the time has passed. <Sysname> system-view [Sysname] job saveconfig [Sysname-job-saveconfig] view momitor [Sysname-job-saveconfig] time 1 repeating at 8:00 month-date 5 command save a.cfg Example 4: Configure to save the configuration file at 8:00 AM on Friday and Saturday in the...
  • Page 160 undo view View Job view Default Level 3: Manage level Parameters view-name: Specifies name of the view in which commands in the scheduled task are executed. A view name is a string of 1 to 90 characters. Description Use the view command to specify the view in which the commands contained in the scheduled task are automatically executed.
  • Page 161: Basic Configuration Commands

    Basic configuration commands clock datetime Syntax clock datetime time date View User view Default Level 3: Manage level Parameters time: Configured time, in the format of HH:MM:SS, where HH is hours in the range 00 to 23, MM is minutes in the range 00 to 59, and SS is seconds in the range 00 to 59. The first zero in the HH, MM, or SS value can be omitted;...
  • Page 162: Clock Summer-Time One-Off

    clock summer-time one-off Syntax clock summer-time zone-name one-off start-time start-date end-time end-date add- time undo clock summer-time View System view Default Level 3: Manage level Parameters zone-name: Name of the daylight saving time, a string of 1 to 32 characters. It is case sensitive.
  • Page 163: Clock Summer-Time Repeating

    The time range from start-time in start-date to end-time in end-date must be longer than one day and shorter than one year. Otherwise, the argument is considered as invalid and the configuration fails. If the current system time is in the time range specified with this command, the system time automatically adds “add-time”...
  • Page 164 end-time: End time, in the format of HH:MM:SS (hours/minutes/seconds). The zeros in the argument can be omitted except for indicating 0 hours. end-date: End date which can be set in two ways:  Enter the year, month and date at one time, in the format of MM/DD/YYYY (months/days/years) or YYYY/MM/DD.
  • Page 165: Clock Timezone

    Examples For the daylight saving time in abc2 between 06:00:00 on 08/01/2007 and 06:00:00 on 09/01/2007 and from 06:00:00 08/01 to 06:00:00 on 09/01 each year after 2007, set the system clock ahead one hour. <Sysname> system-view [Sysname] clock summer-time abc2 repeating 06:00:00...
  • Page 166: Configure-User Count

    Examples Set the name of the local time zone to Z5, five hours ahead of UTC time. <Sysname> system-view [Sysname] clock timezone z5 add 5 configure-user count Syntax configure-user count number undo configure-user count View System view Default Level 2: System level Parameters number: Number of users, the value range varies with ACs.
  • Page 167: Display Clipboard

    display clipboard Syntax display clipboard View Any view Default Level 1: Monitor level Parameters None Description Use the display clipboard command to view the contents of the clipboard. To copy the specified content to the clipboard: Move cursor to the starting position of content...
  • Page 168: Display Configure-User

    The current system time and date are decided by the clock datetime, clock summer- time one-off (or clock summer-time repeating), clock timezone. For more information about the rules, see Basic System Configuration in the Fundamentals Configuration Guide. Related commands: clock datetime, clock summer-time one-off, clock summer-time repeating, and clock timezone.
  • Page 169: Display Current-Configuration

    Location: 192.168.1.54 : User-interface is active. : User-interface is active and work in async mode. display current-configuration Syntax display current-configuration [ [ configuration [ configuration ] | interface [ interface- type ] [ interface-number ] ] [ by-linenum ] [ | { begin | exclude | include } regular- expression ] ] View Any view...
  • Page 170: Display Diagnostic-Information

    regular-expression: Specifies a regular expression, which is a case sensitive string of 1 to 256 characters. This argument is case-sensitive and can have spaces included. Description Use the display current-configuration command to display the current validated configuration of an AC. You can use the display current-configuration command to view the currently validated configuration.
  • Page 171: Display This

    Description Use the display diagnostic-information command to display or save the statistics of the running status of multiple modules in the system. During daily maintenance or when the system is out of order, you must display the running information of each functional module to locate the problem. Generally, you must execute the corresponding display commands for each module, because each module has independent running information.
  • Page 172: Display Version

    View Any view Default Level 1: Monitor level Parameters by-linenum: Specifies to display the number of each line. Description Use the display this command to display the validated configuration information under the current view. After finishing a set of configurations under a view, you can use the display this command to check whether the configuration takes effect.
  • Page 173: Header

    Default Level 1: Monitor level Parameters None Description Use the display version command to view system version information. By viewing system version information, you can learn about the current software version, rack type and the information related to the main control board and interface boards.
  • Page 174 Description Use the header command to create a banner. Use the undo header command to clear a banner. Examples Configure banners. <Sysname> system-view [Sysname] header incoming % Input banner text, and quit with the character '%'. Welcome to incoming(header incoming)% [Sysname] header legal % Input banner text, and quit with the character '%'.
  • Page 175: Quick Configuration

    Password: Welcome to shell(header shell) <Sysname> quick configuration Syntax quick configuration View System view Default Level 3: Manage level Parameters None Description Use the quick configuration command to enable the quick configuration function. This command implements the function of a configuration guide, to guide you to configure the basic parameters one by one in the way of prompt information.
  • Page 176 View User view Default Level 0: Visit level Parameters level: User level, in the range 0 to 3, and defaults to 3. Description Use the super command to switch from the current user privilege level to a specified user privilege level. If you do not provide the level argument, the current user privilege level is switched to Login users are classified into four levels that correspond to the four command levels.
  • Page 177: Super Authentication-Mode

    super authentication-mode Syntax super authentication-mode { local | scheme } * undo super authentication-mode View System view Default Level 2: System level Parameters local: Authenticates a user by using the local password set with the super password command. In this case, when no password is set with the super password command, privilege level switch succeeds if the user is logged in from the console port (here indicates the console port or the AUX port used as the console port), and the switch fails if the user is logged in from any of the AUX or VTY user interfaces or inputs an...
  • Page 178: Super Password

    <Sysname> system-view [Sysname] super authentication-mode local Example 2: Set the authentication mode for user privilege level switch to scheme local. <Sysname> system-view [Sysname] super authentication-mode scheme local super password Syntax super password [ level user-level ] { simple | cipher } password undo super password [ level user-level ] View System view...
  • Page 179: Sysname

    Use the sysname command to set the name of the AC. Use the undo sysname demand to restore the AC name to the default. The default name of the AC is H3C. Modifying AC name affects the prompt of the CLI. For example, if the AC name is...
  • Page 180 Examples Set the name of the AC to R2000. <Sysname> system-view [Sysname] sysname Test [Test]...
  • Page 181: Http Configuration Commands

    HTTP configuration commands display ip http Syntax display ip http View Any view Default Level 1: Monitor level Parameters None Description Use the display ip http command to display information about HTTP. Examples Display information about HTTP. <Sysname> display ip http HTTP port: 80 WLAN ACL: 100 Basic ACL: 2222...
  • Page 182: Ip Http Acl

    ip http acl Syntax ip http acl acl-number undo ip http acl acl-number View System view Default Level 2: System level Parameters acl-number: ACL number, which ranges from:  100 to 199: WLAN ACL  2000 to 2999: basic IPv4 ACL Description Use the ip http acl command to associate the HTTP service with an ACL.
  • Page 183: Ip Http Enable

    [Sysname-acl-wlan-100] rule permit ssid user-ssid-name [Sysname-acl-wlan-100] quit [Sysname] ip http acl 100 Example 2: Configure to associate the HTTP service with ACL 2001 and only allow the clients within the 10.10.0.0/16 network segment to access the device through the Web function. <Sysname>...
  • Page 184: Ip Http Port

    Example 2: Disable the HTTP service. <Sysname> system-view [Sysname] undo ip http enable ip http port Syntax ip http port port-number undo ip http port View System view Default Level 3: Manage level Parameters port-number: Port number of the HTTP service, which ranges from 1 to 65535. Description Use the ip http port command to configure the port number of the HTTP service.
  • Page 185: Https Configuration Commands

    HTTPS configuration commands display ip https Syntax display ip https View Any view Default Level 1: Monitor level Parameters None Description Use the display ip https command to display information about HTTPS. Examples Display information about HTTPS. <Sysname> display ip https HTTPS port: 443 SSL server policy: test Certificate access-control-policy:...
  • Page 186: Ip Https Acl

    Field Description The basic ACL number associated with the HTTPS Basic ACL service Current connection The number of current connections Operation status, which takes the following values: Operation status  Running: The HTTPS service is enabled.  Stopped: The HTTPS service is disabled. ip https acl Syntax ip https acl acl-number...
  • Page 187: Ip Https Certificate Access-Control-Policy

    Related commands: display ip https (in HTTP in the Fundamentals Command Reference), acl number (in ACL in the ACL and QoS Command Reference). Examples Example 1: Associate the HTTPS service with ACL 100 and only allow the wireless client with the SSID user-ssid-name to access the device through the Web function.
  • Page 188: Ip Https Enable

    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. Related commands: display ip https (in HTTP in the Fundamentals Command Reference);...
  • Page 189: Ip Https Port

    command must be executed for multiple times to ensure normal startup of the HTTPS service. Related commands: display ip https. Examples Enable the HTTPS service. <Sysname> system-view [Sysname] ip https enable ip https port Syntax ip https port port-number undo ip https port View System view Default Level...
  • Page 190: Ip Https Ssl-Server-Policy

    ip https ssl-server-policy Syntax ip https ssl-server-policy policy-name undo ip https ssl-server-policy View System view Default Level 3: Manage level Parameters policy-name: Name of an SSL server policy, which is a string of 1 to 16 characters. Description Use the ip https ssl-server-policy command to associate the HTTPS service with an SSL server-end policy.
  • Page 191: Hotfix Configuration Commands

    Hotfix configuration commands display patch information Syntax display patch information View Any view Default Level 3: Manage level Parameters None Description Use the display patch information command to display the hotfix information. Examples Display hotfix information. <Sysname> display patch information The location of patches: flash: Slot Version Temporaty Common Current Active Running...
  • Page 192: Patch Active

    Field Description Active Number of patches in the ACTIVE state Start-Address Starting address of the memory patch area in the memory patch active Syntax patch active patch-number View System view Default Level 3: Manage level Parameters patch-number: Sequence number of a patch. The valid values of this argument depend on the patch file used.
  • Page 193: Patch Delete

    Default Level 3: Manage level Parameters patch-number: Sequence number of a patch. The valid values of this argument depend on the patch file used. Description Use the patch deactive command to stop running the specified patch and all the ACTIVE patches after the specified patch, and the system will run at the original software version.
  • Page 194: Patch Install

    [Sysname] patch delete 3 slot 5 patch install Syntax patch install patch-location undo patch install View System view Default Level 3: Manage level Parameters patch-location: A string consisting of 1 to 64 characters. It specifies the directory where the patch file locates. Description Use the patch install command to install all the patches in one step.
  • Page 195: Patch Load

    [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… Installation completed, and patches will continue to run after reboot. [Sysname] patch load Syntax patch load View System view Default Level 3: Manage level Parameters...
  • Page 196: Patch Run

    Default Level 3: Manage level Parameters patch-location: A string consisting of 1 to 64 characters, It can be a root directory of a storage medium or be in the format of "root directory + patch file name". Description Use the patch location command to configure the patch file location. By default, the patch file location is flash:.
  • Page 197 This operation is applicable to patches in the ACTIVE state only. If the running of a patch is confirmed, after the system reboots, the patch will still be effective. Examples Confirm the running of patch 3 and all the ACTIVE patches before patch 3. <Sysname>...
  • Page 198: Support And Other Resources

    WX Series WLAN Access Controllers. Contacting H3C Obtaining documentation You can access the most up-to-date H3C product documentation on the World Wide Web at http://www.h3c.com. Click the links on the top navigation bar to obtain different categories of product documentation: Technical Support &...
  • Page 199: Documentation Feedback

    Documentation feedback You can e-mail your comments about product documentation to info@h3c.com. We appreciate your comments. Document conventions and symbols Conventions Convention Element Blue text: Table 24 Cross-reference links and email addresses Blue underlined text: Website addresses http://www.hp.com • Bold text Keys that are pressed •...
  • Page 200 CAUTION: Indicates that failure to follow directions could result in damage to equipment or data. IMPORTANT: Provides clarifying information or specific instructions. NOTE: Provides additional information. TIP: Provides helpful hints and shortcuts.

Table of Contents