HP 6125XLG Blade Switch
Fundamentals
Part number: 5998-5359a
Software version: Release 240x
Document version: 6W101-20150515

Advertising

   Related Manuals for HP 6125XLG

   Summary of Contents for HP 6125XLG

  • Page 1: Command Reference

    HP 6125XLG Blade Switch Fundamentals Command Reference Part number: 5998-5359a Software version: Release 240x Document version: 6W101-20150515...

  • Page 2

    The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty.

  • Page 3: Table Of Contents

    Contents Basic CLI commands ···················································································································································· 1   command-alias enable ············································································································································· 1   command-alias mapping ········································································································································· 1   display | { begin | exclude | include } ················································································································· 2   display | by-linenum ················································································································································ 3   display > ··································································································································································· 4   display >>...

  • Page 4: Table Of Contents

    telnet server dscp ··················································································································································· 41   telnet server enable ··············································································································································· 42   telnet server ipv6 acl ············································································································································· 43   telnet server ipv6 dscp ·········································································································································· 44   terminal type ·························································································································································· 44   user-interface ·························································································································································· 45   user-interface class ················································································································································ 46   user-role ··································································································································································...

  • Page 5: Table Of Contents

    ftp ············································································································································································ 90   ftp client source ······················································································································································ 91   ftp client ipv6 source ············································································································································· 92   ftp ipv6 ··································································································································································· 93   get ··········································································································································································· 94   help ········································································································································································· 95   lcd ··········································································································································································· 96   ls ·············································································································································································· 96   mkdir ······································································································································································· 98  ...

  • Page 6: Table Of Contents

    tar create ······························································································································································ 134   tar extract ····························································································································································· 135   tar list ···································································································································································· 136   undelete ································································································································································ 136   Configuration file management commands ·········································································································· 138   archive configuration ·········································································································································· 138   archive configuration interval ···························································································································· 138   archive configuration location ··························································································································· 139  ...

  • Page 7: Table Of Contents

    more ······································································································································································ 182   move ····································································································································································· 183   ping ······································································································································································· 183   ping ipv6 ······························································································································································ 185   pwd ······································································································································································· 185   quit ········································································································································································ 186   reboot ··································································································································································· 186   reset ssh public-key ·············································································································································· 186   rmdir ····································································································································································· 187   shutdown ······························································································································································ 188  ...

  • Page 8: Table Of Contents

    Python commands ··················································································································································· 241   python ··································································································································································· 241   python filename ··················································································································································· 241   Support and other resources ·································································································································· 243   Contacting HP ······························································································································································ 243   Subscription service ············································································································································ 243   Related information ······················································································································································ 243   Documents ···························································································································································· 243  ...

  • Page 9: Basic Cli Commands

    Basic CLI commands command-alias enable Use command-alias enable to enable the command keyword alias function. Use undo command-alias enable to disable the command keyword alias function. Syntax command-alias enable undo command-alias enable Default The command keyword alias function is disabled. Views System view Predefined user roles...

  • Page 10: Display | { Begin | Exclude | Include }

    Views System view Predefined user roles network-admin Parameters cmdkey: Specifies the first keyword of a non-undo command or the second keyword of an undo command. You must enter the keyword in its complete form. alias: Specifies an alias for the keyword, a string of 1 to 20 characters. It must be different from the first keyword of any non-undo command and the second keyword of any undo command.

  • Page 11: Display | By-linenum

    include: Displays all lines matching the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines Use the | { begin | exclude | include } regular-expression option with a display command to filter the command output.

  • Page 12: Display

    Ten-GigabitEthernet1/1/5 # Display the first line that begins with "user-group" in the running configuration and all of the following lines. <Sysname> display current-configuration | by-linenum begin user-group 114: user-group system 115- 116- return display > Use display > to save the output from a display command to a separate file. Syntax display command >...

  • Page 13

    display >> Use display >> to append the output from a display command to the end of a file. Syntax display command >> filename Views Any view Predefined user roles network-admin network-operator Parameters command: Specifies the keywords and arguments of a display command. To display available keywords and arguments, enter display ?.

  • Page 14: Display Command-alias

    Ten-GigabitEthernet1/1/5 display command-alias Use display command-alias to display the status of the command keyword alias function and the configured command keyword alias. Syntax display command-alias Views Any view Predefined user roles network-admin network-operator Examples # Display command keyword alias information. <Sysname>...

  • Page 15: Display History-command All

    Examples # Display all commands saved in the command history buffer for the current CLI session. <Sysname> display history-command system-view vlan 2 quit Related commands history-command max-size display history-command all Use display history-command all to display all commands saved in the command history buffer for all CLI sessions.

  • Page 16

    Views Any view Predefined user roles network-admin network-operator Examples # Display hotkey information. <Sysname> display hotkey ----------------- Hotkeys ----------------- -Defined command hotkeys- CTRL_G display current-configuration CTRL_L display ip routing-table CTRL_O undo debugging all -Undefined command hotkeys- CTRL_T NULL CTRL_U NULL -System-reserved hotkeys- CTRL_A Move the cursor to the beginning of the line.

  • Page 17: Hotkey

    hotkey Use hotkey to assign a command to a configurable hotkey. Use undo hotkey to restore the default. Syntax hotkey { CTRL_G | CTRL_L | CTRL_O | CTRL_T | CTRL_U } command undo hotkey { CTRL_G | CTRL_L | CTRL_O | CTRL_T | CTRL_U } Default Ctrl_G: display current-configuration (display the running configuration).

  • Page 18: Return

    Syntax quit Views Any view Predefined user roles network-admin network-operator Usage guidelines Executing this command in user view disconnects you from the device. Examples # Return from Ten-GigabitEthernet 1/1/5 interface view to system view and then to user view. [Sysname- Ten-GigabitEthernet1/1/5] quit [Sysname] quit <Sysname>...

  • Page 19: System-view

    Default The default depends on the configuration of the screen-length command in user line view. The following are default settings for the screen-length command: Pausing between screens of output. • Displaying up to 24 lines on a screen. • Views User view Predefined user roles network-admin...

  • Page 20: Login Management Commands

    Login management commands The device supports the FIPS mode that complies with NIST FIPS 140-2 requirements. Support for features, commands, and parameters might differ in FIPS mode and non-FIPS mode. For more information about FIPS mode, see Security Configuration Guide. Some login management commands are available in both user line view and user line class view: A setting in user line view is applied only to the user line.

  • Page 21: Authentication-mode

    If the setting in user line view is not the default setting, the setting in user line view takes effect. • • If the setting in user line view is the default setting but the setting in user line class view is not, the setting in user line class view takes effect.

  • Page 22

    In FIPS mode, the authentication mode is scheme. Views User line view, user line class view Predefined user roles network-admin Parameters none: Disables authentication. password: Performs local password authentication. scheme: Performs AAA authentication. For more information about AAA, see Security Configuration Guide.

  • Page 23: Auto-execute Command

    auto-execute command CAUTION: After configuring this command for a user line, you might be unable to access the CLI through the user line. Make sure you can access the CLI through a different user line before you configure this command and save the configuration.

  • Page 24: Command Accounting

    [Sysname-line-vty0] # To verify the configuration, Telnet to 192.168.1.40. The device automatically Telnets to 192.168.1.41, and the following output is displayed: C:\> telnet 192.168.1.40 ****************************************************************************** * Copyright (c) 2010-2013 Hewlett-Packard Development Company, L.P. * Without the owner's prior written consent, * no decompiling or reverse-engineering shall be allowed.

  • Page 25: Command Authorization

    If the command accounting command is configured in user line class view, command accounting is enabled on all user lines in the class, and you cannot configure the undo command accounting command in the view of a user line in the class. Examples # Enable command accounting for user line VTY 0.

  • Page 26: Databits

    databits Use databits to specify the number of data bits for each character. Use undo databits to restore the default. Syntax databits { 5 | 6 | 7 | 8 } undo databits Default Eight data bits are used for each character. Views User line view Predefined user roles...

  • Page 27

    Parameters number1: Specifies the absolute number of a user line, in the range of 0 to 83. aux: Specifies the AUX line. console: Specifies the console line. vty: Specifies the VTY line. number2: Specifies the relative number of a user line. The value range is 0 to 9 for the AUX or console line and 0 to 63 for the VTY line.

  • Page 28: Display Telnet Client

    Table 2 Command output Fields Description The number indicates the absolute number of the first user line of the user line class, starting from 0. The status indicates whether the user lines of the user line class are being used (X for unused and U for used). number:status For example, if "0:UXXX XXXX XX"...

  • Page 29

    Usage guidelines This is an older command reserved for backward compatibility purposes. Although it has the same functionality and output as the display line command, HP recommends that you use the display line command. Examples # Display user line information.

  • Page 30: Display Users

    2 lines used. 82 lines not used. Table 4 Command output Fields Description The number indicates the absolute number of the first user line of the user line class, starting from 0. The status indicates whether the user lines of the user line class are being used (X for unused and U for used).

  • Page 31: Escape-key

    For more information, see the description of the command. HP recommends that you use a key sequence as the shortcut key. If you define a single character as the shortcut key, pressing the key while a command is being executed stops the command. If no command is being executed, the result depends on the following: If you are managing the local device, pressing the key enters the character as a common character.

  • Page 32: Flow-control

    If you Telnet to another device and manage the remote device, pressing the key does nothing. • You can execute this command multiple times, but only the most recent configuration takes effect. To view the current shortcut key definition, use the display current-configuration command. This command is available in both user line view and user line class view: •...

  • Page 33: Free Line

    Parameters hardware: Performs hardware flow control. none: Disables flow control. software: Performs software flow control. Usage guidelines This command is not supported in VTY line view. The device supports flow control in both the inbound and outbound directions: For flow control in the inbound direction, the local device listens to flow control information from the •...

  • Page 34: Free User-interface

    This command does not release the line you are using. This is an older command reserved for backward compatibility purposes. Although it has the same functionality and output as the free line command, HP recommends you use the free line command. Examples # Release user line VTY 1: Display online users.

  • Page 35: History-command Max-size

    LINE Idle Time Type VTY 0 00:10:49 Jun 11 11:27:32 + 11 VTY 1 00:00:00 Jun 11 11:39:40 Following are more details. VTY 0 Location: 192.168.1.12 VTY 1 Location: 192.168.1.26 : Current operation user. : Current operation user works in async mode. If the operations of the user on VTY 1 impact your operations, log out the user.

  • Page 36: Idle-timeout

    Examples # Set the size of the command history buffer to 20 for user line AUX 0. <Sysname> system-view [Sysname] line aux 0 [Sysname-line-aux0] history-command max-size 20 idle-timeout Use idle-timeout to set the session idle timeout. Use undo idle-timeout to restore the default. Syntax idle-timeout minutes [ seconds ] undo idle-timeout...

  • Page 37: Line Class

    Syntax line { first-number1 [ last-number1 ] | { aux | console | vty } first-number2 [ last-number2 ] } Views System view Predefined user roles network-admin Parameters first-number1: Specifies the absolute number of the first user line, in the range of 0 to 83. last-number1: Specifies the absolute number of the last user line.

  • Page 38

    Predefined user roles network-admin Parameters aux: Specifies the AUX line class view. console: Specifies the console line class view. vty: Specifies the VTY line class view. Usage guidelines To configure the same settings for all user lines of a line class, use this command to enter the user line class view.

  • Page 39: Lock

    Enter s. A terminal session is started. <Sysname> Related commands line lock Use lock to lock the current user line. This method prevents unauthorized users from using the user line. Syntax lock Default By default, the system does not lock any user line. Views User view Predefined user roles...

  • Page 40: Parity

    parity Use parity to specify a parity check mode. Use undo parity to restore the default. Syntax parity { even | mark | none | odd | space } undo parity Default The setting is none, and no parity check is performed. Views User line view Predefined user roles...

  • Page 41: Screen-length

    protocol inbound ssh undo protocol inbound Default In non-FIPS mode, both protocols are supported. In FIPS mode, SSH is supported. Views VTY line view, VTY line class view Predefined user roles network-admin Parameters all: Supports both protocols. ssh: Supports SSH only. telnet: Supports Telnet only.

  • Page 42: Send

    Views User line view, user line class view Predefined user roles network-admin Parameters screen-length: Specifies the maximum number of lines to be displayed on a screen, in the range of 0 to 512. Setting this argument to 0 disables pausing between screens of output. Usage guidelines This command sets the maximum number of lines that can be displayed on one screen when the screen pause function is enabled.

  • Page 43: Set Authentication Password

    number1: Specifies the absolute number of a user line, in the range of 0 to 83. aux: Specifies the AUX line. console: Specifies the console line. vty: Specifies the VTY line. number2: Specifies the relative number of a user line. The value range is 0 to 9 for the AUX or console line and 0 to 63 for the VTY line.

  • Page 44: Shell

    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 hash is specified, it must be a string of 1 to 1 10 characters. Usage guidelines This command is not supported in FIPS mode.

  • Page 45: Speed

    Examples # Disable the terminal service for user line VTY 0 through VTY 4 so no user can log in to the device through the user lines. <Sysname> system-view [Sysname] line vty 0 4 [Sysname-line-vty0-4] undo shell Disable ui-vty0-4 , are you sure? [Y/N]:y [Sysname-line-vty0-4] speed Use speed to set the transmission rate (also called the "baud rate") on a user line.

  • Page 46: Telnet

    Syntax stopbits { 1 | 1.5 | 2 } undo stopbits Default One stop bit is used. Views User line view Predefined user roles network-admin Parameters 1: Uses one stop bit. 1.5: Uses one and a half stop bits. The device does not support using one and a half stop bits. If you specify this keyword, two stop bits are used.

  • Page 47: Telnet Client Source

    vpn-instance vpn-instance-name: Specifies the VPN instance to which the remote host belongs, where vpn-instance-name is a case-sensitive string of 1 to 31 characters. If the remote host belongs to the public network, do not specify this option. source: Specifies a source IPv4 address or source interface for outgoing Telnet packets. interface interface-type interface-number: Specifies the source interface.

  • Page 48: Telnet Ipv6

    Usage guidelines This command is not supported in FIPS mode. The source IPv4 address or source interface that is specified by this command applies to all Telnet connections. However, if a user specifies a source IPv4 address or source interface when executing the telnet command, the setting specified by the user takes effect.

  • Page 49: Telnet Server Acl

    <Sysname> telnet ipv6 5000::1 telnet server acl Use telnet server acl to apply an ACL to filter Telnet logins. Use undo telnet server acl to restore the default. Syntax telnet server acl acl-number undo telnet server acl Default No ACL is used to filter Telnet logins. Views System view Predefined user roles...

  • Page 50: Telnet Server Enable

    Syntax telnet server dscp dscp-value undo telnet server dscp Default IPv4 uses the DSCP value 48 for outgoing Telnet packets on a Telnet server. Views System view Predefined user roles network-admin Parameters dscp-value: Specifies a DSCP value in the range of 0 to 63. Usage guidelines This command is not supported in FIPS mode.

  • Page 51: Telnet Server Ipv6 Acl

    For more information about empty configuration and factory defaults, see Fundamentals Configuration Guide. Examples # Enable the Telnet server function. <Sysname> system-view [Sysname] telnet server enable telnet server ipv6 acl Use telnet server ipv6 acl to apply an IPv6 ACL to filter IPv6 Telnet logins. Use undo telnet server ipv6 acl to restore the default.

  • Page 52: Telnet Server Ipv6 Dscp

    telnet server ipv6 dscp Use telnet server ipv6 dscp to set the DSCP value for IPv6 to use for outgoing Telnet packets on a Telnet server. Use undo telnet server ipv6 dscp to restore the default. Syntax telnet server ipv6 dscp dscp-value undo telnet server ipv6 dscp Default IPv6 uses the DSCP value 48 for outgoing Telnet packets on a Telnet server.

  • Page 53: User-interface

    Specifies the terminal display type VT100. Usage guidelines The device supports two terminal display types: ANSI and VT100. HP recommends that you set the display type to VT100 on both the device and the configuration terminal. If either side uses the ANSI type, a display problem such as cursor positioning error might occur when a command line has more than 80 characters.

  • Page 54: User-interface Class

    This command is an older version of the line class command. It is reserved for backward compatibility purposes. Although it has the same function and output as the line class command, HP recommends you use the line class command.

  • Page 55: User-role

    Examples # Set the user connection timeout to 15 minutes in VTY line class view. <Sysname> system-view [Sysname] user-interface class vty [Sysname-line-class-vty] idle-timeout 15 # In AUX line class view, configure character s as the shortcut key for starting a terminal session. <Sysname>...

  • Page 56

    Views User line view, user line class view Predefined user roles network-admin Parameters role-name: Specifies a user role name, a case-sensitive string of 1 to 63 characters. The user role can be user-defined or predefined (network-admin, network-operator, or level-0 to level- 1 5). If you do not specify this argument, the undo user-role command restores the default user role.

  • Page 57: Rbac Commands

    RBAC commands The device supports the FIPS mode that complies with NIST FIPS 140-2 requirements. Support for features, commands, and parameters might differ in FIPS mode and non-FIPS mode. For more information about FIPS mode, see Security Configuration Guide. description Use description to configure a description for a user role.

  • Page 58

    Predefined user roles network-admin network-operator Parameters name role-name: Specifies a user role name, a case-sensitive string of 1 to 63 characters. Usage guidelines If no user role name is specified, the command displays information about all user roles, including the predefined user roles.

  • Page 59: Display Role Feature

    Field Description Interface policy of the user role: • deny—Denies access to any interface except permitted interfaces. Interface policy • permit (default)—Default interface policy, which enables the user role to access any interface. Permitted interfaces Interfaces accessible to the user role. VPN instance policy of the user role: •...

  • Page 60

    Views Any view Predefined user roles network-admin network-operator Parameters name feature-name: Displays the commands of a feature. The feature-name argument specifies the feature name, and all its letters must be lower case. verbose: Displays the commands of each feature. Usage guidelines If neither name feature-name nor verbose is specified, the display role feature command displays only the list of features available in the system.

  • Page 61

    archive configuration backup startup-configuration to * restore startup-configuration from * reset saved-configuration * startup saved-configuration * display transceiver * bootrom * restore factory-default system-view ; temperature-limit * system-view ; sysname * system-view ; clock timezone * system-view ; clock summer-time * system-view ;...

  • Page 62

    system-view ; domain * system-view ; header * system-view ; aaa * display domain * system-view ; user-group * system-view ; local-user * display local-user * display user-group * display debugging local-server debugging local-server * super * display password-control * reset password-control * system-view ;...

  • Page 63: Display Role Feature-group

    display role feature-group Use display role feature-group to display feature group information. Syntax display role feature-group [ name feature-group-name ] [ verbose ] Views Any view Predefined user roles network-admin network-operator Parameters name feature-group-name: Specifies a feature group. The feature-group-name argument represents the feature group name, a case-sensitive string of 1 to 31 characters.

  • Page 64

    Feature group: L3 Feature: route (Route management related commands) Feature: usr (Unicast static route related commands) Feature: ospf (Open Shortest Path First protocol related commands) Feature: rip (Routing Information Protocol related commands) Feature: isis (ISIS protocol related commands) # Display the commands in each feature group. For more information about the wildcards and marks used in the command list, see Table <Sysname>...

  • Page 65: Feature

    system-view ; ospfv3 * system-view ; interface * ; ospfv3 * Feature: rip (Routing Information Protocol related commands) display rip * display ripng * debugging rip * debugging ripng * system-view ; rip * system-view ; interface * ; rip * system-view ;...

  • Page 66: Interface Policy Deny

    Syntax feature feature-name undo feature feature-name Default A user-defined feature group has no features. Views Feature group view Predefined user roles network-admin Parameters feature-name: Specifies a feature name. You must enter the feature name exactly as it is displayed, including the case. Usage guidelines Repeat the feature command to add multiple features to a feature group.

  • Page 67: Permit Interface

    Usage guidelines The interface policy deny command denies the access of a user role to any interface. To restrict the interface access of a user role to only a set of interfaces: Use interface policy deny to deny access to any interface. Use permit interface to specify accessible interfaces.

  • Page 68

    Views User role interface policy view Predefined user roles network-admin Parameters interface interface-list: Specifies a space-separated list of up to 10 interface items. Each interface item specifies one interface in the interface-type interface-number form or a range of interfaces in the interface-type interface-number to interface-type interface-number form.

  • Page 69: Permit Vlan

    [Sysname-vlan10] port ten-gigabitethernet 1/1/9 # Verify that you cannot enter Ten-GigabitEthernet 1/1/6 interface view. <Sysname> system-view [Sysname] interface ten-gigabitethernet 1/1/6 Permission denied. Related commands display role • • interface policy deny role • permit vlan Use permit vlan to configure a list of VLANs accessible to a user role. Use undo permit vlan to remove the permission for a user role to access specific VLANs.

  • Page 70: Permit Vpn-instance

    Sysname-role-role1] rule 1 permit command system-view ; interface * [Sysname-role-role1] rule 2 permit command system-view ; vlan * [Sysname-role-role1] vlan policy deny [Sysname-role-role1-vlanpolicy] permit vlan 2 4 50 to 100 Verify that you cannot use the user role to work on any VLAN but VLANs 2, 4, and 50 to 100: # Verify that you can create VLAN 100 and enter its view.

  • Page 71: Role

    create, remove, configure only the VPNs in the permitted VPN list, enter their views, and specify them in a feature command. You can repeat the permit vpn-instance command to add permitted MPLS L3VPNs to a user role interface policy. The undo permit interface command removes the entire list of permitted VPNs if no VPN is specified. Any change to a user role VPN instance policy takes effect only on users who log in with the user role after the change.

  • Page 72: Role Default-role Enable

    Default The system has 19 predefined user roles: network-admin, network-operator, level-n (where n represents an integer in the range of 0 to 15), and security-audit. Views System view Predefined user roles network-admin Parameters name role-name: Specifies a username. The role-name argument is a case-sensitive string of 1 to 63 characters.

  • Page 73: Role Feature-group

    Views System view Predefined user roles network-admin Usage guidelines An AAA authentication user must have at least one user role to log in to the device. The default user role function assigns the network-operator user role to a local or remote AAA authenticated user if the AAA server has not authorized the user to use any user roles.

  • Page 74: Rule

    After you create a user role feature group, you can use the display role feature command to display the features available in the system and use the feature command to add features to the feature group. Examples # Create the feature group security-features. <Sysname>...

  • Page 75

    feature [ feature-name ]: Specifies one or all features. The feature-name argument specifies a feature name. If no feature name is specified, you specify all the features in the system. When you specify a feature, you must enter its name exactly as displayed by display role feature, including the case. feature-group feature-group-name: Specifies a user-defined or pre-defined feature group.

  • Page 76

    Table 8 Command string configuration rules Rule Guidelines Use a semicolon to separate the command of each view that you must enter before you access a command or a set of commands, except for the commands (for example, display and dir) available in user view or any view.

  • Page 77: Super

    Rule Guidelines The system does not treat these redirect signs and the parameters that follow them as part of command lines. However, in user role command Do not include the vertical bar (|), rules, they are handled as part of command lines. As a result, no rule that greater-than sign (>), or double includes any of these signs can find a match.

  • Page 78: Super Authentication-mode

    Parameters rolename: Specifies a user role, a case-sensitive string of 1 to 63 characters. The user role must exist in the system. If no user role is specified, you are assigned the user role network-admin. Usage guidelines To enable users to obtain the user role that they are not logged in with, you must configure user role authentication.

  • Page 79: Super Password

    Usage guidelines The authentication setting applies only to AUX and VTY users. An AUX user can obtain the user role without authentication. For local password authentication, use the super password command to set a password. For remote AAA authentication, set the username and password on the RADIUS or HWTACACS server. If you specify both local and scheme keywords, the keyword first entered in the command takes precedence, as follows: scheme local—Enables remote-then-local authentication mode.

  • Page 80: Vlan Policy Deny

    Views System view Predefined user roles network-admin Parameters role rolename: Specifies a user role, a case-sensitive string of 1 to 63 characters. The user role must exist in the system. If you do not specify a user role, this command sets a password for the user role network-admin.

  • Page 81: Vpn-instance Policy Deny

    Default A user role has no access to any VLAN. Views User role view Predefined user roles network-admin Usage guidelines The vlan policy deny command denies the access of a user role to any VLAN. To restrict the VLAN access of a user role to only a set of VLANs: Use vlan policy deny to deny access to any VLAN.

  • Page 82

    undo vpn-instance policy deny Default A user role has access to any VPN. Views User role view Predefined user roles network-admin Usage guidelines The vpn-instance policy deny command denies the access of a user role to any VPN. To restrict the VPN access of a user role to only a set of VPNs: Use vpn-instance policy deny to deny access to any VPN.

  • Page 83: Ftp Commands

    FTP commands The device supports the FIPS mode that complies with NIST FIPS 140-2 requirements. Support for features, commands, and parameters might differ in FIPS mode and non-FIPS mode. For more information about FIPS mode, see Security Configuration Guide. FTP is not supported in FIPS mode. FTP server commands display ftp-server Use display ftp-server to display FTP server configuration and status information.

  • Page 84: Free Ftp User

    Syntax display ftp-user Views Any view Predefined user roles network-admin network-operator Examples # Display detailed information about logged-in FTP users. <Sysname> display ftp-user UserName HostIP Port HomeDir root 192.168.20.184 46539 flash: If a username exceeds 10 characters, a host IP address exceeds 15 bits, or a directory name exceeds 37 bits, the exceeded part is displayed in the next line and right justified, as shown below.

  • Page 85: Free Ftp User-ip

    Parameters username: Specifies a username. You can use the display ftp-user command to display FTP user information. Examples # Release the FTP connections established by using the user account ftpuser. <Sysname> free ftp user ftpuser Are you sure to free FTP connection? [Y/N]:y <Sysname>...

  • Page 86: Ftp Server Acl

    Parameters ipv6-address: Specifies the source IPv6 address of an FTP connection. You can use the display ftp-user command to view the source IPv6 addresses of FTP connections. port port: Specifies the source port of an FTP connection. You can use the display ftp-user command to view the source ports of FTP connections.

  • Page 87: Ftp Server Dscp

    ftp server dscp Use ftp server dscp to set the DSCP value for IPv4 to use for outgoing FTP packets on an FTP server. Use undo ftp server dscp to restore the default. Syntax ftp server dscp dscp-value undo ftp server dscp Default IPv4 uses the DSCP value 0 for outgoing FTP packets on an FTP server.

  • Page 88: Ftp Server Ipv6 Dscp

    <Sysname> system-view [Sysname] ftp server enable ftp server ipv6 dscp Use ftp server ipv6 dscp to set the DSCP value for IPv6 to use for outgoing FTP packets on an FTP server. Use undo ftp server ipv6 dscp to restore the default. Syntax ftp server ipv6 dscp dscp-value undo ftp server ipv6 dscp...

  • Page 89: Ftp Timeout

    Parameters policy-name: Specifies an SSL server policy by its name, a string of 1 to 31 characters. Usage guidelines After you associate an SSL server policy with the FTP server, a client that supports SFTP will establish a secure connection to the device to ensure data security. Examples # Associate SSL server policy myssl with the FTP server.

  • Page 90: Ftp Client Commands

    FTP client commands Before executing FTP client configuration commands, make sure you have configured authorization settings for users on the FTP server. Authorized operations include viewing the files in the working directory, reading/downloading/uploading/renaming/removing files, and creating directories. The FTP client commands in this section are supported by the device, but whether they can be executed successfully depends on the FTP server.

  • Page 91: Binary

    You can perform this operation only after you log in to the FTP server. The carriage return characters vary with operating systems. For example, HP and Windows use /r/n, and Linux uses /n. To transfer files between two systems that use different carriage return characters, select the FTP transfer mode according to the file type.

  • Page 92

    Examples # Set the file transfer mode to binary. ftp> binary 200 TYPE is now 8-bit binary Related commands ascii Use bye to terminate the connection to the FTP server and return to user view. If no connection is established between the device and the remote FTP server, use this command to return to user view.

  • Page 93: Cdup

    represents a folder or subfolder in the current directory. For more information about the drive and path arguments, see Fundamentals Configuration Guide. ..: Returns to the upper directory. Executing the cd .. command is the same as executing the cdup command.

  • Page 94: Close

    ftp> pwd 257 "/ftp/subdir" is your current location ftp> cdup 250 OK. Current directory is /ftp ftp> pwd 257 "/ftp" is your current location Related commands • • close Use close to terminate the connection to the FTP server without exiting FTP client view. Syntax close Views...

  • Page 95: Delete

    Predefined user roles network-admin Usage guidelines When FTP client debugging is enabled, executing this command disables FTP client debugging. When FTP client debugging is disabled, executing this command enables FTP client debugging. Examples # Enable and then disable FTP client debugging. ftp>...

  • Page 96

    Predefined user roles network-admin Parameters remotefile: Specifies the name of a file on the FTP server. Usage guidelines You can perform this operation only after you log in to the FTP server. To perform this operation, you must have delete permission on the FTP server. Examples # Delete file b.txt.

  • Page 97: Disconnect

    -rwxr-xr-x 0 Sep 27 2010 kernel.bin drwxr-xr-x 8192 Jul 5 09:15 logfile drwxr-xr-x 8192 Jul 2 14:33 seclog -rwxr-xr-x 40808448 Jul 2 14:33 simware-cmw710-sys tem-a1801.bin -rwxr-xr-x 3050 Jul 7 12:26 startup.cfg -rwxr-xr-x 54674 Jul 4 09:24 startup.mdb -rwxr-xr-x 1481 Jul 7 12:34 x.cfg 226 11 matches total # Save detailed information about file a.txt to s.txt.

  • Page 98: Display Ftp Client Source

    display ftp client source Use display ftp client source to display the source address settings on the FTP client. Syntax display ftp client source Views Any view Predefined user roles network-admin network-operator Examples # Display the source address settings on the FTP client. <Sysname>...

  • Page 99: Ftp Client Source

    If no primary IPv4 address is configured on the source interface, the connection cannot be established. ip source-ip-address: Specifies an IPv4 address. This address must have been configured on the • device. Usage guidelines This command is only applicable to IPv4 networks. If no parameters are specified, this command enters the FTP client view without logging in to the FTP server.

  • Page 100: Ftp Client Ipv6 Source

    server. Make sure the interface is up and has the primary IPv4 address configured. Otherwise, the transmission fails. ip source-ip-address: Specifies the source IP address for outgoing FTP packets. It must be the IPv4 address of an interface in up state. Otherwise, the transmission fails. Usages guidelines If you execute this command multiple times, the most recent configuration takes effect.

  • Page 101: Ftp Ipv6

    The source address specified with the ftp ipv6 command takes precedence over the source address specified with the ftp client ipv6 source command. The source address specified with the ftp client ipv6 source command applies to all FTP connections. The source address specified with the ftp ipv6 command applies only to the current FTP connection.

  • Page 102

    220 FTP service ready. User (2000::154): root 331 Password required for root. Password: 230 User logged in Remote system type is HP Use get to download a file from the FTP server and save the file. Syntax get remotefile [ localfile ] Views...

  • Page 103: Help

    Examples # Download file a.txt and save it as b.txt in the working directory accessed by the ftp command. ftp> get a.txt b.txt local: b.txt remote: a.txt 150 Connecting to port 47457 226 File successfully transferred 1569 bytes received in 0.00527 seconds (290.6 kbyte/s) # Download file a.txt to the folder test from the working directory accessed by the ftp command.

  • Page 104

    ascii debug mkdir reget status binary newer rstatus system disconnect open rhelp user passive rename verbose cdup help reset close restart # Display the help information for the dir command. ftp> help dir list contents of remote directory Related commands Use lcd to display the local working directory of the FTP client.

  • Page 105

    Use ls remotefile localfile to save detailed information about a specific file or directory on the FTP server to a local file. Syntax ls [ remotefile [ localfile ] ] Views FTP client view Predefined user roles network-admin Parameters remotefile: Specifies the file name or directory on the FTP server. localfile: Specifies the local file used to save the displayed information.

  • Page 106: Mkdir

    Related commands mkdir Use mkdir to create a subdirectory in the current directory on the FTP server. Syntax mkdir directory Views FTP client view Predefined user roles network-admin Parameters directory: Specifies the name of the directory to be created. Usage guidelines You can perform this operation only after you log in to the FTP server.

  • Page 107: Open

    Press CTRL+C to abort. Connected to 192.168.40.7 (192.168.40.7). 220 FTP service ready. User (192.168.40.7:(none)): root 331 Password required for root. Password: 230 User logged in. Remote system type is HP. ftp> passive Use passive to set the FTP operation mode to passive.

  • Page 108

    Syntax passive Default The FTP operation mode is passive. Views FTP client view Predefined user roles network-admin Usage guidelines FTP can operate in either of the following modes: Active mode—The FTP server initiates the TCP connection. • Passive mode—The FTP client initiates the TCP connection. •...

  • Page 109

    To upload a file in some other directory, the localfile argument must specify the target directory plus the file name such as flash:/subdirectory/a.cfg. Otherwise, the command fails to take effect. Examples # Upload the file a.txt in the working directory accessed by the ftp command and save the file as b.txt on the FTP server.

  • Page 110: Quit

    257 "/subdir" is your current location quit Use quit to terminate the connection to the FTP server and return to user view. Syntax quit Views FTP client view Predefined user roles network-admin Examples # Terminate the connection to the FTP server and return to user view ftp>...

  • Page 111: Rename

    local: s.bin remote: s.bin 350 Restarting at 1749706 150-Connecting to port 47429 150 38143.3 kbytes to download 226 File successfully transferred 39058742 bytes received in 66.2 seconds (576.1 kbyte/s) rename Use rename to rename a file. Syntax rename [ oldfilename [ newfilename ] ] Views FTP client view Predefined user roles...

  • Page 112: Restart

    Syntax reset Views FTP client view Predefined user roles network-admin Examples # Clear the reply information received from the FTP server. ftp> reset restart Use restart to specify the marker to retransmit a file. Syntax restart marker Views FTP client view Predefined user roles network-admin Parameters...

  • Page 113

    Use rhelp protocol-command to display the help information of an FTP-related command supported by the FTP server. Syntax rhelp [ protocol-command ] Views FTP client view Predefined user roles network-admin Parameters protocol-command: Specifies an FTP-related command. Usage guidelines You can perform this operation only after you log in to the FTP server. Examples # Display the FTP-related commands supported by the FTP.

  • Page 114: Rmdir

    Field Description MLSD Lists file content. PORT Active mode (IPv4). EPRT Active mode (IPv6). PASV Passive mode (IPv4). EPSV Passive mode (IPv6). REST Restarts. RETR Downloads files. STOR Uploads files. APPE Appends uploading. DELE Deletes files. Creates folders. XMKD Extended command with the meaning of MKD. Removes folders.

  • Page 115: Rstatus

    Examples # Delete the empty directory subdir1. ftp>rmdir subdir1 250 The directory was successfully removed Related commands delete rstatus Use rstatus to display FTP server status. Use rstatus remotefile to display detailed information about a specific directory or file on the FTP server. Syntax rstatus [ remotefile ] Views...

  • Page 116

    Filed Description Logged in as root Login username root. TYPE: ASCII File transfer mode ASCII. Session timeout in seconds is 300 Timeout interval is 300 seconds. Control connection is plain text Control connection type is plain text. Data connections will be plain text Data connection type is plain text.

  • Page 117: Status

    status Use status to display FTP status. Syntax status Views FTP client view Predefined user roles network-admin Examples # Display FTP status. ftp> status Connected to 192.168.1.56. No proxy connection. Not using any security mechanism. Mode: stream; Type: ascii; Form: non-print; Structure: file Verbose: on;...

  • Page 118: User

    Syntax system Views FTP client view Predefined user roles network-admin Usage guidelines You can perform this operation only after you log in to the FTP server. Examples # Display the system information of the FTP server. ftp> system 215 UNIX Type: L8 user Use user to change to another user account after login.

  • Page 119: Verbose

    230 User logged in. verbose Use verbose to enable or disable the device to display detailed information about FTP operations. Syntax verbose Default The device displays detailed information about FTP operations. Views FTP client view Predefined user roles network-admin Usage guidelines This command takes effect only for the current session.

  • Page 120

    Predefined user roles network-admin Parameters command-name: Specifies a command supported by the FTP client. Usage guidelines In FTP client view, entering ? is the same as executing the help command. Examples # Display all commands supported by the FTP client. ftp>...

  • Page 121: Tftp Commands

    TFTP commands The device supports the FIPS mode that complies with NIST FIPS 140-2 requirements. Support for features, commands, and parameters might differ in FIPS mode and non-FIPS mode. For more information about FIPS mode, see Security Configuration Guide. TFTP is not supported in FIPS mode. tftp Use tftp to download a file from the TFTP server to the local device or upload a local file to the TFTP server in an IPv4 network.

  • Page 122: Tftp Client Source

    source { interface interface-type interface-number | ip source-ip-address }: Specifies the source address for outgoing TFTP packets. If this keyword is not specified, the device uses the primary IPv4 address of the output interface for the route to the server as the source IPv4 address of outgoing TFTP packets. •...

  • Page 123: Tftp Ipv6

    Syntax tftp client source { interface interface-type interface-number | ip source-ip-address } undo tftp client source Default No source IPv4 address is configured for outgoing TFTP packets. The device uses the primary IPv4 address of the output interface for the route to the server as the source IP address. Views System view Predefined user roles...

  • Page 124

    Predefined user roles network-admin Parameters tftp-server: Specifies the IPv6 address or host name of a TFTP server. The host name can be a case-insensitive string of 1 to 253 characters and can contain only letters, digits, hyphens (-), underscores (_), and dots (.). -i interface-type interface-number: Specifies an output interface by its type and number.

  • Page 125: Tftp Client Ipv6 Source

    Usages guidelines The source address specified with the tftp ipv6 command takes precedence over the source address specified with the tftp client ipv6 source command. The source address specified with the tftp client ipv6 source command applies to all TFTP connections. The source address specified with the tftp ipv6 command applies only to the current TFTP connection.

  • Page 126: Tftp-server Acl

    Examples # Specify source IPv6 address 2000::1 for outgoing TFTP packets. <Sysname> system–view [Sysname] tftp client ipv6 source ipv6 2000::1 Related commands tftp ipv6 tftp-server acl Use tftp-server acl to use an ACL to control the device's access to TFTP servers in an IPv4 network. Use undo tftp-server acl to restore the default.

  • Page 127

    Default No ACL is used to control the device's access to TFTP servers. Views System view Predefined user roles network-admin Parameters acl-number: Specifies the number of a basic ACL, in the range of 2000 to 2999. Usages guidelines You can use an ACL to deny or permit the device's access to specific TFTP servers. Examples # Allow the device to access only the TFTP server at 2001::1.

  • Page 128: File System Management Commands

    File system management commands IMPORTANT: Before managing storage media, files, and directories, make sure you know the possible impacts. • A file or directory whose name starts with a period (.) is considered a hidden file or directory. Do not •...

  • Page 129: Copy

    copy Use copy to copy a file. Syntax copy fileurl-source fileurl-dest Views User view Predefined user roles network-admin Parameters fileurl-source: Specifies the name or URL of the file to be copied in non-FIPS mode, and specifies the name of the file to be copied in FIPS mode. If the file resides on an FTP or TFTP server rather than on the device, specify the URL of the file.

  • Page 130

    In FIPS mode, you can only use the copy command to copy a local file and save it locally. Examples # Copy the test.cfg file in the current folder and save it to the current folder as testbackup.cfg. <Sysname> copy test.cfg testbackup.cfg Copy flash:/test.cfg to flash:/testbackup.cfg?[Y/N]:y Copying file flash:/test.cfg to flash:/testbackup.cfg...Done.

  • Page 131

    Copy tftp://[2001::1]/test.cfg to flash:/testbackup.cfg?[Y/N]:y Copying file tftp://[2001::1]/test.cfg to flash:/testbackup.cfg... Done. # Copy the master's configuration file test.cfg to the subordinate member with the member ID 2 and save it to the root directory of the flash memory. <Sysname> copy test.cfg slot2#flash:/ Copy flash:/test.cfg to slot2#flash:/test.cfg?[Y/N]:y Copying file flash:/test.cfg to slot2#flash:/test.cfg...Done.

  • Page 132

    Deleting the file permanently will take a long time. Please wait... Deleting file flash:/2.cfg...Done. # Remove the 1.cfg file from the root directory of the storage medium on the subordinate member with the member ID 2: • Method 1 <Sysname> delete slot2#flash:/1.cfg Delete slot2#flash:/1.cfg?[Y/N]:y Deleting file delete slot2#flash:/1.cfg...Done.

  • Page 133: File Prompt

    Directory of flash:/ # Display files and folders in the root directory of all storage media on the IRF fabric. <Sysname> dir /all-filesystems Directory of flash:/ Directory of slot1#flash:/ # Display information about all files and folders in the storage medium of the subordinate member with the member ID 2.

  • Page 134: Fixdisk

    Predefined user roles network-admin Parameters alert: Prompts for confirmation when a destructive file or folder operation is being performed. quiet: Gives no confirmation prompt for file or folder operations. Usage guidelines In quiet mode, the system does not prompt for confirmation when a user performs a file or folder operation.

  • Page 135: Gunzip

    Views User view Predefined user roles network-admin Parameters medium-name: Specifies the name of a storage medium. Usage guidelines Formatting a storage medium permanently deletes all files on the storage medium. If a startup configuration file exists on the storage medium, back it up if necessary. You can format a storage medium only when no one is accessing the medium.

  • Page 136: Gzip

    Verify the decompress operation. <Sysname> dir system.* Directory of flash: 1 -rw- 0 May 30 2012 11:42:25 system.bin 472972 KB total (472844 KB free) gzip Use gzip to compress a file. Syntax gzip filename Views User view Predefined user roles network-admin Parameters filename: Specifies the name of the file to be compressed.

  • Page 137

    The digest can be used to verify the integrity of the file. For example, you can use this command to calculate the digest of a software image file and compare it with the digest provided on the HP website to determine whether the file has been tampered with.

  • Page 138: More

    # Create the test folder on the subordinate member with the member ID 2. <Sysname> mkdir slot2#flash:/test Creating directory slot2#flash:/test... Done. more Use more to display the contents of a text file. Syntax more file-url Views User view Predefined user roles network-admin Parameters file-url: Specifies a file name.

  • Page 139

    Syntax move fileurl-source fileurl-dest Views User view Predefined user roles network-admin Parameters fileurl-source: Specifies the name of the source file. fileurl-dest: Specifies the name of the destination file or folder. Usage guidelines If you specify a destination folder, the system moves the source file to the specified folder without changing the file name.

  • Page 140: Reset Recycle-bin

    Syntax rename fileurl-source fileurl-dest Views User view Predefined user roles network-admin Parameters fileurl-source: Specifies the name of the source file or folder. fileurl-dest: Specifies the name of the destination file or folder. Usage guidelines If the destination file or folder name is the same as the name of an existing file or folder in the current working directory, this command is not executed.

  • Page 141

    # Delete the b.cfg file from the recycle bin. (In this example there are two files in the recycle bin.) <Sysname> reset recycle-bin Clear flash:/a.cfg?[Y/N]:n Clear flash:/b.cfg?[Y/N]:y Clearing file flash:/b.cfg... Done. Related commands delete rmdir Use rmdir to remove a folder. Syntax rmdir directory Views...

  • Page 142: Tar Create

    Usage guidelines The digest of a file can be used to verify file integrity. For example, you can calculate a software image file's digest and compare it with the digest on the HP website. Examples # Use the SHA-256 algorithm to calculate the digest of file system.bin.

  • Page 143: Tar Extract

    tar list • tar extract Use tar extract to extract files and folders. Syntax tar extract archive-file fileurl-dest [ verbose ] [ screen | to directory-name ] Views User view Predefined user roles network-admin Parameters archive-file fileurl-dest: Specifies the archive file name. The suffix can be .tar or .tar.gz. verbose: Displays the names of the successfully extracted files and folders.

  • Page 144: Tar List

    tar list • tar list Use tar list to display the names of archived files and folders. Syntax tar list archive-file fileurl-dest Views User view Predefined user roles network-admin Parameters archive-file fileurl-dest: Specifies the archive file name. The suffix can be .tar or .tar.gz. Examples # Display the names of archived files and folders.

  • Page 145

    Undeleting file flash:/copy.cfg... Done. # Restore the startup.cfg file, which was moved from the flash:/seclog directory to the recycle bin. Method 1: • <Sysname>undelete seclog/startup.cfg Undelete flash:/seclog/startup.cfg?[Y/N]:y Undeleting file flash:/seclog/startup.cfg... Done. <Sysname> Method 2: • <Sysname> cd seclog <Sysname> undelete startup.cfg Undelete flash:/seclog/startup.cfg?[Y/N]:y Undeleting file flash:/seclog/startup.cfg...

  • Page 146: Configuration File Management Commands

    Configuration file management commands The device supports the FIPS mode that complies with NIST FIPS 140-2 requirements. Support for features, commands, and parameters might differ in FIPS mode and non-FIPS mode. For more information about FIPS mode, see Security Configuration Guide. archive configuration Use archive configuration to manually archive the running configuration to the configuration archive directory.

  • Page 147: Archive Configuration Location

    Syntax archive configuration interval minutes undo archive configuration interval Default The system does not automatically archive the running configuration. Views System view Predefined user roles network-admin Parameters minutes: Specifies the interval (in minutes) for automatically saving the running configuration. The value range is 10 to 525600 (365 days).

  • Page 148

    undo archive configuration location Default No configuration archive directory or configuration archive file name prefix has been set. Views System view Predefined user roles network-admin Parameters directory: Specifies a configuration archive directory, a case-insensitive string of 1 to 63 characters. The directory must take the format storage-medium-name:/folder-name.

  • Page 149: Archive Configuration Max

    Related commands archive configuration • archive configuration location • • archive configuration max display archive configuration • archive configuration max Use archive configuration max to set the maximum number of configuration archives. Use undo archive configuration max to restore the default. Syntax archive configuration max file-number undo archive configuration max...

  • Page 150: Backup Startup-configuration

    archive configuration interval • • display archive configuration backup startup-configuration Use backup startup-configuration to back up the main next-startup configuration file to a TFTP server. Syntax backup startup-configuration to tftp-server [ dest-filename ] Views User view Predefined user roles network-admin Parameters tftp-server: Specifies a TFTP server by its IPv4 address or host name.

  • Page 151: Configuration Replace File

    Predefined user roles network-admin Parameters private-key: Encrypts configuration with a private key. All HP devices running Comware V7 software use the same private key. public-key: Encrypts configuration with a public key. All HP devices running Comware V7 software use the same public key.

  • Page 152: Display Archive Configuration

    [Sysname] configuration replace file my_archive_1.cfg Current configuration will be lost, save current configuration? [Y/N]:n Now replacing the current configuration. Please wait... Succeeded in replacing current configuration with the file my_archive_1.cfg. display archive configuration Use display archive configuration to display configuration archive information, including the archive directory, archive prefix, archive interval, maximum number of archives, and saved archives.

  • Page 153: Display Current-configuration

    Related commands archive configuration • archive configuration interval • • archive configuration location archive configuration max • display current-configuration Use display current-configuration to display the running configuration. Syntax display current-configuration [ configuration [ module-name ] | interface [ interface-type [ interface-number ] ] ] Views Any view Predefined user roles...

  • Page 154: Display Current-configuration Diff

    password hash $h$6$zSWYxJ3Oj01iR7x1$a5BIEHfcqTUKrVkd6HB9vVLh8abWLm9sy/FW8J0ypdnqtH/Du6IU+9UlM8W5OM+ ihHJAWXUkTEAoMuJKBwcogw== service-type ssh telnet terminal authorization-attribute user-role network-admin return # Display Ethernet interface configuration. <Sysname> display current-configuration interface ten-gigabitethernet 1/1/5 interface Ten-GigabitEthernet1/1/5 port link-mode route return display current-configuration diff Use display current-configuration diff to display the configuration differences between the current startup configuration file and the next-startup configuration file.

  • Page 155: Display Default-configuration

    @@ -6,7 +6,7 @@ stp global enable - sysname TEST + sysname TEST1 telnet server enable Table 19 Command output Field Description - - - Startup configuration The next-startup configuration file. +++ Current configuration The current startup configuration file. Location summary for a command line difference: •...

  • Page 156: Display Diff

    Predefined user roles network-admin network-operator Usage guidelines Factory defaults are product-specific default settings that might differ from initial settings. These default settings ensure that the device can start up and run correctly when it does not have any startup configuration file or the configuration file is corrupt. Examples # Display the factory defaults.

  • Page 157

    Usage guidelines If you specify the startup-configuration keyword, the system searches for the next-startup configuration file in the following order: The main next-startup configuration file. The backup next-startup configuration file if the main next-startup configuration file is unavailable or corrupt. If both the main and backup next-startup configuration files are unavailable or corrupt, the system prompts that the next-startup configuration file does not exist.

  • Page 158: Display Saved-configuration

    - sysname TEST + sysname TEST1 telnet server enable Table 20 Command output Field Description - - - file1.cfg Name and directory of the source configuration file. +++ file2.cfg Name and directory of the target configuration file. Location summary for a command line difference: •...

  • Page 159: Display Startup

    Predefined user roles network-admin network-operator Usage guidelines Use this command to verify that important settings have been saved to the configuration file for the next system startup. This command selects the configuration file to display in the following order: If the main startup configuration file is available, this command displays the contents of the main startup configuration file.

  • Page 160: Display This

    Views Any view Predefined user roles network-admin network-operator Usage guidelines Current startup configuration file is the configuration file that has been loaded. Next-startup configuration file is the configuration file used at the next startup. All IRF members use 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 161: Reset Saved-configuration

    Predefined user roles network-admin network-operator Usage guidelines Use this command to verify the configuration you have made in a certain view. This command does not display parameters that are set to their default settings. For some parameters that can be successfully configured even if their dependent features are not enabled, this command displays their settings after the dependent features are enabled.

  • Page 162: Restore Startup-configuration

    Predefined user roles network-admin Parameters backup: Deletes the backup next-startup configuration file. main: Deletes the main next-startup configuration file. Usage guidelines CAUTION: Use this command with caution. This command permanently deletes the next-startup configuration files from all IRF member devices. Delete a next-startup configuration file if it does not match the software version or is corrupt.

  • Page 163: Save

    Predefined user roles network-admin Parameters tftp-server: Specifies a TFTP server's IPv4 address or host name. The host name is a case-insensitive string of 1 to 253 characters. Valid characters include letters, digits, hyphens (-), underscores (_), and dots (.). src-filename: Specifies the file name of the configuration file to be downloaded. Usage guidelines This command is not supported in FIPS mode.

  • Page 164

    In fast mode, the device directly overwrites the target next-startup configuration file. If a reboot, power failure, or out of memory event occurs during this process, the next-startup configuration file is lost. HP recommends that you specify the safely keyword for the command. Examples # Save the running configuration to the configuration file backup.cfg, without specifying the file as the...

  • Page 165: Startup Saved-configuration

    flash:/backup.cfg. Please wait... Configuration is saved to flash successfully. # Save the running configuration to the main next-startup configuration file without any confirmation required. <Sysname> save force Validating file. Please wait..Configuration is saved to device successfully. # Save the running configuration to a file in the root directory of the flash memory, and specify the file as the main next-startup configuration file.

  • Page 166

    main: Specifies the configuration file as the main next-startup configuration file. This is the primary configuration file that the device attempts to load at startup. If the loading attempt fails, the device tries the backup next-startup configuration file. Usage guidelines CAUTION: In an IRF fabric, use the undo startup saved-configuration command with caution.

  • Page 167: Software Upgrade Commands

    Software upgrade commands boot-loader file Use boot-loader file to specify startup software image files. Syntax boot-loader file boot boot-package system system-package [ feature feature-package&<1-30> ] slot slot-number { backup | main } boot-loader file ipe-filename slot slot-number { backup | main } Views User view Predefined user roles...

  • Page 168: Boot-loader Update

    the system copies the specified file from the master to the subordinate device and sets it as a startup image file. If a file with the same name exists, you must choose whether to overwrite the file already on the subordinate device. The boot-loader file command overwrites the entire startup software image list.

  • Page 169: Bootrom Update

    If the master device has started up with backup startup images, its backup startup images are synchronized to the subordinate device, regardless of whether any backup startup image has been re-specified. Startup image synchronization fails if any software image being synchronized is not available or has been corrupted.

  • Page 170: Display Boot-loader

    To complete the upgrade, reboot the device. To save space, you can delete the BootWare image in the flash after completing the BootWare image upgrade. Examples # Use the file a.btm to upgrade the BootWare image. <Sysname> bootrom update file a.btm This command will update the BootWare file on the specified board(s), Continue? [Y/N]:y Now updating the BootWare, please wait...

  • Page 171: Display Install Active

    Table 22 Command output Field Description This field displays the Comware images on the member device. Software images on slot slot-number The slot number represents the device's IRF member ID. Current software images Comware images that have been loaded. Main startup software images Main Comware images for the next startup.

  • Page 172: Display Install Committed

    Committed packages on slot 1: flash:/BOOT-t2406P03.bin flash:/SYSTEM-t2406P03.bin flash:/BOOT-t2406P03H05.bin flash:/SYSTEM-t2406P03H05.bin # Display detailed information about main startup software images. <Sysname> display install committed verbose Committed packages on slot 1: flash:/BOOT-t2406P03.bin [Package] Vendor: HP Product: 6125XLG Service name: boot Platform version: 7.1.045P20 Product version: RELEASE 2406P03...

  • Page 173

    Supported board: mpu [Component] Component: boot Description: boot package flash:/SYSTEM-t2406P03.bin [Package] Vendor: HP Product: 6125XLG Service name: system Platform version: 7.1.045 Product version: RELEASE 2406P03 Supported board: mpu [Component] Component: system Description: system package flash:/BOOT-t2406P03H05.bin [Package] Vendor: HP Product: 6125XLG Service name: boot-patch Platform version: 7.1.045P20...

  • Page 174: Install Activate

    Field Description Image type: • boot—Boot image. • system—System image. Service name • system-patch—System image patch. • boot-patch—Boot image patch. Any other value indicates a feature image. Platform version Platform software version. Product version Product software version. Device types supported by the software image. The value can only be mpu, which Supported board represents IRF member devices.

  • Page 175: Install Commit

    You can save the patch image file in the root directory of the flash memory on any IRF member device. The install activate command automatically copies the file to the specified IRF member devices. The destination directory is the root directory. Examples # Activate system-patch.bin for the IRF member device in slot 1.

  • Page 176

    Views User view Predefined user roles network-admin Parameters patch: Specifies a patch image file. filename: Specifies the file path of a .bin patch image file, a case-insensitive string of up to 63 characters in the storage-medium:/base-filename.bin format. The file must be stored in the root directory of the storage medium.

  • Page 177: Emergency Shell Commands

    Emergency shell commands Unless otherwise stated, a file name or path argument in this document is case insensitive, and must indicate the storage medium and contain no slot information. The path information might contain multiple levels of directories, and each can include 1 to 255 characters. The file name alone (without the path information) can include 1 to 255 characters.

  • Page 178

    Views User view Parameters file-url: Specifies the name of the file to be deleted. Examples # Delete the tt.cfg file from the current directory. <boot> delete flash:/tt.cfg Delete flash:/tt.cfg? [Y/N]:y Deleting the file permanently will take a long time. Please wait... Start to delete flash:/tt.cfg...Done.

  • Page 179

    -rw- 5341 Jan 01 2011 05:46:24 startup.cfg -rw- 9456640 Jan 03 2011 03:26:14 6125xlg-cmw710-boot-e2405 .bin -rw- 3707 Jan 01 2011 01:26:51 startup.cfg_bak -rw- 33161216 Jan 01 00:00:28 .pathfile drw- Jan 01 2011 00:00:24 seclog drw- Jan 01 2011 00:00:24 diagfile...

  • Page 180: Display Copyright

    Field Description Information about a file or directory: • 0—Index number, automatically assigned by the system. • -rw-—Attributes of the file or directory. The first character is the directory indicator (d for directory and - for file). The second character indicates whether the file or directory is readable (r for readable).

  • Page 181: Display Interface M-eth0

    [Package] Vendor: HP Product: 6125XLG Service name: system Platform version: 7.1.045 Product version: Ess 2405 Supported board: mpu [Component] Component: system Description: system package Table 25 Command output Field Description Product Product name. Type of the service package: •...

  • Page 182

    Inet6 Address is FE80::202:3FF:FE04:506/10 Scope:Link IP Packet Frame Type:PKTFMT_ETHNT_2, Hardware Address: c4ca-d94c-e201 IPV6 Packet Frame Type:PKTFMT_ETHNT_2, Hardware Address: c4ca-d94c-e201 Input: 8983 packets, 0 errors, 0 dropped, 0 overruns, 2 frame Output: 431 packets, 0 errors, 0 dropped, 0 overruns, 0 carrier, 0 collisions, 1000 txqueuelen Input bytes:804168 Output bytes:30367...

  • Page 183: Display Ip Routing-table

    Field Description Statistics for sent packets: • Total number. • Number of erroneous packets. Output: 431 packets, 0 errors, 0 dropped, 0 • Number of dropped packets. overruns, 0 carrier, 0 collisions, 1000 • Number of packets encountering queue overflow errors. txqueuelen •...

  • Page 184: Display Ipv6 Routing-table

    Field Description Number of times the route has been referenced by other route entries. Number of times the route has been matched. Iface Outbound interface. display ipv6 routing-table Use display ipv6 routing-table to display IPv6 routing information. Syntax display ipv6 routing-table Views Any view Examples...

  • Page 185: Display Version

    display version Use display version to display the version information of the boot image. Syntax display version Views Any view Examples # Display the version information of the boot image. <boot> display version … format Use format to format a storage medium. Syntax format storage-medium Views...

  • Page 186: Install Load

    Parameters server-ipv4-address: Specifies the IPv4 address of the FTP server. server-ipv6-address: Specifies the IPv6 address of the FTP server. user username: Specifies the login username, a case-sensitive string of 1 to 15 characters. password password: Specifies the login password, a case-sensitive string of 1 to 15 characters. get remote-file local-file: Downloads a file from the FTP server.

  • Page 187: Interface M-eth0

    SDRAM fast selftest......OK! Flash fast selftest......OK! CPLD selftest......OK! Switch chip selftest.......OK! PHY selftest.......OK! Please check leds....FINISHED! Line aux0 is available. Press ENTER to get started. interface m-eth0 Use interface m-eth0 to enter management Ethernet port view. Syntax interface m-eth0 Views System view Usage guidelines In management Ethernet port view, you can assign an IP address to the port and specify a gateway.

  • Page 188: Ip Gateway

    mask: Specifies the subnet mask in dotted decimal notation. Usage guidelines The management Ethernet port can have only one IPv4 address. If you execute this command multiple times, the most recent configuration takes effect. When the management Ethernet port is manually shut down, assigning it an IPv4 address or removing its IPv4 address activates it at the same time.

  • Page 189: Ipv6 Address

    ipv6 address Use ipv6 address to assign an IPv6 address to the management Ethernet port. Use undo ipv6 address to restore the default. Syntax ipv6 address ipv6-address prefix-length undo ipv6 address Default The management Ethernet port has no IPv6 address. Views Management Ethernet port view Parameters...

  • Page 190

    Usage guidelines When the device needs to communicate with a device on a remote IPv6 network, you must specify an IPv6 gateway for the management Ethernet port. If you execute this command multiple times, the most recent configuration takes effect. Changing or removing the IPv6 address of the management Ethernet port removes the port's IPv6 gateway configuration.

  • Page 191: Move

    Views User view Parameters file-url: Specifies a file name. Examples # Display the contents of file test.txt. <boot> more flash:/test.txt Have a nice day. move Use move to move a file. Syntax move fileurl-source fileurl-dest Views User view Parameters fileurl-source: Specifies the name of the file to be moved, a case-insensitive string of 1 to 63 characters. fileurl-dest: Specifies the name of the destination file or directory, a case-insensitive string of 1 to 63 characters.

  • Page 192

    Views Any view Parameters -c count: Specifies the number of ICMP echo requests to send, in the range of 1 to 2147483647. The default is 5. -s size: Specifies the length (in bytes) of each ICMP echo request, in the range of 20 to 8100. The default is 56.

  • Page 193: Ping Ipv6

    ping ipv6 Use ping ipv6 to check the connectivity to an IPv6 address. Syntax ping ipv6 [ -c count | -s size ] * ipv6-address Views Any view Parameters -c count: Specifies the number of ICMPv6 echo requests to send, in the range of 1 to 2147483647. The default is 5.

  • Page 194

    flash: quit Use quit to return to the upper level view. Syntax quit Views System view, management Ethernet port view Examples # Return from management Ethernet port view to user view. [boot-m-eth0] quit [boot] quit <boot> reboot Use reboot to reboot the current member device. Syntax reboot Views...

  • Page 195

    <boot> ssh2 192.168.1.59 login as:client001 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the RSA key sent by the remote host is 83:2d:b6:90:4a:1b:0e:c1:ea:af:09:3a:65:09:8a:b3.

  • Page 196: Shutdown

    Directory flash:/1 removed. Related commands • delete • • mkdir shutdown Use shutdown to shut down the management Ethernet port. Use undo shutdown to bring up the management Ethernet port. Syntax shutdown undo shutdown Default The management Ethernet port is up. Views Management Ethernet port view Usage guidelines...

  • Page 197

    Examples # Use SSH to connect to SSH server 192.168.1.59 for the first time. <boot> ssh2 192.168.1.59 login as:client001 The authenticity of host '192.168.1.59 (192.168.1.59)' can't be established. RSA key fingerprint is 3d:ee:1f:f9:81:be:4f:aa:42:88:1c:ab:81:4e:95:6f. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.1.59' (RSA) to the list of known hosts.

  • Page 198

    telnet Use telnet to log in to a Telnet server. Syntax telnet { server-ipv4-address | ipv6 server-ipv6-address } Views User view Parameters server-ipv4-address: Specifies the IPv4 address of the Telnet server in dotted decimal notation. server-ipv6-address: Specifies the IPv6 address of the Telnet server. Usage guidelines If the Telnet server does not respond, you can press Ctrl+K to abort the login attempt and try again later.

  • Page 199: Device Management Commands

    Device management commands clock datetime Use clock datetime to set the UTC time. Syntax clock datetime time date Default The UTC time is the factory-default time. Views User view Predefined user roles network-admin Parameters time: Specifies a time in the format hh:mm:ss. The hh value is in the range of 0 to 23, the mm value is in the range of 0 to 59, and the ss value is in the range of 0 to 59.

  • Page 200: Clock Protocol

    display clock • clock protocol Use clock protocol to specify the system time source. Use undo clock protocol to restore the default. Syntax clock protocol { none | ntp | ptp } undo clock protocol Default The device uses the NTP time source. Views System view Predefined user roles...

  • Page 201

    Default Daylight saving time is disabled. Views System view Pre-defined user roles network-admin Parameters name: Specifies a name for the daylight saving time schedule, a case-sensitive string of 1 to 32 characters. start-time: Specifies the start time in the format hh:mm:ss. The hh value is in the range of 0 to 23, the mm value is in the range of 0 to 59, and the ss value is in the range of 0 to 59.

  • Page 202: Clock Timezone

    Usage guidelines When the system time source is the local system time, the daylight saving time determines the system time together with the UTC time and local time zone. You can use the display clock command to view the system time. A correct system time setting is essential to network management and communication.

  • Page 203: Command

    Usage guidelines When the system time source is the local system time, the local time zone determines the system time together with the UTC time and daylight saving time. You can use the display clock command to view the system time. A correct system time setting is essential to network management and communication.

  • Page 204: Copyright-info Enable

    Examples # Assign commands to job backupconfig to back up configuration file startup.cfg to the TFTP server at 192.168.100.1 1. <Sysname> system-view [Sysname] scheduler job backupconfig [Sysname-job-backupconfig] command 2 tftp 192.168.100.11 put flash:/startup.cfg backup.cfg Related commands scheduler job copyright-info enable Use copyright-info enable to enable displaying the copyright statement.

  • Page 205: Display Clock

    Press ENTER to get started. # Disable displaying the copyright statement. <Sysname> system-view [Sysname] undo copyright-info enable When a Telnet user logs in, the user view prompt appears: • <Sysname> When a console user quits user view, the following message appears: •...

  • Page 206

    clock summer-time • display copyright Use display copyright to display the copyright statement, including software and hardware copyright statements. Syntax display copyright Views Any view Predefined user roles network-admin network-operator Examples # Display the copyright statement. <Sysname> display copyright display cpu-usage Use display cpu-usage to display CPU usage statistics.

  • Page 207: Display Cpu-usage Configuration

    1% in last 5 seconds 1% in last 1 minute 1% in last 5 minutes # Display the current CPU usage statistics for all member devices. <Sysname> display cpu-usage Slot 1 CPU 0 CPU usage: 6% in last 5 seconds 10% in last 1 minute 5% in last 5 minutes Slot 2 CPU 0 CPU usage:...

  • Page 208: Display Cpu-usage History

    Related commands monitor cpu-usage enable • monitor cpu-usage interval • • monitor cpu-usage threshold display cpu-usage history Use display cpu-usage history to display the historical CPU usage statistics in charts. Syntax display cpu-usage history [ job job-id ] [ slot slot-number [ cpu cpu-number ] ] Views Any view Predefined user roles...

  • Page 209

    80%| 75%| 70%| 65%| 60%| 55%| 50%| 45%| 40%| 35%| 30%| 25%| 20%| 15%| 10%| ######## ------------------------------------------------------------ (minutes) cpu-usage (CPU 0) last 60 minutes (SYSTEM) The output shows the historical CPU usage statistics for the entire system (with the name SYSTEM) in the last 60 minutes: 5%: 12 minutes ago •...

  • Page 210: Display Device

    25%| 20%| 15%| 10%| ------------------------------------------------------------ (minutes) cpu-usage (CPU 0) last 60 minutes (scmd) The output shows the historical CPU usage statistics of process 1 (with the process name scmd) in the last 60 minutes. A process name with square brackets ([ ]) means that the process is a kernel process. 5%: 20 minutes ago •...

  • Page 211: Display Device Manuinfo

    <Sysname> display device Slot 1 SubSNo PortNum PCBVer FPGAVer CPLDVer BootRomVer AddrLM Type State Ver.A NULL Back Plane Normal Ver.A NULL Front Plane Normal Slot 2 SubSNo PortNum PCBVer FPGAVer CPLDVer BootRomVer AddrLM Type State Ver.A NULL Back Plane Normal Ver.A NULL Front Plane Normal...

  • Page 212: Display Diagnostic-information

    MAC address, and vendor name. The data is written to the storage component during debugging or testing. Examples # Display the electronic label information of the device. <Sysname> display device manuinfo Slot 1 DEVICE_NAME : 6125XLG DEVICE_SERIAL_NUMBER : 6C02132021 MAC_ADDRESS : 0000-0002-1354 MANUFACTURING_DATE : 2013-02-02 VENDOR_NAME...

  • Page 213: Display Memory

    Usage guidelines For diagnostics 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. This display command does not support the | by-linenum option, the > filename option, or the >> filename option.

  • Page 214: Display Memory-threshold

    Table 33 Command output Field Description Slot ID of an IRF member device. Memory usage information. Total size of the physical memory space that can be allocated. The memory space is virtually divided into two parts. Part 1 is solely used for kernel Total codes and kernel management.

  • Page 215: Display Scheduler Job

    Memory usage threshold: 100% Free memory threshold: Minor: 96M Severe: 64M Critical: 48M Normal: 128M Current memory state: Normal Event statistics: [Back to normal state] First notification: 0.0 Latest notification: 0.0 Total number of notifications sent: 0 [Enter minor low-memory state] First notification at: 0.0 Latest notification at: 0.0 Total number of notifications sent: 0...

  • Page 216: Display Scheduler Logfile

    network-operator Parameters job-name: Specifies a job by its name, a case-sensitive string of 1 to 47 characters. Without this option, the command displays the configuration information of all jobs. Examples # Display the configuration information of all jobs. <Sysname> display scheduler job Job name: saveconfig copy startup.cfg backup.cfg Job name: backupconfig...

  • Page 217: Display Scheduler Reboot

    Table 34 Command output Field Description Logfile Size Size of the log file, in bytes. Schedule name Schedule to which the job belongs. Execution time Time when the job was started. Time when the job was completed. If the job has never been executed or the job has no Completion time commands, this field is blank.

  • Page 218: Display System-working-mode

    network-operator Parameters schedule-name: Specifies a schedule by its name, a case-sensitive string of 1 to 47 characters. Without this option, the command displays information about all schedules. Examples # Display information about all schedules. <Sysname> display scheduler schedule Schedule name : shutdown Schedule type : Run once after 0 hours 2 minutes...

  • Page 219: Display Transceiver Alarm

    Syntax display system-working-mode Views Any view Predefined user roles network-admin network-operator Examples # Display the current system working mode. <Sysname> display system-working-mode The current system working mode is standard. The next system working mode is advance. display transceiver alarm Use display transceiver alarm to display transceiver alarms. Syntax display transceiver alarm interface [ interface-type interface-number ] Views...

  • Page 220

    Field Description TX power low The transmitted optical power is low. Temp high The temperature is high. Temp low The temperature is low. Voltage high The voltage is high. Voltage low The voltage is low. Transceiver info I/O error Transceiver information read/write error. Transceiver info checksum error Transceiver information checksum error.

  • Page 221: Display Transceiver Diagnosis

    Field Description RX loss of signal Received signals are lost. RX power low Received power is low. display transceiver diagnosis Use display transceiver diagnosis to display the current values of the digital diagnosis parameters on transceiver modules. Syntax display transceiver diagnosis interface [ interface-type interface-number ] Views Any view Predefined user roles...

  • Page 222: Display Transceiver Interface

    : 1000_BASE_SX_SFP Connector Type : LC Wavelength(nm) : 850 Transfer Distance(m) : 550(50um),270(62.5um) Digital Diagnostic Monitoring : YES Vendor Name : HP Ordering Name : JD118B Table 39 Command output Field Description transceiver information Transceiver information. Transceiver Type Transceiver type.

  • Page 223: Display Transceiver Manuinfo

    This command displays only part of the electronic label information. Examples Display electronic label information transceiver module interface Ten-GigabitEthernet1/1/5. <Sysname> display transceiver manuinfo interface ten-gigabitethernet 1/1/5 Ten-GigabitEthernet1/1/5 transceiver manufacture information: Manu. Serial Number : 213410A0000054000251 Manufacturing Date : 2012-09-01 Vendor Name : HP...

  • Page 224

    Table 40 Command output Field Description Manu. Serial Number Serial number generated during production of the transceiver module. Manufacturing Date Date when the electronic label information was written to the transceiver module. display version Use display version to display system version information. Syntax display version Views...

  • Page 225: Header

    Record 1 (updated on Jan 01 2011 at 01:49:24): * 6125xlg-cmw710-boot-r2402.bin 7.1.045P06 Release 2402 Nov 26 2013 15: 38:55 * 6125xlg-cmw710-system-r2402.bin 7.1.045 Release 2402 Nov 26 2013 15:39: Record 2 (updated on Jan 01 2011 at 08:43:26): * 6125xlg-cmw710-boot-d2402001.bin 7.1.045P04 Demo 2402001 Oct 18 2013 11: 44:57 * 6125xlg-cmw710-system-d2402001.bin...

  • Page 226

    Parameters legal: Configures the banner to be displayed before a user inputs the username and password to access the CLI. login: Configures the banner displayed to be before password or scheme authentication is performed for a login user. motd: Configures the greeting banner to be displayed before the legal banner appears. shell: Configures the banner to be displayed before a non-modem dial-in user accesses user view.

  • Page 227: Memory-threshold

    Password: Welcome to shell(header shell) Use job to assign a job to a schedule. Use undo job to revoke a job. Syntax job job-name undo job job-name Default No job is assigned to a schedule. Views Schedule view Predefined user roles network-admin Parameters job-name: Specifies the job name, a case-sensitive string of 1 to 47 characters.

  • Page 228: Memory-threshold Usage

    Default Minor alarm threshold: 96 MB. • Severe alarm threshold: 64 MB. • • Critical alarm threshold: 48 MB. Normal state threshold: 128 MB. • Views System view Predefined user roles network-admin Parameters minor minor-value: Specifies the minor alarm threshold in the range of 0 to 1499. This threshold must be equal to or less than the total memory size.

  • Page 229: Monitor Cpu-usage Enable

    Syntax memory-threshold usage memory-threshold undo memory-threshold usage Default The memory usage threshold is 100%. Views System view Predefined user roles network-admin Parameters memory-threshold: Specifies the memory usage threshold in percentage. The value range is 0 to 100. Usage guidelines If the memory usage threshold is exceeded, the system generates and sends a trap. Examples # Set the memory usage threshold to 80%.

  • Page 230: Monitor Cpu-usage Interval

    Examples # Enable CPU usage recording. <Sysname> system-view [Sysname] monitor cpu-usage enable Related commands display cpu-usage • display cpu-usage configuration • display cpu-usage history • monitor cpu-usage interval • • monitor cpu-usage threshold monitor cpu-usage interval Use monitor cpu-usage interval to set the CPU usage sampling interval. Syntax monitor cpu-usage interval interval-value [ slot slot-number] Default...

  • Page 231: Monitor Cpu-usage Threshold

    monitor cpu-usage threshold Use monitor cpu-usage threshold to set CPU usage thresholds. Use undo monitor cpu-usage threshold to restore the defaults. Syntax monitor cpu-usage threshold cpu-threshold [ slot slot-number ] undo monitor cpu-usage threshold [ slot slot-number ] Default The CPU usage threshold is 99%. Views System view Predefined user roles...

  • Page 232: Reboot

    Default Password recovery capability is enabled. Views System view Predefined user roles network-admin Usage guidelines Password recovery capability controls console user access to the device configuration and SDRAM from BootWare menus. If password recovery capability is enabled, a console user can access the device configuration without authentication to configure new passwords.

  • Page 233: Reset Scheduler Logfile

    Usage guidelines CAUTION: A device reboot might interrupt network services. • If the main startup software images are corrupted or missing, you must re-specify a set of main startup • software images before using the reboot command to reboot the device. Otherwise, the device cannot start up.

  • Page 234: Reset Version-update-record

    Syntax reset scheduler logfile Default None Views User view Predefined user roles network-admin Examples # Clear job execution log information. <Sysname> reset scheduler logfile Related commands display scheduler logfile reset version-update-record Use reset version-update-record to clear the startup software image upgrade history records of the master.

  • Page 235: Scheduler Job

    Predefined user roles network-admin Usage guidelines CAUTION: This command is disruptive. Use this command only when you cannot troubleshoot the device by using other methods, or you want to use the device in a different scenario. If a device fails or you want to use it in a different scenario, you can restore the factory-default settings and states for the device.

  • Page 236: Scheduler Logfile Size

    Usage guidelines A job can be referenced by multiple schedules. In job view, you can assign commands to the job. Examples # Create a job named backupconfig and enter job view. <Sysname> system-view [Sysname] scheduler job backupconfig [Sysname-job-backupconfig] Related commands •...

  • Page 237: Scheduler Reboot Delay

    Syntax scheduler reboot at time [ date ] undo scheduler reboot Default No reboot date or time is specified. Views User view Predefined user roles network-admin Parameters time: Specifies the reboot time in the format hh:mm, where hh is in the range of 0 to 23, and mm is in the range of 0 to 59.

  • Page 238: Scheduler Schedule

    undo scheduler reboot Default No reboot delay time is specified. Views User view Predefined user roles network-admin Parameters time: Specifies the reboot delay time in the format hh:mm or mm. This argument can consist up to 6 characters. When in the format hh:mm, mm must be in the range of 0 to 59. Usage guidelines CAUTION: Device reboot interrupts network services.

  • Page 239: Shutdown-interval

    Usage guidelines You can schedule a job to have the device automatically run a command or a set of commands without administrative interference. To configure a schedule: Use the scheduler job command to create a job. In job view, use the command command to assign commands to the job. Use the scheduler schedule command to create a schedule.

  • Page 240: Sysname

    Use sysname to set the device name. Use undo sysname to restore the default. Syntax sysname sysname undo sysname Default The default device name is HP. Views System view Predefined user roles network-admin Parameters sysname: Specifies a name for the device, a string of 1 to 64 characters.

  • Page 241

    undo system-working-mode Default The device operates in advance mode. Views System view Predefined user roles network-admin Parameters advance: Sets the operating mode of the device to advanced. standard: Sets the operating mode of the device to standard. Usage guidelines After changing the operating mode, you must reboot the device to make the device operate in the new mode.

  • Page 242: Time Once

    Usage guidelines The specified time (date plus time) must be later than the current system time. The time at command, the time once command, and the time repeating command overwrite one another. The most recently configured command takes effect. Examples # Configure the device to execute schedule saveconfig at 01:01 a.m.

  • Page 243: Time Repeating

    the specified day in a week is already past, the schedule will be executed at the specified time next day, the specified day in the next month, or the specified day in the next week. The time at command, the time once command, and the time repeating command overwrite one another, whichever is configured most recently takes effect.

  • Page 244

    Parameters at time: Specifies the execution time in the format hh:mm, where hh is in the range of 0 to 23, and mm is in the range of 0 to 59. If you do not specify this option, the current system time is used as the execution time.

  • Page 245

    [Sysname] scheduler schedule saveconfig [Sysname-schedule-saveconfig] time repeating at 8:00 week-day fri sat Related commands scheduler schedule user-role Use user-role to assign user roles to a schedule. Use undo user-role to remove user roles from a schedule. Syntax user-role role-name undo user-role role-name Default A schedule has the user roles of the schedule creator.

  • Page 246

    user-role rolename return...

  • Page 247: Tcl Commands

    Tcl commands tclsh Use tclsh to enter Tcl configuration view from user view. Syntax tclsh Views User view Predefined user roles network-admin Usage guidelines In Tcl configuration view, you can execute the following commands: All Tcl 8.5 commands. • • Comware commands.

  • Page 248

    Examples # Return from Tcl configuration view to user view. <Sysname-tcl> tclquit <Sysname> Related commands tclsh...

  • Page 249: Python Commands

    Python commands python Use python to enter the Python shell. Syntax python Views User view Predefined user roles network-admin Usage guidelines In the Python shell, you can use the following items: Python 2.7 commands. • • Python 2.7 standard API. Comware V7 extended API.

  • Page 250

    Parameters filename: Specifies the name of a Python script on a storage medium (flash memory) of the device. The script name is case sensitive and must use the extension .py. The extension .py is case insensitive. param: Specifies the parameters to be passed to the script. To enter multiple parameters, use spaces as the delimiter.

  • Page 251: Support And Other Resources

    Related information Documents To find related documents, browse to the Manuals page of the HP Business Support Center website: http://www.hp.com/support/manuals For related documentation, navigate to the Networking section, and select a networking category. •...

  • Page 252: Conventions

    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 253

    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 254: Index

    Index A B C D E F G H I J L M N O P Q R S T U V activation-key,12 databits,18 append,82 debug,86 archive configuration,138 delete,169 archive configuration interval,138 delete,87 archive configuration location,139 delete,123 archive configuration max,141 description,49 ascii,82 dir,88...

  • Page 255

    display install committed,164 ftp,177 display install package,172 FTP client commands,82 display interface m-eth0,173 ftp client ipv6 source,92 display ip routing-table,175 ftp client source,91 display ipv6 routing-table,176 ipv6,93 display line,18 ftp server acl,78 display memory,205 FTP server commands,75 display memory-threshold,206 ftp server dscp,79 display role,49...

  • Page 256

    md5sum,128 rename,131 memory-threshold,219 reset,103 memory-threshold usage,220 reset recycle-bin,132 mkdir,129 reset saved-configuration,153 mkdir,98 reset scheduler logfile,225 mkdir,182 reset ssh public-key,186 monitor cpu-usage enable,221 reset version-update-record,226 monitor cpu-usage interval,222 restart,104 monitor cpu-usage threshold,223 restore factory-default,226 more,182 restore startup-configuration,154 more,130 return,10 move,130 rhelp,104 move,183 rmdir,106 rmdir,133...

  • Page 257

    system,109 tftp,1 13 system-view,1 1 tftp client ipv6 source,1 17 system-view,189 tftp client source,1 14 system-working-mode,232 tftp ipv6,1 15 tftp-server acl,1 18 tftp-server ipv6 acl,1 18 create,134 time at,233 extract,135 time once,234 list,136 time repeating,235 tclquit,239 tclsh,239 telnet,38 undelete,136 telnet,190 user,1 10 telnet client source,39...

Comments to this Manuals

Symbols: 0
Latest comments: