Command Line Interface Reference Guide HP BladeSystem PC Blade Switch Document Part Number: 413354-003 May 2009
© Copyright 2005–2009 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. Adobe, Acrobat, and Acrobat Reader are trademarks or registered trademarks of Adobe Systems Incorporated. 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.
Contents Command Line Interface Using the Command Line Interface (CLI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1–1 Entering Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1–3 Command Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1–7 802.1x Commands aaa authentication dot1x . . . . . . . . . . . . . . . . . .
Contents ACL Commands ip access-list. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–1 permit (IP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–2 deny (IP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4–5 mac access-list . . . . . . . . . . . . . . .
Contents Clock Commands clock set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6–1 clock source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6–2 clock timezone. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6–3 clock summer-time . . . . . . . . . . . . . .
Contents Ethernet Configuration Commands interface ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8–1 interface range ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8–2 shutdown . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8–3 description . . . . . . . . . . . . .
Contents IP Addressing Commands ip address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11–1 ip address dhcp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11–2 ip default-gateway . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11–3 show ip interface . . . . . . . . . . . . . .
Contents PHY Diagnostics Commands test copper-port tdr. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . show copper-ports tdr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . show copper-ports cable-length. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . show fiber-ports optical-transceiver . . . . . . . . . . . . . . . . . . . .
Contents RADIUS Commands radius-server host. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . radius-server key . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . radius-server retransmit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . radius-server source-ip . . . . . . . . . . . . . . . . . . . . . . . . . .
Contents Spanning-Tree Commands spanning-tree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22–1 spanning-tree mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22–2 spanning-tree forward-time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22–3 spanning-tree hello-time . . . . . . . . . . . . . . . . .
Contents Syslog Commands logging on . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24–1 logging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24–2 logging console . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24–3 logging buffered . . . . . . . . . . . . . . . .
Contents User Interface Commands do . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27–1 enable. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27–2 disable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27–3 login . . . . . . . . . . .
1 Command Line Interface Using the Command Line Interface (CLI) Accessing the CLI When accessing the management interface for the switch over a direct connection to the server’s console port, or via a Telnet connection, the switch can be managed by entering command keywords and parameters at the prompt. Using the switch’s command-line interface (CLI) is very similar to entering commands on a UNIX system. Console Connection To access the switch through the console port, perform these steps: 1.
Command Line Interface To access the switch through a Telnet session, you must first set the IP address for the switch, and set the default gateway if you are managing the switch from a different IP subnet. For example: Console(config)#interface vlan 1 Console(config-if)#ip address 10.1.0.1 255.255.255.0 Console(config-if)#exit Console(config)#ip default-gateway 10.1.0.
Command Line Interface Entering Commands This section describes how to enter CLI commands. Keywords and Arguments A CLI command is a series of keywords and arguments. Keywords identify a command, and arguments specify configuration parameters. For example, in the command “show interfaces status ethernet e5,” show interfaces and status are keywords, ethernet is an argument that specifies the interface type, and e5 specifies the port.
Command Line Interface The command “show interfaces ?” will display the following information: Console# show interfaces ? counters Information of interfaces counters protocol-vlan Protocol-vlan information status s Information of interfaces status switchport Information of interfaces switchport Console# Partial Keyword Lookup If you terminate a partial keyword with a question mark, alternatives that match the initial letters are provided.
Command Line Interface To access the Privilege Exec mode, open a new console session with the user name and password “admin.” The system will now display the “Console#” command prompt. You can also enter the Privileged Exec mode from within Normal Exec mode. To enter the Privileged Exec mode, enter the following user names and passwords: Username: admin Password: [admin login password] CLI session with the PC Blade Switch is opened. To end the CLI session, enter [Exit].
Command Line Interface To enter the Global Configuration mode, enter the command configure in Privileged Exec mode. The system prompt will change to “Console(config)#” which gives you access privilege to all Global Configuration commands. Console# configure Console(config)# To enter the other modes, at the configuration prompt type one of the following commands. Use the exit or end command to return to the Privileged Exec mode.
Command Line Interface Command Groups The system commands can be broken down into the functional groups shown below. Command Groups Command Group Description Page 802.1x Commands Specify authentication, authorization and accounting (AAA) methods for use on interfaces running IEEE 802.1x, and enable 802.1x globally. 2-1 AAA Commands Define the authentication method lists for servers. 3-1 ACL Commands Display Access Control Lists (ACLs) defined on the device.
Command Line Interface 1-8 Command Group Description Page RADIUS Commands Specify the source IP address used for communication with Remote Authentication Dial-in User Service (RADIUS) servers, and display the RADIUS server settings. 19-1 RMON Commands Display the Remote Network Monitoring (RMON) Ethernet history statistics, alarms table and configuration.
2 802.1x Commands aaa authentication dot1x The aaa authentication dot1x Global Configuration mode command specifies one or more authentication, authorization, and accounting (AAA) methods for use on interfaces running IEEE 802.1x. To return to the default configuration, use the no form of this command. Syntax aaa authentication dot1x default method1 [method2...] no aaa authentication dot1x default Parameters n method1 [method2...
802.1x Commands dot1x system-auth-control The dot1x system-auth-control Global Configuration mode command enables 802.1x globally. To return to the default configuration, use the no form of this command. Syntax dot1x system-auth-control no dot1x system-auth-control Parameters There are no parameters for this command. Default Configuration 802.1x is disabled globally. Command Modes Global Configuration mode Command Usage There are no user guidelines for this command.
802.1x Commands dot1x port-control The dot1x port-control Interface Configuration mode command enables manually controlling the authorization state of the port. To return to the default configuration, use the no form of this command. Syntax dot1x port-control {auto | force-authorized | force-unauthorized} no dot1x port-control Parameters n auto — Enables 802.1x authentication on the interface and causes the port to transition to the authorized or unauthorized state based on the 802.
802.1x Commands dot1x re-authentication The dot1x re-authentication Interface Configuration mode command enables periodic re-authentication of the client. To return to the default configuration, use the no form of this command. Syntax dot1x re-authentication no dot1x re-authentication Parameters There are no parameters for this command. Default Setting Periodic re-authentication is disabled. Command Mode Interface Configuration (Ethernet) Command Usage There are no user guidelines for this command.
802.1x Commands dot1x timeout re-authperiod The dot1x timeout re-authperiod Interface Configuration mode command sets the number of seconds between re-authentication attempts. To return to the default configuration, use the no form of this command. Syntax dot1x timeout re-authperiod seconds no dot1x timeout re-authperiod Parameters n seconds — Number of seconds between re-authentication attempts. (Range: 300-4294967295) Default Setting Re-authentication period is 3600 seconds.
802.1x Commands dot1x re-authenticate The dot1x re-authenticate Privileged EXEC mode command manually initiates a re-authentication of all 802.1x-enabled ports or the specified 802.1x-enabled port. Syntax dot1x re-authenticate [ethernet interface] Parameters n interface — Valid Ethernet port. (Full syntax: port) Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command.
802.1x Commands dot1x timeout quiet-period The dot1x timeout quiet-period Interface Configuration mode command sets the number of seconds that the device remains in the quiet state following a failed authentication exchange (for example, the client provided an invalid password). To return to the default configuration, use the no form of this command.
802.1x Commands dot1x timeout tx-period The dot1x timeout tx-period Interface Configuration mode command sets the number of seconds that the device waits for a response to an Extensible Authentication Protocol (EAP)-request/identity frame from the client before resending the request. To return to the default configuration, use the no form of this command.
802.1x Commands dot1x max-req The dot1x max-req Interface Configuration mode command sets the maximum number of times that the device sends an Extensible Authentication Protocol (EAP)-request/identity frame (assuming that no response is received) to the client, before restarting the authentication process. To return to the default configuration, use the no form of this command.
802.1x Commands dot1x timeout supp-timeout The dot1x timeout supp-timeout Interface Configuration mode command sets the time for the retransmission of an Extensible Authentication Protocol (EAP)-request frame to the client. To return to the default configuration, use the no form of this command.
802.1x Commands dot1x timeout server-timeout The dot1x timeout server-timeout Interface Configuration mode command sets the time that the device waits for a response from the authentication server. To return to the default configuration, use the no form of this command. Syntax dot1x timeout server-timeout seconds no dot1x timeout server-timeout Parameters n seconds — Time in seconds that the device waits for a response from the authentication server.
802.1x Commands show dot1x The show dot1x Privileged EXEC mode command displays the 802.1x status of the device or specified interface. Syntax show dot1x [ethernet interface] Parameters interface — Valid Ethernet port. (Full syntax: port) n Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays the status of 802.1x-enabled Ethernet ports. Console# show dot1x 802.
802.1x Commands Quiet period: 60 Seconds Tx period:30 Seconds Max req: 2 Supplicant timeout: 30 Seconds Server timeout: 30 Seconds Session Time (HH:MM:SS): 08:19:17 MAC Address: 00:08:78:32:98:78 Authentication Method: Remote Termination Cause: Supplicant logoff Authenticator State Machine State: HELD Backend State Machine State: IDLE Authentication success: 9 Authentication fails: 1 The following table describes significant fields shown in the example: Field Description Port The port number.
802.1x Commands 2-14 Field Description Server timeout Time in seconds the switch waits for a response from the authentication server before resending the request. Session Time The amount of time the user is logged in. MAC address The supplicant MAC address. Authentication Method The authentication method used to establish the session. Termination Cause The reason for the session termination. State The current value of the Authenticator PAE state machine and of the Backend state machine.
802.1x Commands show dot1x users The show dot1x users Privileged EXEC mode command displays active 802.1x authenticated users for the device. Syntax show dot1x users [username username] Parameters username — Supplicant username (Range: 1-160 characters) n Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following commands display 802.1x users.
802.1x Commands show dot1x statistics The show dot1x statistics Privileged EXEC mode command displays 802.1x statistics for the specified interface. Syntax show dot1x statistics ethernet interface Parameters n interface — Valid Ethernet port. (Full syntax: port) Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays 802.1x statistics for the specified interface.
802.1x Commands Keyword Description EapolStartFramesRx The number of EAPOL Start frames that have been received by this Authenticator. EapolLogoffFramesRx The number of EAPOL Logoff frames that have been received by this Authenticator. EapolRespIdFramesRx The number of EAP Resp/Id frames that have been received by this Authenticator. EapolRespFramesRx The number of valid EAP Response frames (other than Resp/Id frames) that have been received by this Authenticator.
802.1x Commands Advanced Features dot1x auth-not-req The dot1x auth-not-req Interface Configuration mode command enables unauthorized devices access to the VLAN. To disable access to the VLAN, use the no form of this command. Syntax dot1x auth-not-req no dot1x auth-not-req Parameters There are no parameters for this command. Default Configuration Access is enabled. Command Mode Interface Configuration (VLAN) mode Command Usage An access port cannot be a member in an unauthenticated VLAN.
802.1x Commands dot1x multiple-hosts The dot1x multiple-hosts Interface Configuration mode command enables multiple hosts (clients) on an 802.1x-authorized port, where the authorization state of the port is set to auto. To return to the default configuration, use the no form of this command. Syntax dot1x multiple-hosts no dot1x multiple-hosts Parameters There are no parameters for this command. Default Configuration Multiple hosts are disabled.
802.1x Commands dot1x single-host-violation The dot1x single-host-violation Interface Configuration mode command configures the action to be taken, when a station whose MAC address is not the supplicant MAC address, attempts to access the interface. Use the no form of this command to return to default.
802.1x Commands dot1x guest-vlan The dot1x guest-vlan Interface Configuration mode command defines a guest VLAN. To return to the default configuration, use the no form of this command. Syntax dot1x guest-vlan no dot1x guest-vlan Parameters There are no parameters for this command. Default Setting No VLAN is defined as a guest VLAN.
802.1x Commands dot1x guest-vlan enable The dot1x vlans guest-vlan enable Interface Configuration mode command enables unauthorized users on the interface access to the Guest VLAN. To disable access, use the no form of this command Syntax dot1x guest-vlan enable no dot1x guest-vlan enable Parameters There are no parameters for this command. Default Setting Disabled. Command Mode Interface Configuration (Ethernet) mode Command Usage A device can have only one global guest VLAN.
802.1x Commands show dot1x advanced The show dot1x advanced Privileged EXEC mode command displays 802.1x advanced features for the device or specified interface. Syntax show dot1x advanced [ethernet interface] Parameters n interface — Valid Ethernet port. (Full syntax: port) Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays 802.1x advanced features for the device.
802.1x Commands 2-24 www.hp.
3 AAA Commands aaa authentication login The aaa authentication login Global Configuration mode command defines login authentication. To return to the default configuration, use the no form of this command. Syntax aaa authentication login {default | list-name} method1 [method2...] no aaa authentication login {default | list-name} Parameters n default — Uses the listed authentication methods that follow this argument as the default list of methods when a user logs in.
AAA Commands Create a list by entering the aaa authentication login list-name method command for a particular protocol, where list-name is any character string used to name this list. The method argument identifies the list of methods that the authentication algorithm tries, in the given sequence. The additional methods of authentication are used only if the previous method returns an error, not if it fails.
AAA Commands aaa authentication enable The aaa authentication enable Global Configuration mode command defines authentication method lists for accessing higher privilege levels. To return to the default configuration, use the no form of this command. Syntax aaa authentication enable {default | list-name} method1 [method2...
AAA Commands Example The following command sets the enable password for authentication when accessing higher privilege levels. Console(config)# aaa authentication enable default enable 3-4 www.hp.
AAA Commands login authentication The login authentication Line Configuration mode command specifies the login authentication method list for a remote telnet or console. To return to the default configuration specified by the aaa authentication login command, use the no form of this command. Syntax login authentication {default | list-name} no login authentication Parameters n default — Uses the default list created with the aaa authentication login command.
AAA Commands enable authentication The enable authentication Line Configuration mode command specifies the authentication method list when accessing a higher privilege level from a remote telnet or console. To return to the default configuration specified by the aaa authentication enable command, use the no form of this command. Syntax enable authentication {default | list-name} no enable authentication Parameters n default — Uses the default list created with the aaa authentication enable command.
AAA Commands ip http authentication The ip http authentication Global Configuration mode command specifies authentication methods for HTTP server users. To return to the default configuration, use the no form of this command. Syntax ip http authentication method1 [method2...] no ip http authentication Parameters n method1 [method2...] — Specify at least one from the following table: Keyword Description local Uses the local username database for authentication. none Uses no authentication.
AAA Commands ip https authentication The ip https authentication Global Configuration mode command specifies authentication methods for HTTPS server users. To return to the default configuration, use the no form of this command. Syntax ip https authentication method1 [method2...] no ip https authentication Parameters n method1 [method2...] — Specify at least one from the following table: Keyword Source or Destination local Uses the local username database for authentication.
AAA Commands show authentication methods The show authentication methods privileged EXEC mode command displays information about the authentication methods. Syntax show authentication methods Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays the authentication configuration.
AAA Commands password The password Line Configuration mode command specifies a password on a line. To remove the password, use the no form of this command. Syntax password password [encrypted] no password Parameters n password — Password for this level (Range: 1-160 characters). n encrypted — Encrypted password to be entered, copied from another device configuration. Default Setting No password is defined.
AAA Commands enable password The enable password Global Configuration mode command sets a local password to control access to user and privilege levels. To remove the password requirement, use the no form of this command. Syntax enable password [level level] password [encrypted] no enable password [level level] Parameters n password — Password for this level (Range: 1-159 characters). n level — The user privilege level with the following options: n o 1 — Allows access but not configuration rights.
AAA Commands username The username Global Configuration mode command creates a user account in the local database. To remove a user name, use the no form of this command. Syntax username name [password password] [level level] [encrypted] no username name Parameters n name — The name of the user (Range: 1- 20 characters). n password — The authentication password for the user (Range: 1-159 characters).
4 ACL Commands ip access-list The ip access-list Global Configuration command enables the IP-Access Configuration mode and creates Layer 3 ACLs. To delete an ACL, use the no form of this command. Syntax ip access-list name no ip access-list name Parameters n name — Specifies the name of the ACL. Default Setting The default for all ACLs is deny-all. Command Mode Global Configuration mode Command Usage Up to 1018 rules can be defined on the device, depending on the type of rule defined.
ACL Commands permit (IP) The permit IP-Access List Configuration mode command permits traffic if the conditions defined in the permit statement match.
ACL Commands IP Protocol Abbreviated Name Protocol Number Ipv6 Protocol ipv6 41 Routing Header for IPv6 ipv6-route 43 Fragment Header for IPv6 ipv6-frag 44 Inter-Domain Routing Protocol idrp 45 Reservation Protocol rsvp 46 General Routing Encapsulation gre 47 Encapsulating Security Payload (50) esp 50 Authentication Header ah 51 ICMP for IPv6Protocol ipv6-icmp 58 EIGRP Routing Protocol eigrp 88 Open Shortest Path Protocol ospf 89 Protocol Independent Multicast pim 103
ACL Commands Default Setting No IPv4 ACL is defined. Command Mode IP-Access List Configuration mode Command Usage Use the ip access-list Global Configuration mode command to enable the IP-Access List Configuration mode. Before an Access Control Element (ACE) is added to an ACL, all packets are permitted. After an ACE is added, an implied deny-any-any condition exists at the end of the list and those packets that do not match the conditions defined in the permit statement are denied.
ACL Commands deny (IP) The deny IP-Access List Configuration mode command denies traffic if the conditions defined in the deny statement match.
ACL Commands IP Protocol Abbreviated Name Protocol Number Inter-Domain Routing Protocol idrp 45 Reservation Protocol rsvp 46 General Routing Encapsulation gre 47 Encapsulating Security Payload (50) esp 50 Authentication Header ah 51 ICMP for IPv6 ipv6-icmp 58 EIGRP rOuting Protocol eigrp 88 Open Shortest Path Protocol ospf 89 Protocol Independent Multicast pim 103 Layer Two Tunneling Protocol l2tp 115 ISIS over IPv4 isis 124 (any IP protocol) any (25504) n dscp — Ind
ACL Commands mac access-list The mac access-list Global Configuration mode command enables the MAC-Access List Configuration mode and creates Layer 2 ACLs. To delete an ACL, use the no form of this command. Syntax mac access-list name no mac access-list name Parameters n name — Specifies the name of the ACL. Default Setting The default for all ACLs is deny all. Command Mode Global Configuration mode Command Usage There are no user guidelines for this command.
ACL Commands permit (MAC) The permit MAC-Access List Configuration mode command defines permit conditions of an MAC ACL. Syntax permit {any | {host source source-wildcard} any | {destination destination-wildcard}} [vlan vlan-id] [cos cos cos-wildcard] [ethtype eth-type] Parameters n source — Specifies the source MAC address of the packet. n source-wildcard — Specifies wildcard bits to be applied to the source MAC address. Use 1s in bit positions to be ignored.
ACL Commands deny (MAC) The deny MAC-Access List Configuration mode command denies traffic if the conditions defined in the deny statement match. Syntax deny destination deny [disable-port] {any | {source source-wildcard}}{any | {destination destinationwildcard}}[vlan vlan-id] [cos cos cos-wildcard] [ethtype eth-type] Parameters n disable-port — Indicates that the port is disabled if the statement is deny. n source — Specifies the MAC address of the host from which the packet was sent.
ACL Commands Example The following commands create a MAC ACL with deny rules on a device. Console(config)# mac access-list macl1 Console (config-mac-acl)# deny 06:06:06:06:06:06:00:00:00:00:00:00 any 4-10 www.hp.
ACL Commands service-acl The service-acl Interface Configuration mode command applies an ACL to the input interface. To detach an ACL from an input interface, use the no form of this command. Syntax service-acl {input acl-name} no service-acl {input} Parameters n acl-name — Specifies the ACL to be applied to the input interface. Default Setting This command has no default configuration. Command Mode Interface (Ethernet, port-channel) Configuration mode.
ACL Commands show access-lists The show access-lists Privileged EXEC mode command displays access control lists (ACLs) defined on the device. Syntax show access-lists [name] Parameters n name — Name of the ACL. Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays access lists on a device. Console# show access-lists IP access list ACL1 permit ip host 172.30.40.
5 Address Table Commands bridge address The bridge address Interface Configuration (VLAN) mode command adds a MAC-layer station source address to the bridge table. To delete the MAC address, use the no form of this command. Syntax bridge address mac-address {ethernet interface | port-channel port-channel-number} [permanent | delete-on-reset | delete-on-timeout | secure] no bridge address [mac-address] Parameters n mac-address — A valid MAC address. n interface — A valid Ethernet port.
Address Table Commands Example The following command adds a permanent static MAC-layer station source address 3aa2.64b3.a245 on port e16 to the bridge table. Console(config)# interface vlan 2 Console(config-if)# bridge address 3aa2.64b3.a245 ethernet e16 permanent 5-2 www.hp.
Address Table Commands bridge multicast filtering The bridge multicast filtering Global Configuration mode command enables filtering multicast addresses. To disable filtering multicast addresses, use the no form of this command. Syntax bridge multicast filtering no bridge multicast filtering Parameters There are no parameters for this command. Default Setting Filtering multicast addresses is disabled. All multicast addresses are flooded to all ports.
Address Table Commands bridge multicast address The bridge multicast address Interface Configuration (VLAN) mode command registers a MAC-layer multicast address in the bridge table and statically adds ports to the group. To unregister the MAC address, use the no form of this command.
Address Table Commands bridge multicast forbidden address The bridge multicast forbidden address Interface Configuration (VLAN) mode command forbids adding a specific multicast address to specific ports. Use the no form of this command to return to the default configuration.
Address Table Commands bridge multicast forward-all The bridge multicast forward-all Interface Configuration (VLAN) mode command enables forwarding all multicast packets on a port. To restore the default configuration, use the no form of this command. Syntax bridge multicast forward-all {add | remove} {ethernet interface-list | port-channel port-channel-number-list} no bridge multicast forward-all Parameters n add — Force forwarding all multicast packets.
Address Table Commands bridge multicast forbidden forward-all The bridge multicast forbidden forward-all Interface Configuration (VLAN) mode command forbids a port to be a forward-all-multicast port. To restore the default configuration, use the no form of this command. Syntax bridge multicast forbidden forward-all {add | remove} {ethernet interface-list | port-channel port-channel-number-list} no bridge multicast forbidden forward-all Parameters n add — Forbids forwarding all multicast packets.
Address Table Commands bridge aging-time The bridge aging-time Global Configuration mode command sets the address table aging time. To restore the default configuration, use the no form of this command. Syntax bridge aging-time seconds no bridge aging-time Parameters n seconds — Time in seconds. (Range: 10-630 seconds) Default Setting The default is 300 seconds. Command Mode Global Configuration mode Command Usage There are no user guidelines for this command.
Address Table Commands clear bridge The clear bridge Privileged EXEC mode command removes any learned entries from the forwarding database. Syntax clear bridge Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command clears the bridge tables. Console# clear bridge HP PC Blade Switch CLI Reference Guide www.hp.
Address Table Commands port security The port security Interface Configuration mode command locks the port, thereby, blocking unknown traffic and preventing the port from learning new addresses. To return to the default configuration, use the no form of this command. Syntax port security [forward | discard | discard-shutdown] [trap seconds] no port security Parameters n forward — Forwards packets with unlearned source addresses, but does not learn the address.
Address Table Commands port security mode The port security mode Interface Configuration mode command configures the port security mode. To return to the default configuration, use the no form of this command. Syntax port security mode {lock | dynamic} no port security mode Parameters n lock — Saves the current dynamic MAC addresses associated with the port and disables learning, relearning and aging.
Address Table Commands port security max The port security max Interface Configuration (Ethernet, port-channel) mode command configures the maximum number of addresses that can be learned on the port while the port is in port security mode. To return to the default configuration, use the no form of this command. Syntax port security max max-addr no port security max Parameters n max-addr — Maximum number of addresses that can be learned by the port.
Address Table Commands port security routed secure-address The port security routed secure-address Interface Configuration (Ethernet, port-channel) mode command adds a MAC-layer secure address to a routed port. Use the no form of this command to delete a MAC address. Syntax port security routed secure-address mac-address no port security routed secure-address mac-address Parameters n mac-address — A valid MAC address. Default Setting No addresses are defined.
Address Table Commands show bridge address-table The show bridge address-table Privileged EXEC mode command displays all entries in the bridge-forwarding database. Syntax show bridge address-table [vlan vlan] [ethernet interface | port-channel port-channel-number] Parameters n vlan — Specifies a valid VLAN, such as VLAN 1. n interface — A valid Ethernet port. n port-channel-number — A valid port-channel number. Default Setting This command has no default configuration.
Address Table Commands show bridge address-table static The show bridge address-table static Privileged EXEC mode command displays statically created entries in the bridge-forwarding database. Syntax show bridge address-table static [vlan vlan] [ethernet interface | port-channel port-channel-number] Parameters n vlan — Specifies a valid VLAN, such as VLAN 1. n interface — A valid Ethernet port. n port-channel-number — A valid port-channel number.
Address Table Commands show bridge address-table count The show bridge address-table count Privileged EXEC mode command displays the number of addresses present in the Forwarding Database. Syntax show bridge address-table count [vlan vlan][ ethernet interface-number | port-channel port-channel-number] Parameters n vlan — Specifies a valid VLAN, such as VLAN 1. n interface — A valid Ethernet port. n port-channel-number — A valid port-channel number.
Address Table Commands show bridge multicast address-table The show bridge multicast address-table User EXEC mode command displays multicast MAC address or IP address table information. Syntax show bridge multicast address-table [vlan vlan-id] [address mac-multicast-address | ip-multicast-address] [format ip | format mac] Parameters n vlan-id — A valid VLAN ID value. n mac-multicast-address — A valid MAC multicast address. n ip-multicast-address — A valid IP multicast address.
Address Table Commands Console# show bridge multicast address-table format ip VLAN IP/MAC Address Type Ports ---- ----------------- ------ --------- 1 224-239.130|2.2.3 static e1 19 224-239.130|2.2.8 static e1-8 19 224-239.130|2.2.8 dynamic e9-11 Forbidden ports for multicast addresses: . 5-18 VLAN IP/MAC Address Ports ---- ----------------- ------ 1 224-239.130|2.2.3 e8 19 224-239.130|2.2.8 e8 A multicast MAC address maps to multiple IP addresses as shown in the example.
Address Table Commands show bridge multicast filtering The show bridge multicast filtering User EXEC mode command displays the multicast filtering configuration. Syntax show bridge multicast filtering vlan-id Parameters n vlan-id — VLAN ID value. Default Setting This command has no default configuration. Command Mode User EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays the Multicast configuration for VLAN 1.
Address Table Commands show ports security The show ports security Privileged EXEC mode command displays the port-lock status. Syntax show ports security [ethernet interface | port-channel port-channel-number] Parameters n interface — A valid Ethernet port. n port-channel-number — A valid port-channel number. Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command.
Address Table Commands show ports security addresses The show ports security addresses Privileged EXEC mode command displays the current dynamic addresses in locked ports. Syntax show ports security addresses [ethernet interface | port-channel port-channel-number] Parameters n interface — A valid Ethernet port. n port-channel-number — A valid port-channel number Default Setting This command has no default configuration.
Address Table Commands 5-22 www.hp.
6 Clock Commands clock set The clock set Privileged EXEC mode command manually sets the system clock. Syntax clock set hh:mm:ss day month year or clock set hh:mm:ss month day year Parameters n hh:mm:ss — Current time in hours (military format), minutes, and seconds (hh: 0-23, mm: 0-59, ss: 0-59). n day — Current day (by date) in the month (1-31). n month — Current month using the first three letters by name (Jan, …, Dec). n year — Current year (2000-2097).
Clock Commands clock source The clock source Global Configuration mode command configures an external time source for the system clock. Use no form of this command to disable external time source. Syntax clock source {sntp} no clock source Parameters n sntp — SNTP servers Default Setting No external clock source. Command Mode Global Configuration mode Command Usage There are no user guidelines for this command. Example The following command configures an external time source for the system clock.
Clock Commands clock timezone The clock timezone Global Configuration mode command sets the time zone for display purposes. To set the time to the Coordinated Universal Time (UTC), use the no form of this command. Syntax clock timezone hours-offset [minutes minutes-offset] [zone acronym] no clock timezone Parameters n hours-offset — Hours difference from UTC. (Range: -12 – +13) n minutes-offset — Minutes difference from UTC. (Range: 0–59 minutes) n acronym — The acronym of the time zone.
Clock Commands clock summer-time The clock summer-time Global Configuration mode command configures the system to automatically switch to summer time (daylight saving time). To configure the software not to automatically switch to summer time, use the no form of this command.
Clock Commands Command Usage In both the date and recurring forms of the command, the first part of the command specifies when summer time begins, and the second part specifies when it ends. All times are relative to the local time zone. The start time is relative to standard time. The end time is relative to summer time. If the starting month is chronologically after the ending month, the system assumes that the user is in the southern hemisphere.
Clock Commands sntp authentication-key The sntp authentication-key Global Configuration mode command defines an authentication key for Simple Network Time Protocol (SNTP). To remove the authentication key for SNTP, use the no form of this command. Syntax sntp authentication-key number md5 value no sntp authentication-key number Parameters n number — Key number (Range: 1-4294967295) n value — Key value (Range: 1-8 characters) Default Setting No authentication key is defined.
Clock Commands sntp authenticate The sntp authenticate Global Configuration mode command grants authentication for received Simple Network Time Protocol (SNTP) traffic from servers. To disable the feature, use the no form of this command. Syntax sntp authenticate no sntp authenticate Parameters There are no parameters for this command. Default Setting No authentication Command Mode Global Configuration mode Command Usage The command is relevant for both unicast and broadcast.
Clock Commands sntp trusted-key The sntp trusted-key Global Configuration mode command authenticates the identity of a system to which Simple Network Time Protocol (SNTP) will synchronize. To disable authentication of the identity of the system, use the no form of this command. Syntax sntp trusted-key key-number no sntp trusted-key key-number Parameters n key-number — Key number of authentication key to be trusted. (Range: 1-4294967295) Default Setting No keys are trusted.
Clock Commands sntp client poll timer The sntp client poll timer Global Configuration mode command sets the polling time for the Simple Network Time Protocol (SNTP) client. To return to default configuration, use the no form of this command. Syntax sntp client poll timer seconds no sntp client poll timer Parameters n seconds — Polling interval in seconds (Range: 60-86400) Default Setting Polling interval is 1024 seconds.
Clock Commands sntp broadcast client enable The sntp broadcast client enable Global Configuration mode command enables Simple Network Time Protocol (SNTP) broadcast clients. To disable SNTP broadcast clients, use the no form of this command. Syntax sntp broadcast client enable no sntp broadcast client enable Parameters There are no parameters for this command. Default Setting The SNTP broadcast client is disabled.
Clock Commands sntp anycast client enable The sntp anycast client enable Global Configuration mode command enables SNTP anycast client. To disable the SNTP anycast client, use the no form of this command. Syntax sntp anycast client enable no sntp anycast client enable Parameters There are no parameters for this command. Default Setting The SNTP anycast client is disabled.
Clock Commands sntp client enable (Interface) The sntp client enable Interface Configuration (Ethernet, port-channel, VLAN) mode command enables the Simple Network Time Protocol (SNTP) client on an interface. This applies to both receive broadcast and anycast updates. To disable the SNTP client, use the no form of this command. Syntax sntp client enable no sntp client enable Parameters There are no parameters for this command. Default Setting The SNTP client is disabled on an interface.
Clock Commands sntp unicast client enable The sntp unicast client enable Global Configuration mode command enables the device to use the Simple Network Time Protocol (SNTP) to request and accept SNTP traffic from servers. To disable requesting and accepting SNTP traffic from servers, use the no form of this command. Syntax sntp unicast client enable no sntp unicast client enable Parameters There are no parameters for this command. Default Setting The SNTP unicast client is disabled.
Clock Commands sntp unicast client poll The sntp unicast client poll Global Configuration mode command enables polling for the Simple Network Time Protocol (SNTP) predefined unicast servers. To disable the polling for SNTP client, use the no form of this command. Syntax sntp unicast client poll no sntp unicast client poll Parameters There are no parameters for this command. Default Setting Polling is disabled.
Clock Commands sntp server The sntp server Global Configuration mode command configures the device to use the Simple Network Time Protocol (SNTP) to request and accept SNTP traffic from a specified server. To remove a server from the list of SNTP servers, use the no form of this command. Syntax sntp server {ip-address | hostname}[poll] [key keyid] no sntp server host Parameters n ip-address — IP address of the server. n hostname — Hostname of the server.
Clock Commands show clock The show clock User EXEC mode command displays the time and date from the system clock. Syntax show clock [detail] Parameters detail — Shows timezone and summertime configuration. n Default Setting This command has no default configuration. Command Mode User EXEC mode Command Usage The symbol that precedes the show clock display indicates the following information: Symbol Description * Time is not authoritative. (blank) Time is authoritative. .
Clock Commands show sntp configuration The show sntp configuration Privileged EXEC mode command shows the configuration of the Simple Network Time Protocol (SNTP). Syntax show sntp configuration Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays the current SNTP configuration of the device.
Clock Commands show sntp status The show status Privileged EXEC mode command shows the status of the Simple Network Time Protocol (SNTP). Syntax show sntp status Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command shows the status of the SNTP. Console# show sntp status Clock is synchronized, stratum 4, reference is 176.1.1.
7 Configuration and Image File Commands copy The copy Privileged EXEC mode command copies files from a source to a destination. Syntax copy source-url destination-url Parameters n source-url — The source file location URL or reserved keyword of the source file to be copied. (Range: 1-160 characters) n destination-url — The destination file URL or reserved keyword of the destination file.
Configuration and Image File Commands Command Usage Up to five backup configuration files are supported on the device. The location of a file system dictates the format of the source or destination URL. The entire copying process may take several minutes and differs from protocol to protocol and from network to network. *.prv and *.sys files cannot be copied. Understanding Invalid Combinations of Source and Destination Some invalid combinations of source and destination exist.
Configuration and Image File Commands Backing up the Running or Startup Configuration to a Backup Configuration File To copy the running configuration file to a backup configuration file, enter the copy running-config file command. To copy the startup configuration file to a backup configuration file, enter the copy startup-config file command. Before copying from the backup configuration file to the running configuration file, make sure that the backup configuration file has not been corrupted.
Configuration and Image File Commands delete The delete Privileged EXEC mode command deletes a file from a flash memory device. Syntax delete url Parameters n url — The location URL or reserved keyword of the file to be deleted. (Range: 1-160 characters) The following table displays keywords and URL prefixes: Keyword Description flash Source or destination URL for flash memory. This is the default when a URL is specified without a prefix. startup-config Represents the startup configuration file.
Configuration and Image File Commands boot system The boot system Privileged EXEC mode command specifies the system image that the device loads at startup. Syntax boot system {image-1 | image-2} Parameters n image-1 — Specifies image 1 as the system startup image. n image-2 — Specifies image 2 as the system startup image. Default Setting The command has no default configuration. Command Mode Privileged EXEC mode Command Usage Use the show bootvar command to find out which image is the active image.
Configuration and Image File Commands show running-config The show running-config Privileged EXEC mode command displays the contents of the currently running configuration file. Syntax show running-config Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays the contents of the running configuration file.
Configuration and Image File Commands .
Configuration and Image File Commands show startup-config The show startup-config Privileged EXEC mode command displays the contents of the startup configuration file. Syntax show startup-config Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays the contents of the running configuration file.
Configuration and Image File Commands spanning-tree mst 11 priority 61440 spanning-tree mst 12 priority 61440 spanning-tree mst 13 priority 61440 spanning-tree mst 14 priority 61440 spanning-tree mst 15 priority 61440 vlan database vlan 1-2 exit interface range ethernet e(1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41-42,45-46) switchport access vlan 1 exit interface range ethernet e(2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,43-44) switchport access vlan 2 exit interface vlan 1 ip
Configuration and Image File Commands show bootvar The show bootvar Privileged EXEC mode command displays the active system image file that is loaded by the device at startup. Syntax show bootvar Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays the active system image file that is loaded by the device at startup.
8 Ethernet Configuration Commands interface ethernet The interface ethernet Global Configuration mode command enters the interface configuration mode to configure an Ethernet type interface. Syntax interface ethernet interface Parameters n interface — Valid Ethernet port. (Full syntax: port) Default Setting This command has no default configuration. Command Mode Global Configuration mode Command Usage There are no user guidelines for this command.
Ethernet Configuration Commands interface range ethernet The interface range ethernet Global Configuration mode command configures multiple Ethernet type interfaces at the same time. Syntax interface range ethernet {port-range | all} n port-range — List of valid ports. Where more than one port is listed, separate nonconsecutive ports with a comma and no spaces, use a hyphen to designate a range of ports and group a list separated by commas in brackets. n all — All Ethernet ports.
Ethernet Configuration Commands shutdown The shutdown Interface Configuration (Ethernet, port-channel) mode command disables an interface. To restart a disabled interface, use the no form of this command. Syntax shutdown no shutdown Parameters There are no parameters for this command. Default Setting The interface is disabled. Command Mode Interface Configuration (Ethernet, port-channel) mode Command Usage There are no user guidelines for this command.
Ethernet Configuration Commands description The description Interface Configuration (Ethernet, port-channel) mode command adds a description to an interface. To remove the description, use the no form of this command. Syntax description string no description Parameters n string — Comment or a description of the port to enable the user to remember what is attached to the port. (Range: 1-64 characters) Default Setting The interface does not have a description.
Ethernet Configuration Commands speed The speed Interface Configuration (Ethernet, port-channel) mode command configures the speed of a given Ethernet interface when not using auto-negotiation. To restore the default configuration, use the no form of this command. Syntax speed {10 | 100 | 1000} no speed Parameters n 10 — Forces10 Mbps operation. n 100 — Forces 100 Mbps operation. n 1000 — Forces 1000 Mbps operation.
Ethernet Configuration Commands duplex The duplex Interface Configuration (Ethernet) mode command configures the full/half duplex operation of a given Ethernet interface when not using auto-negotiation. To restore the default configuration, use the no form of this command. Syntax duplex {half | full} no duplex Parameters n half — Forces half-duplex operation n full — Forces full-duplex operation Default Setting The interface is set to full duplex.
Ethernet Configuration Commands negotiation The negotiation Interface Configuration (Ethernet, port-channel) mode command enables auto-negotiation operation for the speed and duplex parameters of a given interface. To disable auto-negotiation, use the no form of this command. Syntax negotiation [capability1 [capability2…capability5]] no negotiation Parameters n capability — Specifies the capabilities to advertise. (Possible values: 10h, 10f, 100h,100f, 1000f) Default Setting Auto-negotiation is enabled.
Ethernet Configuration Commands flowcontrol The flowcontrol Interface Configuration (Ethernet, port-channel) mode command configures flow control on a given interface. To disable flow control, use the no form of this command. Syntax flowcontrol {auto | on | off} no flowcontrol Parameters n auto — Indicates auto-negotiation n on — Enables flow control. n off — Disables flow control. Default Setting Flow control is off.
Ethernet Configuration Commands mdix The mdix Interface Configuration (Ethernet) mode command enables cable crossover on a given interface. To disable cable crossover, use the no form of this command.
Ethernet Configuration Commands back-pressure The back-pressure Interface Configuration (Ethernet, port-channel) mode command enables back pressure on a given interface. To disable back pressure, use the no form of this command. Syntax back-pressure no back-pressure Parameters There are no parameters for this command. Default Setting Back pressure is disabled. Command Mode Interface Configuration (Ethernet, port-channel) mode Command Usage This feature is only available on ports operating in half-duplex.
Ethernet Configuration Commands clear counters The clear counters User EXEC mode command clears statistics on an interface. Syntax clear counters [ethernet interface | port-channel port-channel-number] Parameters n interface — Valid Ethernet port. (Full syntax: port) n port-channel-number — Valid port-channel number. Default Setting This command has no default configuration. Command Mode User EXEC mode Command Usage There are no user guidelines for this command.
Ethernet Configuration Commands set interface active The set interface active Privileged EXEC mode command reactivates an interface that was shutdown. Syntax set interface active {ethernet interface | port-channel port-channel-number} Parameters n interface — Valid Ethernet port. (Full syntax: port) n port-channel-number — Valid port-channel number. Default Setting This command has no default configuration.
Ethernet Configuration Commands show interfaces advertise The show interfaces advertise Privileged EXEC mode command displays auto negotiation data. Syntax show interfaces advertise [ethernet interface | port-channel port-channel-number] Parameters n interface — Valid Ethernet port. (Full syntax: port) n port-channel-number — Valid port-channel number. Default Setting This command has no default configuration.
Ethernet Configuration Commands show interfaces configuration The show interfaces configuration Privileged EXEC mode command displays the configuration for all configured interfaces. Syntax show interfaces configuration [ethernet interface | port-channel port-channel-number] Parameters n interface — Valid Ethernet port. (Full syntax: port) n port-channel-number — Valid port-channel number. Default Setting This command has no default configuration.
Ethernet Configuration Commands show interfaces status The show interfaces status Privileged EXEC mode command displays the status of all configured interfaces. Syntax show interfaces status [ethernet interface| port-channel port-channel-number] Parameters n interface — A valid Ethernet port. (Full syntax: port) n port-channel-number — A valid port-channel number. Default Setting This command has no default configuration.
Ethernet Configuration Commands show interfaces description The show interfaces description Privileged EXEC mode command displays the description for all configured interfaces. Syntax show interfaces description [ethernet interface | port-channel port-channel-number] Parameters n interface — Valid Ethernet port. (Full syntax: port) n port-channel-number — A valid port-channel number. Default Setting This command has no default configuration.
Ethernet Configuration Commands show interfaces counters The show interfaces counters User EXEC mode command displays traffic seen by the physical interface. Syntax show interfaces counters [ethernet interface | port-channel port-channel-number] Parameters n interface — A valid Ethernet port. (Full syntax: port) n port-channel-number — A valid port-channel number. Default Setting This command has no default configuration.
Ethernet Configuration Commands The following command displays counters for Ethernet port e1: Console# show interfaces counters ethernet e1 Port InOctets InUcastPkts InMcastPkts InBcastPkts ------ ----------- -------------- ----------- ----------- e1 183892 0 0 0 Port OutOctets OutUcastPkts OutMcastPkts OutBcastPkts ------ ----------- -------------- ------------ ------------ e1 9188 0 0 0 FCS Errors: 8 Single Collision Frames: 0 Late Collisions: 0 Oversize Packets: 0 Internal
Ethernet Configuration Commands Field Description Received Pause Frames Counted MAC Control frames received with an opcode indicating the PAUSE operation. Transmitted Pause Frames Counted MAC Control frames transmitted on this interface with an opcode indicating the PAUSE operation. HP PC Blade Switch CLI Reference Guide www.hp.
Ethernet Configuration Commands port storm-control include-multicast (IC) The port storm-control include-multicast Interface Configuration (Ethernet) mode command counts multicast packets in broadcast storm control. To disable counting multicast packets, use the no form of this command. Syntax port storm-control include-multicast [unknown-unicast] no port storm-control include-multicast Parameters n unknown-unicast — Specifies also counting unknown unicast packets.
Ethernet Configuration Commands port storm-control broadcast enable The port storm-control broadcast enable Interface Configuration (Ethernet) mode command enables broadcast storm control. To disable broadcast storm control, use the no form of this command. Syntax port storm-control broadcast enable no port storm-control broadcast enable Parameters There are no parameters for this command. Default Setting Broadcast storm control is disabled.
Ethernet Configuration Commands port storm-control broadcast rate The port storm-control broadcast rate Interface Configuration (Ethernet) mode command configures the maximum broadcast rate. To return to the default configuration, use the no form of this command. Syntax port storm-control broadcast rate rate no port storm-control broadcast rate Parameters n rate — Maximum kilobits per second of broadcast and multicast traffic on a port. (Range: 70-100000).
Ethernet Configuration Commands show ports storm-control The show ports storm-control User EXEC mode command displays the storm control configuration. Syntax show ports storm-control [interface] Parameters n interface — A valid Ethernet port. (Full syntax: port) Default Setting This command has no default configuration. Command Mode User EXEC mode. Command Usage There are no user guidelines for this command. Example The following command displays the storm control configuration.
Ethernet Configuration Commands 8-24 www.hp.
9 GVRP Commands gvrp enable (Global) GARP VLAN Registration Protocol (GVRP) is an industry-standard protocol designed to propagate VLAN information from device to device. With GVRP, a single device is manually configured with all desired VLANs for the network, and all other devices on the network learn these VLANs dynamically. The gvrp enable Global Configuration mode command enables GVRP globally. To disable GVRP on the device, use the no form of this command.
GVRP Commands gvrp enable (Interface) The gvrp enable Interface Configuration (Ethernet, port-channel) mode command enables GVRP on an interface. To disable GVRP on an interface, use the no form of this command. Syntax gvrp enable no gvrp enable Parameters There are no parameters for this command. Default Setting GVRP is disabled on all interfaces.
GVRP Commands garp timer The garp timer Interface Configuration (Ethernet, port-channel) mode command adjusts the values of the join, leave, and leaveall timers of GARP applications. To return to the default configuration, use the no form of this command. Syntax garp timer {join | leave | leaveall} timer_value no garp timer Parameters n {join | leave | leaveall} — Indicates the type of timer. n timer_value — Timer values in milliseconds in multiples of 10.
GVRP Commands gvrp vlan-creation-forbid The gvrp vlan-creation-forbid Interface Configuration (Ethernet, port-channel) mode command disables dynamic VLAN creation or modification. To enable dynamic VLAN creation or modification, use the no form of this command. Syntax gvrp vlan-creation-forbid no gvrp vlan-creation-forbid Parameters There are no parameters for this command. Default Setting Dynamic VLAN creation or modification is enabled.
GVRP Commands gvrp registration-forbid The gvrp registration-forbid Interface Configuration (Ethernet, port-channel) mode command de-registers all dynamic VLANs on a port and prevents VLAN creation or registration on the port. To allow dynamic registration of VLANs on a port, use the no form of this command. Syntax gvrp registration-forbid no gvrp registration-forbid Parameters There are no parameters for this command. Default Setting Dynamic registration of VLANs on the port is allowed.
GVRP Commands clear gvrp statistics The clear gvrp statistics Privileged EXEC mode command clears all GVRP statistical information. Syntax clear gvrp statistics [ethernet interface | port-channel port-channel-number] Parameters n interface — A valid Ethernet port. (Full syntax: port) n port-channel-number — A valid port-channel number. Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command.
GVRP Commands show gvrp configuration The show gvrp configuration User EXEC mode command displays GVRP configuration information, including timer values, whether GVRP and dynamic VLAN creation is enabled, and which ports are running GVRP. Syntax show gvrp configuration [ethernet interface | port-channel port-channel-number] Parameters n interface — A valid Ethernet port. (Full syntax: port) n port-channel-number — A valid port-channel number. Default Setting This command has no default configuration.
GVRP Commands show gvrp statistics The show gvrp statistics User EXEC mode command displays GVRP statistics. Syntax show gvrp statistics [ethernet interface | port-channel port-channel-number] Parameters n interface — A valid Ethernet port. (Full syntax: port) n port-channel-number — A valid port-channel number. Default Setting This command has no default configuration. Command Mode User EXEC mode Command Usage There are no user guidelines for this command.
GVRP Commands show gvrp error-statistics The show gvrp error-statistics User EXEC mode command displays GVRP error statistics. Syntax show gvrp error-statistics [ethernet interface | port-channel port-channel-number] Parameters n interface — A valid Ethernet port. (Full syntax: port) n port-channel-number — A valid port-channel number. Default Setting This command has no default configuration. Command Mode User EXEC mode Command Usage There are no user guidelines for this command.
GVRP Commands 9-10 www.hp.
10 IGMP Snooping Commands ip igmp snooping (Global) The ip igmp snooping Global Configuration mode command enables Internet Group Management Protocol (IGMP) snooping. To disable IGMP snooping, use the no form of this command. Syntax ip igmp snooping no ip igmp snooping Parameters There are no parameters for this command. Default Setting IGMP snooping is disabled. Command Mode Global Configuration mode Command Usage IGMP snooping can only be enabled on static VLANs.
IGMP Snooping Commands ip igmp snooping (Interface) The ip igmp snooping Interface Configuration (VLAN) mode command enables Internet Group Management Protocol (IGMP) snooping on a specific VLAN. To disable IGMP snooping on a VLAN interface, use the no form of this command. Syntax ip igmp snooping no ip igmp snooping Parameters There are no parameters for this command. Default Setting IGMP snooping is disabled.
IGMP Snooping Commands nip igmp snooping host-time-out The ip igmp snooping host-time-out Interface Configuration (VLAN) mode command configures the host-time-out. If an IGMP report for a multicast group was not received for a host-time-out period from a specific port, this port is deleted from the member list of that multicast group. To return to the default configuration, use the no form of this command.
IGMP Snooping Commands ip igmp snooping mrouter-time-out The ip igmp snooping mrouter-time-out Interface Configuration (VLAN) mode command configures the mrouter-time-out. The ip igmp snooping mrouter-time-out Interface Configuration (VLAN) mode command is used for setting the aging-out time after multicast device ports are automatically learned. To return to the default configuration, use the no form of this command.
IGMP Snooping Commands ip igmp snooping mrouter learn-pim-dvmrp The ip igmp snooping mrouter learn-pim-dvmrp Interface Configuration (VLAN) mode command enables automatic learning of multicast router ports in the context of a specific VLAN. To remove automatic learning of multi-cast router ports, use the no form of this command. Syntax ip igmp snooping mrouter learn-pim-dvmrp no ip igmp snooping mrouter learn-pim-dvmrp Default Configuration Automatic learning of multicast router ports is enabled.
IGMP Snooping Commands ip igmp snooping leave-time-out The ip igmp snooping leave-time-out Interface Configuration (VLAN) mode command configures the leave-time-out. If an IGMP report for a multicast group was not received for a leave-time-out period after an IGMP Leave was received from a specific port, this port is deleted from the member list of that multicast group.To return to the default configuration, use the no form of this command.
IGMP Snooping Commands show ip igmp snooping mrouter The show ip igmp snooping mrouter User EXEC mode command displays information on dynamically learned multicast device interfaces. Syntax show ip igmp snooping mrouter [interface vlan-id] Parameters n vlan-id — VLAN number. Default Setting This command has no default configuration. Command Mode User EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays multicast device interfaces in VLAN 1000.
IGMP Snooping Commands show ip igmp snooping interface The show ip igmp snooping interface User EXEC mode command displays IGMP snooping configuration. Syntax show ip igmp snooping interface vlan-id Parameters n vlan-id — VLAN number. Default Setting This command has no default configuration. Command Mode User EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays IGMP snooping information on VLAN 1000.
IGMP Snooping Commands show ip igmp snooping groups The show ip igmp snooping groups User EXEC mode command displays multicast groups learned by IGMP snooping. Syntax show ip igmp snooping groups [vlan vlan-id] [address ip-multicast-address] Parameters n vlan-id — VLAN number. n ip-multicast-address — IP multicast address. Default Setting This command has no default configuration.
IGMP Snooping Commands 10-10 www.hp.
11 IP Addressing Commands ip address The ip address Interface Configuration (Ethernet, VLAN, port-channel) mode command sets an IP address. To remove an IP address, use the no form of this command. Syntax ip address ip-address {mask | prefix-length} no ip address [ip-address] Parameters n ip-address —Valid IP address n mask — Valid network mask of the IP address. n prefix-length — Specifies the number of bits that comprise the IP address prefix.
IP Addressing Commands ip address dhcp The ip address dhcp Interface Configuration (Ethernet, VLAN, port-channel) mode command acquires an IP address for an Ethernet interface from the Dynamic Host Configuration Protocol (DHCP) server. To deconfigure an acquired IP address, use the no form of this command. Syntax ip address dhcp [hostname host-name] no ip address dhcp Parameters n host-name — Specifies the name of the host to be placed in the DHCP option 12 field.
IP Addressing Commands ip default-gateway The ip default-gateway Global Configuration mode command defines a default gateway. To return to the default configuration, use the no form of this command. Syntax ip default-gateway ip-address no ip default-gateway Parameters n ip-address — Valid IP address of the default gateway. Default Setting No default gateway is defined. Command Mode Global Configuration mode Command Usage There are no user guidelines for this command.
IP Addressing Commands show ip interface The show ip interface Privileged EXEC mode command displays the usability status of configured IP interfaces. Syntax show ip interface [ethernet interface-number | vlan vlan-id | port-channel port-channel number] Parameters n interface-number — Valid Ethernet port. n vlan-id — Valid VLAN number. n port-channel number — Valid port-channel number. Default Setting This command has no default configuration.
IP Addressing Commands arp The arp Global Configuration mode command adds a permanent entry in the Address Resolution Protocol (ARP) cache. To remove an entry from the ARP cache, use the no form of this command. Syntax arp ip_addr hw_addr {ethernet interface-number | vlan vlan-id | port-channel port-channel number} no arp ip_addr {ethernet interface-number | vlan vlan-id | port-channel port-channel number} Parameters n ip_addr — Valid IP address or IP alias to map to the specified MAC address.
IP Addressing Commands arp timeout The arp timeout Global Configuration mode command configures how long an entry remains in the ARP cache. To return to the default configuration, use the no form of this command. Syntax arp timeout seconds no arp timeout Parameters n seconds — Time (in seconds) that an entry remains in the ARP cache. (Range: 1-40000000) Default Setting The default timeout is 60000 seconds.
IP Addressing Commands clear arp-cache The clear arp-cache Privileged EXEC mode command deletes all dynamic entries from the ARP cache. Syntax clear arp-cache Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command deletes all dynamic entries from the ARP cache.
IP Addressing Commands show arp The show arp Privileged EXEC mode command displays entries in the ARP table. Syntax show arp Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays entries in the ARP table.
IP Addressing Commands ip domain-lookup The ip domain-lookup Global Configuration mode command enables the IP Domain Naming System (DNS)-based host name-to-address translation. To disable DNS-based host name-to-address translation, use the no form of this command. Syntax ip domain-lookup no ip domain-lookup Parameters There are no parameters for this command. Default Setting IP Domain Naming System (DNS)-based host name-to-address translation is enabled.
IP Addressing Commands ip domain-name The ip domain-name Global Configuration mode command defines a default domain name used by the software to complete unqualified host names (names without a dotted-decimal domain name). To remove the default domain name, use the no form of this command. Syntax ip domain-name name no ip domain-name Parameters n name — Specifies the default domain name used to complete unqualified host names.
IP Addressing Commands ip name-server The ip name-server Global Configuration mode command defines the available name servers. To remove a name server, use the no form of this command. Syntax ip name-server server-address [server-address2 … server-address8] no ip name-server [server-address1 … server-address8] Parameters n server-address — Specifies IP addresses of the name server. Default Setting No name server addresses are specified.
IP Addressing Commands ip host The ip host Global Configuration mode command defines static host name-to-address mapping in the host cache. To remove the name-to-address mapping, use the no form of this command. Syntax ip host name address no ip host name Parameters n name — Name of the host (Range: 1-158 characters) n address — Associated IP address. Default Setting No host is defined. Command Mode Global Configuration mode Command Usage Up to 8 host names can be configured.
IP Addressing Commands clear host The clear host Privileged EXEC mode command deletes entries from the host name-to-address cache. Syntax clear host {name | *} Parameters n name — Specifies the host entry to be removed. (Range: 1-158 characters) n *— Removes all entries. Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command.
IP Addressing Commands clear host dhcp The clear host dhcp Privileged EXEC mode command deletes entries from the host name-to-address mapping received from Dynamic Host Configuration Protocol (DHCP). Syntax clear host dhcp {name | *} Parameters n name — Specifies the host entry to be removed. (Range: 1-158 characters) n * — Removes all entries. Default Setting This command has no default configuration.
IP Addressing Commands show hosts The show hosts Privileged EXEC mode command displays the default domain name, a list of name server hosts, the static and the cached list of host names and addresses. Syntax show hosts [name] Parameters n name — Specifies the host name. (Range: 1-158 characters) Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays host information.
IP Addressing Commands 11-16 www.hp.
12 LACP Commands lacp system-priority The lacp system-priority Global Configuration mode command configures the system priority. To return to the default configuration, use the no form of this command. Syntax lacp system-priority value no lacp system-priority Parameters n value — Specifies system priority value. (Range: 1-65535) Default Setting The default system priority is 1. Command Mode Global Configuration mode Command Usage There are no user guidelines for this command.
LACP Commands lacp port-priority The lacp port-priority Interface Configuration (Ethernet) mode command configures physical port priority. To return to the default configuration, use the no form of this command. Syntax lacp port-priority value no lacp port-priority Parameters n value — Specifies port priority. (Range: 1 - 65535) Default Setting The default port priority is 1. Command Mode Interface Configuration (Ethernet) mode Command Usage There are no user guidelines for this command.
LACP Commands lacp timeout The lacp timeout Interface Configuration (Ethernet) mode command assigns an administrative LACP timeout. To return to the default configuration, use the no form of this command. Syntax lacp timeout {long | short} no lacp timeout Parameters n long — Specifies the long timeout value. n short — Specifies the short timeout value. Default Setting The default port timeout value is long.
LACP Commands show lacp ethernet The show lacp ethernet Privileged EXEC mode command displays LACP information for Ethernet ports. Syntax show lacp ethernet interface [parameters | statistics | protocol-state] Parameters n interface — Valid Ethernet port. (Full syntax: port) n parameters — Link aggregation parameter information. n statistics — Link aggregation statistics information. n protocol-state — Link aggregation protocol-state information.
LACP Commands distributing: FALSE expired: FALSE system priority: 0 system mac addr: 00:00:00:00:00:00 port Admin key: 0 Partner port Oper key: 0 port Oper number: 0 port Admin priority: 0 port Oper priority: 0 port Oper timeout: LONG LACP Activity: PASSIVE Aggregation: AGGREGATABLE synchronization: FALSE collecting: FALSE distributing: FALSE expired: FALSE Port e45 LACP Statistics: LACP PDUs sent: 2 LACP PDUs received: 2 Port e45 LACP Protocol State: LACP State Machine
LACP Commands show lacp port-channel The show lacp port-channel Privileged EXEC mode command displays LACP information for a port-channel. Syntax show lacp port-channel [port_channel_number] Parameters n port_channel_number — Valid port-channel number. Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays LACP information about port-channel 1.
13 Line Commands line The line Global Configuration mode command identifies a specific line for configuration and enters the Line Configuration command mode. Syntax line {console | telnet | ssh} Parameters n console — Console terminal line. n telnet — Virtual terminal for remote console access (Telnet). n ssh — Virtual terminal for secured remote console access (SSH). Default Setting This command has no default configuration.
Line Commands speed The speed Line Configuration mode command sets the line baud rate. To return to the default configuration, use the no form of the command. Syntax speed bps no speed Parameters n bps — Baud rate in bits per second (bps). Possible values are 2400, 9600, 19200, 38400, 57600 and 115200. Default Setting The default speed is 9600 bps. Command Mode Line Configuration (console) mode Command Usage This command is available only on the line console.
Line Commands autobaud The autobaud Line Configuration mode command sets the line for automatic baud rate detection (autobaud). To disable automatic baud rate detection, use the no form of the command. Syntax autobaud no autobaud Parameters There are no parameters for this command. Default Setting Autobaud is disabled. Command Mode Line Configuration (console) mode Command Usage This command is available only on the line console. To start communication using Autobaud, press twice.
Line Commands exec-timeout The exec-timeout Line Configuration mode command sets the interval that the system waits until user input is detected. To return to the default configuration, use the no form of this command. Syntax exec-timeout minutes [seconds] no exec-timeout Parameters n minutes — Specifies the number of minutes. (Range: 0-65535) n seconds — Specifies additional time intervals in seconds. (Range: 0-59) Default Setting The default configuration is 10 minutes.
Line Commands history The history Line Configuration mode command enables the command history function. To disable the command history function, use the no form of this command. Syntax history no history Parameters There are no parameters for this command. Default Setting The command history function is enabled. Command Mode Line Configuration mode Command Usage This command enables the command history function for a specified line.
Line Commands history size The history size Line Configuration mode command configures the command history buffer size for a particular line. To reset the command history buffer size to the default configuration, use the no form of this command. Syntax history size number-of-commands no history size Parameters n number-of-commands — Number of commands that the system records in its history buffer. (Range: 10-216) Default Setting The default history buffer size is 10.
Line Commands terminal history The terminal history user EXEC command enables the command history function for the current terminal session. To disable the command history function, use the no form of this command. Syntax terminal history terminal no history Parameters There are no parameters for this command. Default Setting The default configuration for all terminal sessions is defined by the history line configuration command.
Line Commands terminal history size The terminal history size User EXEC command configures the command history buffer size for the current terminal session. To reset the command history buffer size to the default setting, use the no form of this command. Syntax terminal history size number-of-commands terminal no history size Parameters n number-of-commands — Specifies the number of commands the system may record in its command history buffer.
Line Commands show line The show line User EXEC mode command displays line parameters. Syntax show line [console | telnet | ssh] Parameters n console — Console terminal line. n telnet — Virtual terminal for remote console access (Telnet). n ssh — Virtual terminal for secured remote console access (SSH). Default Setting This command has no default configuration. Command Mode User EXEC mode Command Usage If line is not specified information for all lines is given.
Line Commands 13-10 www.hp.
14 Management ACL Commands management access-list The management access-list Global Configuration mode command configures a management access list and enters the Management Access-list Configuration command mode. To delete an access list, use the no form of this command. Syntax management access-list name no management access-list name Parameters n name — Access list name. (Range: 1-32 characters) Default Setting This command has no default configuration.
Management ACL Commands Example The following commands create a management access list called mlist, configure management Ethernet interfaces e45 and e46 and make the new access list the active list.
Management ACL Commands permit (Management) The permit Management Access-List Configuration mode command defines a permit rule. Syntax permit [ethernet interface-number | vlan vlan-id | port-channel port-channel-number] [service service] permit ip-source ip-address [mask mask | prefix-length] [ethernet interface-number | vlan vlan-id | port-channel port-channel-number | ] [service service] Parameters n interface-number — A valid Ethernet port number. n vlan-id — A valid VLAN number.
Management ACL Commands deny (Management) The deny Management Access-List Configuration mode command defines a deny rule. Syntax deny [ethernet interface-number | vlan vlan-id | port-channel port-channel-number] [service service] deny ip-source ip-address [mask mask | prefix-length] [ethernet interface-number | vlan vlan-id | port-channel port-channel-number | ] [service service] Parameters n interface-number — A valid Ethernet port number. n vlan-id — A valid VLAN number.
Management ACL Commands management access-class The management access-class Global Configuration mode command restricts management connections by defining the active management access list. To disable this restriction, use the no form of this command. Syntax management access-class {console-only | name} no management access-class Parameters n console-only — Indicates that the device can be managed only from the console. n name — Specifies the name of the access list to be used.
Management ACL Commands show management access-list The show management access-list Privileged EXEC mode command displays management access-lists. Syntax show management access-list [name] Parameters n name — Specifies the name of a management access list. (Range: 1-32 characters) Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays the mlist management access list.
Management ACL Commands show management access-class The show management access-class Privileged EXEC mode command displays the active management access list. Syntax show management access-class Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays information about the active management access list.
Management ACL Commands 14-8 www.hp.
15 PHY Diagnostics Commands test copper-port tdr The test copper-port tdr Privileged EXEC mode command uses Time Domain Reflectometry (TDR) technology to diagnose the quality and characteristics of a copper cable attached to a port. Syntax test copper-port tdr interface Parameters n interface — A valid Ethernet port. (Full syntax: port) Default Setting This command has no default configuration.
PHY Diagnostics Commands show copper-ports tdr The show copper-ports tdr User EXEC mode command displays information on the last Time Domain Reflectometry (TDR) test performed on copper ports. Syntax show copper-ports tdr [interface] Parameters n interface — A valid Ethernet port. (Full syntax: port) Default Setting This command has no default configuration. Command Mode User EXEC mode Command Usage The maximum length of the cable for the TDR test is 120 meters.
PHY Diagnostics Commands show copper-ports cable-length The show copper-ports cable-length User EXEC mode command displays the estimated copper cable length attached to a port. Syntax show copper-ports cable-length [interface] Parameters n interface — A valid Ethernet port. (Full syntax: port) Default Setting This command has no default configuration. Command Mode User EXEC mode Command Usage The port must be active and working in 100M or 1000M mode.
PHY Diagnostics Commands show fiber-ports optical-transceiver The show fiber-ports optical-transceiver Privileged EXEC command displays the optical transceiver diagnostics. Syntax show fiber-ports optical-transceiver [interface] [detailed] Parameters n interface — A valid Ethernet port. (Full syntax: port) n detailed — Detailed diagnostics. Default Setting This command has no default configuration.
PHY Diagnostics Commands Console# show fiber-ports optical-transceiver detailed Power Port Temp Voltage Current Output Input TX Fault LOS [C] [Volt] [mA] [mWatt] [mWatt] ---- ---- ------ ------- ------ ----- ------- --- e1 48 5.15 50 1.789 1.789 No No e2 43 5.15 10 1.789 1.789 No No e3 Copper Temp – Internally measured transceiver temperature. Voltage - Internally measured supply voltage. Current – Measured TX bias current. Output Power – Measured TX output power.
PHY Diagnostics Commands 15-6 www.hp.
16 Port Channel Commands interface port-channel The interface port-channel Global Configuration mode command enters the interface configuration mode to configure a specific port-channel. Syntax interface port-channel port-channel-number Parameters n port-channel-number — A valid port-channel number. Default Setting This command has no default configuration. Command Mode Global Configuration mode Command Usage Eight aggregated links can be defined with up to eight member ports per port-channel.
Port Channel Commands interface range port-channel The interface range port-channel Global Configuration mode command enters the interface configuration mode to configure multiple port-channels. Syntax interface range port-channel {port-channel-range | all} Parameters n port-channel-range — List of valid port-channels to add. Separate nonconsecutive port-channels with a comma and no spaces. A hyphen designates a range of port-channels. n all — All valid port-channels.
Port Channel Commands channel-group The channel-group Interface Configuration (Ethernet) mode command associates a port with a port-channel. To remove a port from a port-channel, use the no form of this command. Syntax channel-group port-channel-number mode {on | auto} no channel-group Parameters n port-channel_number — Specifies the ID of the valid port-channel for the current port to join. n on — Forces the port to join a channel without an LACP operation.
Port Channel Commands show interfaces port-channel The show interfaces port-channel Privileged EXEC mode command displays port-channel information. Syntax show interfaces port-channel [port-channel-number] Parameters n port-channel-number — Valid port-channel number. Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays information on all port-channels.
17 Port Monitor Commands port monitor The port monitor Interface Configuration mode command starts a port monitoring session. To stop a port monitoring session, use the no form of this command. Syntax port monitor src-interface [rx | tx] no port monitor src-interface Parameters n src-interface — Valid Ethernet port. (Full syntax: port) n rx — Monitors received packets only. n tx — Monitors transmitted packets only. Default Setting Monitors both received and transmitted packets.
Port Monitor Commands Example The following command copies traffic on port e45 (source port) to port e46 (destination port). Console(config)# interface ethernet e46 Console(config-if)# port monitor e45 17-2 www.hp.
Port Monitor Commands show ports monitor The show ports monitor User EXEC mode command displays the port monitoring status. Syntax show ports monitor Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode User EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays the port monitoring status.
Port Monitor Commands 17-4 www.hp.
18 QoS Commands qos The qos Global Configuration mode command enables Quality of Service (QoS) on the device. To disable QoS on the device, use the no form of this command. Syntax qos [basic | advanced] no qos Parameters n basic — QoS basic mode. This mode is applied if no keyword is specified. n advanced — QoS advanced mode, which enables the full range of QoS configuration. Default Setting The QoS basic mode is enabled.
QoS Commands show qos The show qos User EXEC mode command displays the quality of service (QoS) mode for the device. Syntax show qos Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode User EXEC mode Command Usage Trust mode is displayed if QoS is enabled in basic mode. Example The following command displays QoS attributes when QoS is enabled in basic mode on the device. Console> show qos Qos: basic Basic trust: dscp 18-2 www.hp.
QoS Commands class-map The create-map Global Configuration mode command creates or modifies a class map and enters the Class-map Configuration mode. To delete a class map, use the no form of this command. Syntax class-map class-map-name [match-all | match-any] no class-map class-map-name Parameters n class-map-name — Specifies the name of the class map. n match-all — Checks that the packet matches all classification criteria in the class map match statement (Logical AND for selected ACLs).
QoS Commands Example The following command creates a class map called class1 and configures it to check that packets match all classification criteria in the class map match statement. Console(config)# class-map class1 match-all Console(config-cmap)# 18-4 www.hp.
QoS Commands show class-map The show class-map User EXEC mode command displays all class maps. Syntax show class-map [class-map-name] Parameters n class-map-name — Specifies the name of the class map to be displayed. Default Setting This command has no default configuration. Command Mode User EXEC mode Command Usage There are no user guidelines for this command. Example The following command shows the class map for class1.
QoS Commands match The match Class-map Configuration mode command defines the match criteria for classifying traffic. To delete the match criteria, use the no form of this command. Syntax match access-group acl-name no match access-group acl-name Parameters n acl-name — Specifies the name of an IP or MAC ACL. Default Setting No match criterion is supported. Command Mode Class-map Configuration mode. Command Usage There are no user guidelines for this command.
QoS Commands policy-map The policy-map Global Configuration mode command creates a policy map and enters the Policy-map Configuration mode. To delete a policy map, use the no form of this command. Syntax policy-map policy-map-name no policy-map policy-map-name Parameters n policy-map-name — Specifies the name of the policy map. Default Setting If the packet is an IP packet, the DCSP value of the policy map is 0. If the packet is tagged, the CoS value is 0.
QoS Commands class The class Policy-map Configuration mode command defines a traffic classification and enters the Policy-map Class Configuration mode. To remove a class map from the policy map, use the no form of this command. Syntax class class-map-name [access-group acl-name] no class class-map-name Parameters n class-map-name — Specifies the name of an existing class map. If the class map does not exist, a new class map will be created under the specified name.
QoS Commands show policy-map The show policy-map User EXEC command displays the policy maps. Syntax show policy-map [policy-map-name [class class-name]] Parameters n policy-map-name — Specifies the name of the policy map to be displayed. n class-name — Specifies the name of the class whose QoS policies are to be displayed. Default Setting This command has no default configuration. Command Mode User EXEC mode Command Usage There are no user guidelines for this command.
QoS Commands trust cos-dscp The trust cos-dscp Policy-map Class Configuration mode command configures the trust state. The trust state determines the source of the internal DSCP value used by Quality of Service (QoS). To return to the default configuration, use the no form of this command. Syntax trust cos-dscp no trust cos-dscp Parameters There are no parameters for this command. Default Setting The port is not in the trust mode.
QoS Commands set The set Policy-map Class Configuration mode command sets new values in the IP packet. Syntax set {dscp new-dscp | queue queue-id | cos new-cos} no set Parameters n new-dscp — Specifies a new DSCP value for the classified traffic. (Range: 0-63) n queue-id — Specifies an explicit queue ID for setting the egress queue. n new-cos — Specifies a new user priority for marking the packet. (Range: 0-7) Default Setting This command has no default configuration.
QoS Commands police The police Policy-map Class Configuration mode command defines the policer for classified traffic. To remove a policer, use the no form of this command. Syntax police committed-rate-bps committed-burst-byte [exceed-action {drop | policed-dscp-transmit}] no police Parameters n committed-rate-bps — Specifies the average traffic rate (CIR) in bits per second (bps). n committed-burst-byte — Specifies normal burst size (CBS) in bytes.
QoS Commands service-policy The service-policy Interface Configuration (Ethernet, port-channel) mode command applies a policy map to the input of a particular interface. To detach a policy map from an interface, use the no form of this command. Syntax service-policy {input policy-map-name} no service-policy {input} Parameters n policy-map-name — Specifies the name of the policy map to be applied to the input interface. Default Setting This command has no default configuration.
QoS Commands qos aggregate-policer The qos aggregate-policer Global Configuration mode command defines the policer parameters that can be applied to multiple traffic classes within the same policy map. To remove an existing aggregate policer, use the no form of this command.
QoS Commands show qos aggregate-policer The show qos aggregate-policer User EXEC mode command displays the aggregate policer parameter. Syntax show qos aggregate-policer [aggregate-policer-name] Parameters n aggregate-policer-name — Specifies the name of the aggregate policer to be displayed. Default Setting This command has no default configuration. Command Mode User EXEC mode Command Usage There are no user guidelines.
QoS Commands police aggregate The police aggregate Policy-map Class Configuration mode command applies an aggregate policer to multiple classes within the same policy map. To remove an existing aggregate policer from a policy map, use the no form of this command. Syntax police aggregate aggregate-policer-name no police aggregate aggregate-policer-name Parameters n aggregate-policer-name — Specifies the name of the aggregate policer. Default Setting This command has no default configuration.
QoS Commands wrr-queue cos-map The wrr-queue cos-map Global Configuration mode command maps Class of Service (CoS) values to a specific egress queue. To return to the default configuration, use the no form of this command. Syntax wrr-queue cos-map queue-id cos1...cos8 no wrr-queue cos-map [queue-id] Parameters n queue-id — Specifies the queue number to which the CoS values are mapped. n cos1...cos8 — Specifies CoS values to be mapped to a specific queue.
QoS Commands priority-queue out num-of-queues The priority-queue out num-of-queues Global Configuration mode command configures the number of expedite queues. To return to the default configuration, use the no form of this command. Syntax priority-queue out num-of-queues number-of-queues no priority-queue out num-of-queues Parameters n number-of-queues — Specifies the number of expedite queues. Expedite queues have higher indexes. (Range: 0-4) Default Setting All queues are expedite queues.
QoS Commands traffic-shape The traffic-shape Interface Configuration (Ethernet, port-channel) mode command configures the shaper of the egress port/queue. To disable the shaper, use the no form of this command. Syntax traffic-shape {committed-rate committed-burst} no traffic-shape Parameters n committed-rate — Specifies the average traffic rate (CIR) in bits per second (bps). (Range: 6510-1073741800) n excess-burst — Specifies the excess burst size (CBS) in bytes. Default Setting No shape is defined.
QoS Commands show qos interface The show qos interface User EXEC mode command displays Quality of Service (QoS) information on the interface. Syntax show qos interface [ethernet interface-number | port-channel number ] [buffers | queueing | policers | shapers] Parameters n interface-number — Valid Ethernet port number. n number — Valid port-channel number. n buffers – Displays the buffer setting for the interface’s queues. Displays the queue depth for each queue and the thresholds for the WRED.
QoS Commands Example The following command displays the buffer settings for queues on Ethernet port e45.
QoS Commands wrr-queue threshold The wrr-queue threshold Global Configuration mode command assigns queue thresholds globally. To return to the default configuration, use the no form of this command. Syntax qos wrr-queue threshold gigabitethernet queue-id threshold-percentage no qos wrr-queue threshold gigabitethernet queue-id no qos wrr-queue threshold tengigabitethernet queue-id Parameters n gigabitethernet — Indicates that the thresholds are to be applied to Gigabit Ethernet ports.
QoS Commands qos map dscp-dp The qos map dscp-dp global configuration mode command maps DSCP to Drop Precedence. To return to the default setting, use the no form of this command. Syntax qos map dscp-dp dscp-list to dp no qos map dscp-dp Parameters n dscp-list — Specifies up to 8 DSCP values separated by a space (Range: 0-63). n dp — Enter the Drop Precedence value to which the DSCP value corresponds.
QoS Commands qos map policed-dscp The qos map policed-dscp Global Configuration mode command modifies the policed-DSCP map for remarking purposes. To return to the default map, use the no form of this command. Syntax qos map policed-dscp dscp-list to dscp-mark-down no qos map policed-dscp Parameters n dscp-list — Specifies up to 8 DSCP values separated by a space. (Range: 0-63) n dscp-mark-down — Specifies the DSCP value to mark down.
QoS Commands qos map dscp-queue The qos map dscp-queue Global Configuration mode command modifies the DSCP to CoS map. To return to the default map, use the no form of this command. Syntax qos map dscp-queue dscp-list to queue-id no qos map dscp-queue Parameters n dscp-list — Specifies up to 8 DSCP values separated by a space. (Range: 0-63) n queue-id — Specifies the queue number to which the DSCP values are mapped. Default Setting The following table describes the default map.
QoS Commands qos trust (Global) The qos trust Global Configuration mode command configures the system to the basic mode and trust state. To return to default state (trust VPT), use the no form of the command. Syntax qos trust {cos | dscp} no qos trust Parameters n cos — Indicates that ingress packets are classified with packet CoS values. Untagged packets are classified with the default port CoS value. n dscp — Indicates that ingress packets are classified with packet DSCP values.
QoS Commands Example The following command configures the system to the DSCP trust state. Console(config)# qos trust dscp HP PC Blade Switch CLI Reference Guide www.hp.
QoS Commands qos cos The qos cos Interface Configuration (Ethernet, port-channel) mode command defines the default CoS value of a port. To return to the default configuration, use the no form of this command. Syntax qos cos default-cos Parameters n default-cos — Specifies the default CoS value of the port. (Range: 0-7) Default Setting Default CoS value of a port is 0.
QoS Commands qos dscp-mutation The qos dscp-mutation Global Configuration mode command applies the DSCP Mutation map to a system DSCP trusted port. To return to the trust state with no DSCP mutation, use the no form of this command. Syntax qos dscp-mutation no qos dscp-mutation Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode Global Configuration mode.
QoS Commands qos map dscp-mutation The qos map dscp-mutation Global Configuration mode command modifies the DSCP to DSCP mutation map. To return to the default DSCP to DSCP mutation map, use the no form of this command. Syntax qos map dscp-mutation in-dscp to out-dscp no qos map dscp-mutation Parameters n in-dscp — Specifies up to 8 DSCP values separated by spaces. (Range: 0-63) n out-dscp — Specifies up to 8 DSCP values separated by spaces.
19 RADIUS Commands radius-server host The radius-server host Global Configuration mode command specifies a RADIUS server host. To delete the specified RADIUS host, use the no form of this command. Syntax radius-server host {ip-address | hostname} [auth-port auth-port-number] [timeout timeout] [retransmit retries] [deadtime deadtime] [key key-string] [source source] [priority priority] no radius-server host {ip-address | hostname} Parameters n ip-address — IP address of the RADIUS server host.
RADIUS Commands Command Usage To specify multiple hosts, multiple radius-server host commands can be used. If no host-specific timeout, retries, deadtime or key-string values are specified, global values apply to each RADIUS server host. The address type of the source parameter must be the same as the ip-address parameter. Example The following command specifies a RADIUS server host with IP address 192.168.10.1, authentication request port number 20 and a 20-second timeout period.
RADIUS Commands radius-server key The radius-server key Global Configuration mode command sets the authentication and encryption key for all RADIUS communications between the device and the RADIUS daemon. To return to the default configuration, use the no form of this command. Syntax radius-server key [key-string] no radius-server key Parameters n key-string — Specifies the authentication and encryption key for all RADIUS communications between the device and the RADIUS server.
RADIUS Commands radius-server retransmit The radius-server retransmit Global Configuration mode command specifies the number of times the software searches the list of RADIUS server hosts. To reset the default configuration, use the no form of this command. Syntax radius-server retransmit retries no radius-server retransmit Parameters n retries — Specifies the retransmit value. (Range: 1-10) Default Setting The software searches the list of RADIUS server hosts 3 times.
RADIUS Commands radius-server source-ip The radius-server source-ip Global Configuration mode command specifies the source IP address used for communication with RADIUS servers. To return to the default configuration, use the no form of this command. Syntax radius-server source-ip source no radius-source-ip source Parameters n source — Specifies a valid source IP address. Default Setting The source IP address is the IP address of the outgoing IP interface.
RADIUS Commands radius-server timeout The radius-server timeout Global Configuration mode command sets the interval during which the device waits for a server host to reply. To return to the default configuration, use the no form of this command. Syntax radius-server timeout timeout no radius-server timeout Parameters n timeout — Specifies the timeout value in seconds. (Range: 1-30) Default Setting The timeout value is 3 seconds.
RADIUS Commands radius-server deadtime The radius-server deadtime Global Configuration mode command improves RADIUS response time when servers are unavailable. The command is used to cause the unavailable servers to be skipped. To return to the default configuration, use the no form of this command. Syntax radius-server deadtime deadtime no radius-server deadtime Parameters n deadtime — Length of time in minutes during which a RADIUS server is skipped over by transaction requests.
RADIUS Commands show radius-servers The show radius-servers Privileged EXEC mode command displays the RADIUS server settings. Syntax show radius-servers Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays RADIUS server settings.
20 RMON Commands show rmon statistics The show rmon statistics User EXEC mode command displays RMON Ethernet statistics. Syntax show rmon statistics {ethernet interface number | port-channel port-channel-number} Parameters n interface number — Valid Ethernet port. n port-channel-number — Valid port-channel number. Default Setting This command has no default configuration. Command Mode User EXEC mode Command Usage There are no user guidelines for this command.
RMON Commands The following table describes significant fields shown in the example: 20-2 Field Description Octets The total number of octets of data (including those in bad packets) received on the network (excluding framing bits but including FCS octets). Packets The total number of packets (including bad packets, broadcast packets, and multicast packets) received. Broadcast The total number of good packets received and directed to the broadcast address. This does not include multicast packets.
RMON Commands Field Description 512 to 1023 Octets The total number of packets (including bad packets) received that are between 512 and 1023 octets in length inclusive (excluding framing bits but including FCS octets). 1024 to 1518 Octets The total number of packets (including bad packets) received that are between 1024 and 1518 octets in length inclusive (excluding framing bits but including FCS octets). HP PC Blade Switch CLI Reference Guide www.hp.
RMON Commands rmon collection history The rmon collection history Interface Configuration (Ethernet, port-channel) mode command enables a Remote Monitoring (RMON) MIB history statistics group on an interface. To remove a specified RMON history statistics group, use the no form of this command. Syntax rmon collection history index [owner ownername] [buckets bucket-number] [interval seconds] no rmon collection history index Parameters n index — Specifies the statistics group index.
RMON Commands show rmon collection history The show rmon collection history User EXEC mode command displays the requested RMON history group statistics. Syntax show rmon collection history [ethernet interface | port-channel port-channel-number] Parameters n interface — Valid Ethernet port. (Full syntax: port) n port-channel-number — Valid port-channel number. Default Setting This command has no default configuration.
RMON Commands show rmon history The show rmon history User EXEC mode command displays RMON Ethernet history statistics. Syntax show rmon history index {throughput | errors | other} [period seconds] Parameters n index — Specifies the requested set of samples. (Range: 1-65535) n throughput — Indicates throughput counters. n errors — Indicates error counters. n other — Indicates drop and collision counters. n seconds — Specifies the period of time in seconds.
RMON Commands Maximum table size: 500 (800 after reset) Time CRC Align Undersize Oversize Fragments Jabbers ---------- --------- --------- -------- --------- ------- Jan 18 2005 21:57:00 1 1 0 49 0 Jan 18 2005 21:57:30 1 1 0 27 0 Console> show rmon history 1 other Sample Set: 1 Owner: Me Interface: e45 Interval: 1800 Requested samples: 50 Granted samples: 50 Maximum table size: 500 Time Dropped Collisions -------------------- -------- ---------- Jan 18 2005 21:57:00 3
RMON Commands 20-8 Field Description Fragments The total number of packets received during this sampling interval that were less than 64 octets in length (excluding framing bits but including FCS octets) had either a bad Frame Check Sequence (FCS) with an integral number of octets (FCS Error), or a bad FCS with a non-integral number of octets (AlignmentError).
RMON Commands rmon alarm The rmon alarm Global Configuration mode command configures alarm conditions. To remove an alarm, use the no form of this command. Syntax rmon alarm index variable interval rthreshold fthreshold revent fevent [type type] [startup direction] [owner name] no rmon alarm index Parameters n index — Specifies the alarm index. (Range: 1-65535) n variable — Specifies the object identifier of the variable to be sampled.
RMON Commands Example The following command configures the following alarm conditions: n Alarm index — 1000 n Variable identifier — HP n Sample interval — 360000 seconds n Rising threshold — 1000000 n Falling threshold — 1000000 n Rising threshold event index — 10 n Falling threshold event index — 20 Console(config)# rmon alarm 1000 HP 360000 1000000 1000000 10 20 20-10 www.hp.
RMON Commands show rmon alarm-table The show rmon alarm-table User EXEC mode command displays the alarms table. Syntax show rmon alarm-table Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode User EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays the alarms table. Console> show rmon alarm-table Index OID Owner ----- ---------------------- ------- 1 1.3.6.1.2.1.2.2.1.
RMON Commands show rmon alarm The show rmon alarm User EXEC mode command displays alarm configuration. Syntax show rmon alarm number Parameters n number — Specifies the alarm index. (Range: 1-65535) Default Setting This command has no default configuration. Command Mode User EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays RMON 1 alarms. Console> show rmon alarm 1 Alarm 1 ------OID: 1.3.6.1.2.1.2.2.1.10.
RMON Commands Field Description Last Sample Value The statistic value during the last sampling period. For example, if the sample type is delta, this value is the difference between the samples at the beginning and end of the period. If the sample type is absolute, this value is the sampled value at the end of the period. Interval The interval in seconds over which the data is sampled and compared with the rising and falling thresholds.
RMON Commands rmon event The rmon event Global Configuration mode command configures an event. To remove an event, use the no form of this command. Syntax rmon event index type [community text] [description text] [owner name] no rmon event index Parameters n index — Specifies the event index. (Range: 1-65535) n type — Specifies the type of notification generated by the device about this event. Possible values: none, log, trap, log-trap.
RMON Commands show rmon events The show rmon events User EXEC mode command displays the RMON event table. Syntax show rmon events Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode User EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays the RMON events table.
RMON Commands show rmon log The show rmon log User EXEC mode command displays the RMON log table. Syntax show rmon log [event] Parameters event — Specifies the event index. (Range: 0 - 65535) n Default Setting This command has no default configuration. Command Mode User EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays the RMON log table.
RMON Commands rmon table-size The rmon table-size Global Configuration mode command configures the maximum size of RMON tables. To return to the default configuration, use the no form of this command. Syntax rmon table-size {history entries | log entries} no rmon table-size {history | log} Parameters n history entries — Maximum number of history table entries. (Range: 20-270) n log entries — Maximum number of log table entries. (Range: 20-100) Default Setting History table size is 270.
RMON Commands 20-18 www.hp.
21 SNMP Commands snmp-server community The snmp-server community Global Configuration mode command configures the community access string to permit access to the SNMP protocol. To remove the specified community string, use the no form of this command.
SNMP Commands The internal group name for SNMPv1 and SNMPv2 security models is mapped to a view-name (read-view and notify-view always, and for rw for write-view also) The group-name parameter can also be used to restrict the access rights of a community string. When it is specified: An internal security name is generated. The internal security name for SNMPv1 and SNMPv2 security models is mapped to the group name.
SNMP Commands snmp-server view The snmp-server view Global Configuration mode command creates or updates a Simple Network Management Protocol (SNMP) server view entry. To remove a specified SNMP server view entry, use the no form of this command. Syntax snmp-server view view-name oid-tree {included | excluded} no snmp-server view view-name [oid-tree] Parameters n view-name — Specifies the label for the view record that is being created or updated. The name is used to reference the record.
SNMP Commands snmp-server group The snmp-server group Global Configuration mode command configures a new Simple Management Protocol (SNMP) group or a table that maps SNMP users to SNMP views. To remove a specified SNMP group, use the no form of this command. Syntax snmp-server group groupname {v1 | v2 | v3 {noauth | auth | priv} [notify notifyview]} [read readview] [write writeview] no snmp-server group groupname {v1 | v2 | v3 [noauth | auth | priv]} Parameters n groupname—Specifies the name of the group.
SNMP Commands snmp-server user The snmp-server user Global Configuration mode command configures a new SNMP Version 3 user. To remove a user, use the no form of this command. Syntax snmp-server user username groupname [remote engineid-string] [auth-md5 password | auth-sha password | auth-md5-key md5-des-keys | auth-sha-key sha-des-keys] no snmp-server user username [remote engineid-string] Parameters n username — Specifies the name of the user on the host that connects to the agent.
SNMP Commands When a show running-config Privileged EXEC mode command is entered, a line for this user will not be displayed. To see if this user has been added to the configuration, type the show snmp users Privileged EXEC mode command. An SNMP EngineID has to be defined to add SNMP users to the device. Changing or removing the SNMP EngineID value deletes SNMPv3 users from the device’s database.
SNMP Commands snmp-server engineid local The snmp-server engineid local Global Configuration mode command specifies the Simple Network Management Protocol (SNMP) engine ID on the local device. To remove the configured engine ID, use the no form of this command. Syntax snmp-server engineid local {engineid-string | default} no snmp-server engineid local Parameters n engineid-string — Specifies a character string that identifies the engine ID.
SNMP Commands The show running-config Privileged EXEC mode command does not display the SNMP engine ID configuration. To see the SNMP engine ID configuration, enter the show snmp engineid Global Configuration mode command. Example The following command enables SNMPv3 on the device and sets the local engine ID of the device to the default value. Console(config)# snmp-server engineid local default 21-8 www.hp.
SNMP Commands snmp-server enable traps The snmp-server enable traps Global Configuration mode command enables the device to send SNMP traps. To disable SNMP traps, use the no form of the command. Syntax snmp-server enable traps no snmp-server enable traps Parameters There are no parameters for this command. Default Setting SNMP traps are enabled. Command Mode Global Configuration mode Command Usage There are no user guidelines for this command. Example The following command enables SNMP traps.
SNMP Commands snmp-server filter The snmp-server filter Global Configuration mode command creates or updates a Simple Network Management Protocol (SNMP) server filter entry. To remove the specified SNMP server filter entry, use the no form of this command. Syntax snmp-server filter filter-name oid-tree {included | excluded} no snmp-server filter filter-name [oid-tree] Parameters n filter-name — Specifies the label for the filter record that is being updated or created.
SNMP Commands snmp-server host The snmp-server host Global Configuration mode command specifies the recipient of Simple Network Management Protocol Version 1 or Version 2 notifications. To remove the specified host, use the no form of this command.
SNMP Commands Example The following command enables SNMP traps for host 10.1.1.1 with community string “management” using SNMPv2. Console(config)# snmp-server host 10.1.1.1 management 2 21-12 www.hp.
SNMP Commands snmp-server v3-host The snmp-server v3-host Global Configuration mode command specifies the recipient of Simple Network Management Protocol Version 3 notifications. To remove the specified host, use the no form of this command.
SNMP Commands snmp-server trap authentication The snmp-server trap authentication Global Configuration mode command enables the device to send SNMP traps when authentication fails. To disable SNMP failed authentication traps, use the no form of this command. Syntax snmp-server trap authentication no snmp-server trap authentication Parameters There are no parameters for this command. Default Setting SNMP failed authentication traps are enabled.
SNMP Commands snmp-server contact The snmp-server contact Global Configuration mode command configures the system contact (sysContact) string. To remove system contact information, use the no form of the command. Syntax snmp-server contact text no snmp-server contact Parameters n text — Specifies the string that describes system contact information. (Range: 0-160 characters) Default Setting This command has no default configuration.
SNMP Commands snmp-server location The snmp-server location Global Configuration mode command configures the system location string. To remove the location string, use the no form of this command. Syntax snmp-server location text no snmp-server location Parameters n text — Specifies a string that describes system location information. (Range: 0-160 characters) Default Setting This command has no default configuration.
SNMP Commands snmp-server set The snmp-server set Global Configuration mode command defines the SNMP MIB value. Syntax snmp-server set variable-name name1 value1 [ name2 value2 …] Parameters n variable-name — MIB variable name. n name value — List of name and value pairs. In the case of scalar MIBs, only a single pair of name values. In the case of an entry in a table, at least one pair of name and value followed by one or more fields. Default Setting This command has no default configuration.
SNMP Commands show snmp The show snmp Privileged EXEC mode command displays the SNMP status. Syntax show snmp Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays the SNMP communications status.
SNMP Commands Version 3 notifications Target Address Type Username Security Level UDP Port Filter Name To Sec Retries -------------- ----- --------- ------- ---- ------ --- ------- 192.122.173.42 Inform Bob Priv 162 15 3 System Contact: Robert System Location: Marketing The following table describes significant fields shown in the example. Field Description Community-string Community access string to permit access to the SNMP protocol.
SNMP Commands show snmp engineid The show snmp engineid Privileged EXEC mode command displays the ID of the local Simple Network Management Protocol (SNMP) engine. Syntax show snmp engineid Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays the SNMP engine ID.
SNMP Commands show snmp views The show snmp views privileged EXEC mode command displays the configuration of views. Syntax show snmp views [viewname] Parameters n viewname — Specifies the name of the view. (Range: 1-30) Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays the configuration of views.
SNMP Commands show snmp groups The show snmp groups Privileged EXEC mode command displays the configuration of groups. Syntax show snmp groups [groupname] Parameters n groupname — Specifies the name of the group. (Range: 1-30) Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays the configuration of views.
SNMP Commands show snmp filters The show snmp filters Privileged EXEC mode command displays the configuration of filters. Syntax show snmp filters [filtername] Parameters n filtername — Specifies the name of the filter. (Range: 1-30) Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays the configuration of filters.
SNMP Commands show snmp users The show snmp users Privileged EXEC mode command displays the configuration of users. Syntax show snmp users [username] Parameters n username — Specifies the name of the user. (Range: 1-30) Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays the configuration of users.
22 Spanning-Tree Commands spanning-tree The spanning-tree Global Configuration mode command enables spanning-tree functionality. To disable spanning-tree functionality, use the no form of this command. Syntax spanning-tree no spanning-tree Parameters There are no parameters for this command. Default Setting Spanning-tree is enabled. The MSTP-RSTP conversion parameter is enabled, which maps VLAN 1 to instance 1 and VLAN 2 to instance 2.
Spanning-Tree Commands spanning-tree mode The spanning-tree mode Global Configuration mode command configures the spanning-tree protocol. To return to the default configuration, use the no form of this command. Syntax spanning-tree mode {stp | rstp| mstp} no spanning-tree mode Parameters n stp — Indicates that the Spanning Tree Protocol (STP) is enabled. n rstp — Indicates that the Rapid Spanning Tree Protocol (RSTP) is enabled.
Spanning-Tree Commands spanning-tree forward-time The spanning-tree forward-time Global Configuration mode command configures the spanning-tree bridge forward time, which is the amount of time a port remains in the listening and learning states before entering the forwarding state. To return to the default configuration, use the no form of this command. Syntax spanning-tree forward-time seconds no spanning-tree forward-time Parameters n seconds — Time in seconds.
Spanning-Tree Commands spanning-tree hello-time The spanning-tree hello-time Global Configuration mode command configures the spanning tree bridge hello time, which is how often the device broadcasts hello messages to other devices.To return to the default configuration, use the no form of this command. Syntax spanning-tree hello-time seconds no spanning-tree hello-time Parameters n seconds — Time in seconds.
Spanning-Tree Commands spanning-tree max-age The spanning-tree max-age Global Configuration mode command configures the spanning tree bridge maximum age. To return to the default configuration, use the no form of this command. Syntax spanning-tree max-age seconds no spanning-tree max-age Parameters n seconds — Time in seconds. (Range: 6-40) Default Setting The default maximum age for IEEE Spanning Tree Protocol (STP) is 20 seconds.
Spanning-Tree Commands spanning-tree priority The spanning-tree priority Global Configuration mode command configures the spanning tree priority of the device. The priority value is used to determine which bridge is elected as the root bridge. To return to the default configuration, use the no form of this command. Syntax spanning-tree priority priority no spanning-tree priority Parameters n priority — Priority of the bridge.
Spanning-Tree Commands spanning-tree disable The spanning-tree disable Interface Configuration mode command disables spanning tree on a specific port. To enable spanning tree on a port, use the no form of this command. Syntax spanning-tree disable no spanning-tree disable Parameters There are no parameters for this command. Default Setting Spanning tree is enabled on all ports. Command Modes Interface Configuration (Ethernet, port-channel) mode Command Usage There are no user guidelines for this command.
Spanning-Tree Commands spanning-tree cost The spanning-tree cost Interface Configuration mode command configures the spanning tree path cost for a port. To return to the default configuration, use the no form of this command.
Spanning-Tree Commands spanning-tree port-priority The spanning-tree port-priority Interface Configuration mode command configures port priority. To return to the default configuration, use the no form of this command. Syntax spanning-tree port-priority priority no spanning-tree port-priority Parameters n priority — The priority of the port. (Range: 0-240 in multiples of 16) Default Setting The default port priority for IEEE Spanning Tree Protocol (STP) is 128.
Spanning-Tree Commands spanning-tree portfast The spanning-tree portfast Interface Configuration mode command enables PortFast mode. In PortFast mode, the interface is immediately put into the forwarding state upon linkup without waiting for the standard forward time delay. To disable PortFast mode, use the no form of this command.
Spanning-Tree Commands spanning-tree link-type The spanning-tree link-type Interface Configuration mode command overrides the default link-type setting determined by the duplex mode of the port and enables Rapid Spanning Tree Protocol (RSTP) transitions to the forwarding state. To return to the default configuration, use the no form of this command.
Spanning-Tree Commands spanning-tree pathcost method The spanning-tree pathcost method Global Configuration mode command sets the default path cost method. To return to the default configuration, use the no form of this command. Syntax spanning-tree pathcost method {long | short} no spanning-tree pathcost method Parameters n long — Specifies port path costs with a range of 1-200,000,000. n short — Specifies port path costs with a range of 0-65,535. Default Setting Short path cost method.
Spanning-Tree Commands spanning-tree bpdu The spanning-tree bpdu Global Configuration mode command defines BPDU handling when the spanning tree is disabled globally or on a single interface. To return to the default configuration, use the no form of this command. Syntax spanning-tree bpdu {filtering | flooding} Parameters n filtering — Filter BPDU packets when the spanning tree is disabled on an interface. n flooding — Flood BPDU packets when the spanning tree is disabled on an interface.
Spanning-Tree Commands clear spanning-tree detected-protocols The clear spanning-tree detected-protocols Privileged EXEC mode command restarts the protocol migration process (forces renegotiation with neighboring devices) on all interfaces or on a specified interface. Syntax clear spanning-tree detected-protocols [ethernet interface | port-channel port-channel-number] Parameters n interface — A valid Ethernet port. n port-channel-number — A valid port-channel number.
Spanning-Tree Commands spanning-tree mst priority The spanning-tree mst priority Global Configuration mode command configures the device priority for the specified spanning-tree instance. To return to the default configuration, use the no form of this command. Syntax spanning-tree mst instance-id priority priority no spanning-tree mst instance-id priority Parameters n instance-id — ID of the spanning -tree instance (Range: 1-16).
Spanning-Tree Commands spanning-tree mst max-hops The spanning-tree mst priority Global Configuration mode command configures the number of hops in an MST region before the BDPU is discarded and the port information is aged out. To return to the default configuration, use the no form of this command. Syntax spanning-tree mst max-hops hop-count no spanning-tree mst max-hops Parameters n hop-count — Number of hops in an MST region before the BDPU is discarded.
Spanning-Tree Commands spanning-tree mst port-priority The spanning-tree mst port-priority Interface Configuration mode command configures port priority for the specified MST instance. To return to the default configuration, use the no form of this command. Syntax spanning-tree mst instance-id port-priority priority no spanning-tree mst instance-id port-priority Parameters n instance-ID — ID of the spanning tree instance. (Range: 1-16) n priority — The port priority.
Spanning-Tree Commands spanning-tree mst cost The spanning-tree mst cost Interface Configuration mode command configures the path cost for multiple spanning tree (MST) calculations. If a loop occurs, the spanning tree considers path cost when selecting an interface to put in the forwarding state. To return to the default configuration, use the no form of this command.
Spanning-Tree Commands spanning-tree mst configuration The spanning-tree mst configuration Global Configuration mode command enables configuring an MST region by entering the Multiple Spanning Tree (MST) mode. Syntax spanning-tree mst configuration Parameters There are no parameters for this command. Default Setting This command has no default configuration.
Spanning-Tree Commands instance (mst) The instance MST Configuration mode command maps VLANs to an MST instance. Syntax instance instance-id {add | remove} vlan vlan-range Parameters n instance-ID — ID of the MST instance (Range: 1-16). n vlan-range — VLANs to be added to or removed from the specified MST instance. To specify a range of VLANs, use a hyphen. To specify a series of VLANs, use a comma. (Range: 1-4094).
Spanning-Tree Commands name (mst) The name MST Configuration mode command defines the configuration name. To return to the default setting, use the no form of this command. Syntax name string Parameters n string — MST configuration name. Case-sensitive (Range: 1-32 characters). Default Setting The default name is a bridge ID. Command Mode MST Configuration mode Command Usage There are no user guidelines for this command. Example The following command defines the configuration name as region1.
Spanning-Tree Commands revision (mst) The revision MST configuration command defines the configuration revision number. To return to the default configuration, use the no form of this command. Syntax revision value no revision Parameters n value — Configuration revision number (Range: 0-65535). Default Setting The default configuration revision number is 0. Command Mode MST Configuration mode Command Usage There are no user guidelines for this command.
Spanning-Tree Commands show (mst) The show MST Configuration mode command displays the current or pending MST region configuration. Syntax show {current | pending} Parameters n current — Indicates the current region configuration. n pending — Indicates the pending region configuration. Default Setting This command has no default configuration. Command Mode MST Configuration mode Command Usage The pending MST region configuration takes effect only after exiting the MST configuration mode.
Spanning-Tree Commands exit (mst) The exit MST Configuration mode command exits the MST configuration mode and applies all configuration changes. Syntax exit Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode MST Configuration mode Command Usage There are no user guidelines for this command. Example The following command exits the MST configuration mode and saves changes.
Spanning-Tree Commands abort (mst) The abort MST Configuration mode command exits the MST configuration mode without applying the configuration changes. Syntax abort Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode MST Configuration mode Command Usage There are no user guidelines for this command. Example The following command exits the MST configuration mode without saving changes.
Spanning-Tree Commands spanning-tree guard root The spanning-tree guard root Interface Configuration (Ethernet, port-channel) mode command enables root guard on all spanning tree instances on the interface. Root guard prevents the interface from becoming the root port of the device. To disable root guard on the interface, use the no form of this command. Syntax spanning-tree guard root no spanning-tree guard root Parameters There are no parameters for this command. Default Setting Root guard is disabled.
Spanning-Tree Commands show spanning-tree The show spanning-tree Privileged EXEC mode command displays spanning-tree configuration. Syntax show spanning-tree [ethernet interface -number| port-channel port-channel-number] [instance instance-id] show spanning-tree [detail] [active | blockedports] [instance instance-id] show spanning-tree mst-configuration Parameters n interface -number — A valid Ethernet port. n port-channel-number — A valid port channel number.
Spanning-Tree Commands In the output below, VLAN 1 is a member of MST 1 and since switch ports e45 and e46 are static members of VLAN 1, the output below for MST 1 indicates that e45 is forwarding to the root of the STP domain and e46 is blocking and therefore the alternate path.
Spanning-Tree Commands Bridge ID Priority 61440 Address 00:15:60:a0:e9:b0 Interfaces Name State Prio.Nbr Cost Sts Role PortFast Type ---- ------- -------- ----- --- ---- -------- ---------- e43 Enabled 128.43 4 Frw Desg No P2p Inter e44 Enabled 128.44 4 Frw Desg No P2p Inter e45 Enabled 128.45 4 Frw Root No P2p Inter e46 Enabled 128.
Spanning-Tree Commands Root ID Priority 61440 Address 00:15:60:a0:e9:b0 This switch is the regional Root Interfaces Name State Prio.Nbr Cost Sts Role PortFast Type ---- ------- -------- ----- --- ---- -------- ---------- e43 Enabled 128.43 4 Frw Desg No P2p Inter e44 Enabled 128.44 4 Frw Desg No P2p Inter e45 Enabled 128.45 4 Frw Desg No P2p Inter e46 Enabled 128.
Spanning-Tree Commands Bridge ID Priority 61440 Address 00:15:60:a0:e9:b0 Interfaces Name State Prio.Nbr Cost Sts Role PortFast Type ---- ------- -------- ----- --- ---- -------- ---------- e46 Enabled 128.46 4 Blk Altr No P2p Inter ###### MST 2 Vlans Mapped: 2 Root ID Bridge ID Priority 24776 Address 00:17:59:9f:9f:80 Path Cost 4 Root Port e43 Rem hops 19 Priority 61440 Address 00:15:60:a0:e9:b0 Interfaces Name State Prio.
Spanning-Tree Commands Gathering information .......... ###### MST 0 Vlans Mapped: CST Root ID Priority 32768 Address 00:15:60:a0:e9:b0 This switch is root for CST and IST master Hello Time 2 sec Max hops Max Age 20 sec Forward Delay 15 sec 20 Number of topology changes 10 last change occurred 00:04:14 ago Times: hold 1, topology change 35, notification 2 hello 2, max age 20, forward delay 15 Port e43 enabled State: Forwarding Role: designated Port id: 128.
Spanning-Tree Commands Designated port id: 128.45 Designated path cost: 0 Guard root: Disabled Number of transitions to forwarding state: 1 BPDU: sent 3833, received 3765 Port e46 enabled State: Forwarding Role: designated Port id: 128.46 Port cost: 4 Type: P2p (configured: auto) Internal Port Fast: No (configured:no) Designated bridge Priority: 32768 Address: 00:15:60:a0:e9:b0 Designated port id: 128.
Spanning-Tree Commands Port e44 enabled State: Forwarding Role: designated Port id: 128.44 Port cost: 4 Type: P2p (configured: auto) Internal Port Fast: No (configured:no) Designated bridge Priority: 61440 Address:00:15:60:a0:e9:b0 Designated port id: 128.44 Designated path cost: 4 Guard root: Disabled Number of transitions to forwarding state: 0 BPDU: sent 1571, received 1183 Port e45 enabled State: Forwarding Role: designated Port id: 128.
Spanning-Tree Commands Bridge ID Priority 61440 Address 00:15:60:a0:e9:b0 Number of topology changes 1 last change occurred 00:04:23 ago Times: hold 1, topology change 35, notification 2 hello 2, max age 20, forward delay 15 Port e43 enabled State: Forwarding Role: root Port id: 128.43 Port cost: 4 Type: P2p (configured: auto) Internal Port Fast: No (configured:no) Designated bridge Priority: 24776 Address: 00:17:59:9f:9f:80 Designated port id: 128.
Spanning-Tree Commands Port e46 enabled State: Forwarding Role: alternate Port id: 128.46 Port cost: 4 Type: P2p (configured: auto) Internal Port Fast: No (configured:no) Designated bridge Priority: 61440 Address: 00:15:60:a0:e9:b0 Designated port id: 128.
Spanning-Tree Commands Port e45 enabled State: Forwarding Role: designated Port id: 128.45 Port cost: 4 Type: P2p (configured: auto) Internal Port Fast: No (configured:no) Designated bridge Priority: 61440 Address: 00:15:60:a0:e9:b0 Designated port id: 128.45 Designated path cost: 0 Guard root: Disabled Number of transitions to forwarding state: 1 BPDU: sent 3840, received 3771 Port e46 enabled State: Forwarding Role: alternate Port id: 128.
Spanning-Tree Commands spanning-tree pvst-interop The spanning-tree pvst-interop privileged EXEC command configures the device for PVST/PVST+ interoperability. Syntax spanning-tree pvst-interop . To disable this feature, see the “spanning-tree mst mstp-rstp” command. Parameters This command has no arguments or keywords.
Spanning-Tree Commands spanning-tree mst mstp-rstp The spanning-tree mst mstp-rstp interface configuration command configures the port to convert RSTP packets to MSTP instances. Use the no form of this command to disable this feature. When interoperating with switches that do not support or are not configured for Per VLAN Spanning-Tree (PVST/PVST+) disable this feature and configure the HP PC Blade switch to use the matching IEEE standard Spanning-Tree Protocol mode. .
Spanning-Tree Commands Example . Description n VLAN 1 assigned to all odd ports e1 - e39, e45 & e46. n VLAN 2 assigned to all even ports e2 - e40, e43 & e44. This reference design illustrates how four uplinks can connect the HP PC Blade Switch to two separate aggregation switches forming a fully redundant network. If either link A & C or D were to fail, link E would take over. HP recommends starting with this example for Cisco networks using PVST/PVST+ where you want switch-based redundancy.
23 SSH Commands ip ssh port The ip ssh port Global Configuration mode command specifies the port to be used by the SSH server. To return to the default configuration, use the no form of this command. Syntax ip ssh port port-number no ip ssh port Parameters n port-number — Port number for use by the SSH server (Range: 1-65535). Default Setting The default port number is 22. SSH is disabled by default. Command Mode Global Configuration mode Command Usage There are no user guidelines for this command.
SSH Commands ip ssh server The ip ssh server Global Configuration mode command enables the device to be configured from a SSH server. To disable this function, use the no form of this command. Syntax ip ssh server no ip ssh server Parameters There are no parameters for this command. Default Setting Device configuration from a SSH server is enabled. SSH is disabled by default.
SSH Commands crypto key generate dsa The crypto key generate dsa Global Configuration mode command generates DSA key pairs. Syntax crypto key generate dsa Parameters There are no parameters for this command. Default Setting DSA key pairs do not exist. Command Mode Global Configuration mode Command Usage DSA keys are generated in pairs: one public DSA key and one private DSA key. If the device already has DSA keys, a warning and prompt to replace the existing keys with new keys are displayed.
SSH Commands crypto key generate rsa The crypto key generate rsa Global Configuration mode command generates RSA key pairs. Syntax crypto key generate rsa Parameters There are no parameters for this command. Default Setting RSA key pairs do not exist. Command Mode Global Configuration mode Command Usage RSA keys are generated in pairs: one public RSA key and one private RSA key. If the device already has RSA keys, a warning and prompt to replace the existing keys with new keys are displayed.
SSH Commands ip ssh pubkey-auth The ip ssh pubkey-auth Global Configuration mode command enables public key authentication for incoming SSH sessions. To disable this function, use the no form of this command. Syntax ip ssh pubkey-auth no ip ssh pubkey-auth Parameters There are no parameters for this command. Default Setting Public Key authentication for incoming SSH sessions is disabled.
SSH Commands crypto key pubkey-chain ssh The crypto key pubkey-chain ssh Global Configuration mode command enters the SSH Public Key-chain Configuration mode. The mode is used to manually specify other device public keys such as SSH client public keys. Syntax crypto key pubkey-chain ssh Parameters There are no parameters for this command. Default Setting No keys are specified. Command Mode Global Configuration mode Command Usage There are no user guidelines for this command.
SSH Commands user-key The user-key SSH Public Key-string Configuration mode command specifies which SSH public key is manually configured. To remove an SSH public key, use the no form of this command. Syntax user-key username {rsa | dsa} no user-key username Parameters n username — Specifies the username of the remote SSH client. (Range: 1-48 characters) n rsa — Indicates the RSA key pair. n dsa — Indicates the DSA key pair. Default Setting No SSH public keys exist.
SSH Commands key-string The key-string SSH Public Key-string Configuration mode command manually specifies an SSH public key. Syntax key-string key-string row key-string Parameters n row — Indicates the SSH public key row by row. n key-string — Specifies the key in UU-encoded DER format; UU-encoded DER format is the same format in the authorized_keys file used by OpenSSH. Default Setting No keys exist.
SSH Commands Example The following command enters public key strings for SSH public key client bob.
SSH Commands show ip ssh The show ip ssh Privileged EXEC mode command displays the SSH server configuration. Syntax show ip ssh Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays the SSH server configuration. Console# show ip ssh SSH server enabled. Port: 22 RSA key was generated. DSA (DSS) key was generated.
24 Syslog Commands logging on The logging on Global Configuration mode command controls error message logging. This command sends debug or error messages to a logging process, which logs messages to designated locations asynchronously to the process that generated the messages. To disable the logging process, use the no form of this command. Syntax logging on no logging on Parameters There are no parameters for this command. Default Setting Logging is enabled.
Syslog Commands logging The logging Global Configuration mode command logs messages to a syslog server. To delete the syslog server with the specified address from the list of syslogs, use the no form of this command. Syntax logging {ip-address | hostname} [port port] [severity level] [facility facility] [description text] no logging {ip-address | hostname} Parameters n ip-address — IP address of the host to be used as a syslog server. n hostname — Specifies the host name of the syslog server.
Syslog Commands logging console The logging console Global Configuration mode command limits messages logged to the console based on severity. To disable logging to the console, use the no form of this command. Syntax logging console level no logging console Parameters n level — Specifies the severity level of logged messages displayed on the console. Possible values: emergencies, alerts, critical, errors, warnings, notifications, informational and debugging.
Syslog Commands logging buffered The logging buffered Global Configuration mode command limits syslog messages displayed from an internal buffer based on severity. To cancel using the buffer, use the no form of this command. Syntax logging buffered level no logging buffered Parameters n level — Specifies the severity level of messages logged in the buffer. Possible values: emergencies, alerts, critical, errors, warnings, notifications, informational and debugging.
Syslog Commands logging buffered size The logging buffered size Global Configuration mode command changes the number of syslog messages stored in the internal buffer. To return to the default configuration, use the no form of this command. Syntax logging buffered size number no logging buffered size Parameters n number — Specifies the maximum number of messages stored in the history table. (Range: 20-400) Default Setting The default number of messages is 200.
Syslog Commands clear logging The clear logging Privileged EXEC mode command clears messages from the internal logging buffer. Syntax clear logging Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command clears messages from the internal logging buffer. Console# clear logging Clear logging buffer [confirm] 24-6 www.hp.
Syslog Commands logging file The logging file Global Configuration mode command limits syslog messages sent to the logging file based on severity. To cancel using the buffer, use the no form of this command. Syntax logging file level no logging file Parameters n level — Specifies the severity level of syslog messages sent to the logging file. Possible values: emergencies, alerts, critical, errors, warnings, notifications, informational and debugging. Default Setting The default severity level is errors.
Syslog Commands clear logging file The clear logging file Privileged EXEC mode command clears messages from the logging file. Syntax clear logging file Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command clears messages from the logging file. Console# clear logging file Clear Logging File [confirm] 24-8 www.hp.
Syslog Commands aaa logging The aaa logging Global Configuration mode command enables logging AAA login events. To disable logging AAA login events, use the no form of this command. Syntax aaa logging login no aaa logging login Parameters n login — Indicates logging messages related to successful login events, unsuccessful login events and other login-related events. Default Setting Logging AAA login events is enabled.
Syslog Commands file-system logging The file-system logging Global Configuration mode command enables logging file system events. To disable logging file system events, use the no form of this command. Syntax file-system logging copy no file-system logging copy file-system logging delete-rename no file-system logging delete-rename Parameters n copy — Indicates logging messages related to file copy operations. n delete-rename — Indicates logging messages related to file deletion and renaming operations.
Syslog Commands management logging The management logging global configuration command enables logging management access list (ACL) events. To disable logging management access list events, use the no form of this command. Syntax management logging deny no management logging deny Parameters n deny — Indicates logging messages related to deny actions of management ACLs. Default Setting Logging management ACL events is enabled.
Syslog Commands show logging The show logging Privileged EXEC mode command displays the state of logging and the syslog messages stored in the internal buffer. Syntax show logging Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays the state of logging and the syslog messages stored in the internal buffer.
Syslog Commands 19-Nov-2004 20:03:42 :%LINK-I-Up: e41 19-Nov-2004 20:03:42 :%LINK-I-Up: Vlan 1 19-Nov-2004 20:03:40 :%LINK-W-Down: e41 19-Nov-2004 20:03:40 :%LINK-W-Down: e46 19-Nov-2004 20:03:40 :%LINK-W-Down: e45 19-Nov-2004 20:03:40 :%LINK-W-Down: e44 19-Nov-2004 20:03:40 :%LINK-W-Down: e43 19-Nov-2004 20:03:40 :%LINK-W-Down: e42 19-Nov-2004 20:03:40 :%LINK-W-Down: Vlan 1 19-Nov-2004 20:03:40 :%LINK-I-Up: e41 19-Nov-2004 20:03:40 :%LINK-W-Down: e40 19-Nov-2004 20:03:40 :%LINK-W-Down: e39 19-Nov-2004 20:
Syslog Commands 19-Nov-2004 20:03:39 :%LINK-W-Down: e11 19-Nov-2004 20:03:39 :%LINK-W-Down: e10 19-Nov-2004 20:03:39 :%LINK-W-Down: e9 19-Nov-2004 20:03:39 :%LINK-W-Down: e8 19-Nov-2004 20:03:39 :%LINK-W-Down: e7 19-Nov-2004 20:03:39 :%LINK-W-Down: e6 19-Nov-2004 20:03:39 :%LINK-W-Down: e5 19-Nov-2004 20:03:39 :%LINK-W-Down: e4 19-Nov-2004 20:03:39 :%LINK-W-Down: e3 19-Nov-2004 20:03:39 :%LINK-W-Down: e2 19-Nov-2004 20:03:39 :%LINK-W-Down: e1 19-Nov-2004 20:03:33 :%SNMP-I-CDBITEMSNUM: Number of startup con
Syslog Commands show logging file The show logging file Privileged EXEC mode command displays the state of logging and the syslog messages stored in the logging file. Syntax show logging file Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays the logging state and the syslog messages stored in the logging file. .
Syslog Commands 24-16 www.hp.
25 System Management Commands ping The ping User EXEC mode command sends ICMP echo request packets to another node on the network. Syntax ping {ip-address | hostname }[size packet_size] [count packet_count] [timeout time_out] Parameters n ip-address — IP address to ping. n hostname — Host name to ping. (Range: 1-158 characters) n packet_size — Number of bytes in a packet. The actual packet size is eight bytes larger than the specified size specified because the device adds header information.
System Management Commands Example The following command displays pinging results: Console> ping 10.1.1.1 Pinging 10.1.1.1 with 64 bytes of data: 64 bytes from 10.1.1.1: icmp_seq=0. time=11 ms 64 bytes from 10.1.1.1: icmp_seq=1. time=8 ms 64 bytes from 10.1.1.1: icmp_seq=2. time=8 ms 64 bytes from 10.1.1.1: icmp_seq=3. time=7 ms ----10.1.1.1 PING Statistics---4 packets transmitted, 4 packets received, 0% packet loss round-trip (ms) min/avg/max = 7/8/11 Console> ping yahoo.com Pinging yahoo.com 66.218.71.
System Management Commands traceroute The traceroute User EXEC mode command discovers routes that packets actually take when traveling to their destination. Syntax traceroute {ip-address |hostname }[size packet_size] [ttl max-ttl] [count packet_count] [timeout time_out] [source ip-address] [tos tos] Parameters n ip-address — IP address of the destination host. n hostname — Host name of the destination host. (Range: 1-158 characters) n packet_size — Number of bytes in a packet.
System Management Commands Examples The following command discovers the routes that packets will actually take when traveling to their destination. Console# traceroute 192.168.2.5 Tracing the route to 192.168.2.5 (192.168.2.5), 30 hops max, 40 byte packets Type Esc to abort. 1 192.168.2.5 (192.168.2.5) <20 ms <20 ms <20 ms Trace complete. Console# The following table describes significant fields shown in the example.
System Management Commands telnet The telnet User EXEC mode command enables logging on to a host that supports Telnet. Syntax telnet {ip-address | hostname} [port] [keyword1......] Parameters n ip-address — IP address of the destination host. n hostname — Host name of the destination host. (Range: 1-158 characters) n port — A decimal TCP port number, or one of the keywords listed in the Ports table in the Command Usage.
System Management Commands At any time during an active Telnet session, Telnet commands can be listed by pressing the Ctrl-shift-6-? keys at the system prompt, as shown in the following example. Note that the Ctrl-shift-6 sequence appears as ^^ on the screen.
System Management Commands Keyword Description Port Number exec Exec 512 finger Finger 79 ftp File Transfer Protocol 21 ftp-data FTP data connections 20 gopher Gopher 70 hostname NIC hostname server 101 ident Ident Protocol 113 irc Internet Relay Chat 194 klogin Kerberos login 543 kshell Kerberos shell 544 login Login 513 lpd Printer service 515 nntp Network News Transport Protocol 119 pim-auto-rp PIM Auto-RP 496 pop2 Post Office Protocol v2 109 pop3 Post Of
System Management Commands resume The resume User EXEC mode command enables switching to another open Telnet session. Syntax resume [connection] Parameters n connection — The connection number. (Range: 1-4 connections) Default Setting The default connection number is that of the most recent connection. Command Mode User EXEC mode Command Usage There are no user guidelines for this command. Example The following command switches to open Telnet session number 1. Console> resume 1 25-8 www.hp.
System Management Commands reload The reload Privileged EXEC mode command reloads the operating system. Syntax reload Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage Caution should be exercised when resetting the device, to ensure that no other activity is being performed. In particular, the user should verify that no configuration files are being downloaded at the time of reset.
System Management Commands hostname The hostname Global Configuration mode command specifies or modifies the device host name. To remove the existing host name, use the no form of the command. Syntax hostname name no hostname Parameters n name — The host name. of the device. (Range: 1-158 characters) Default Setting This command has no default configuration. Command Mode Global Configuration mode Command Usage There are no user guidelines for this command.
System Management Commands show users The show users User EXEC mode command displays information about the active users. Syntax show users Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode User EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays information about the active users.
System Management Commands show sessions The show sessions User EXEC mode command lists open Telnet sessions. Syntax show sessions Parameters There are no parameters for this command. Default Setting There is no default configuration for this command. Command Mode User EXEC mode Command Usage There are no user guidelines for this command. Example The following command lists open Telnet sessions.
System Management Commands show system The show system User EXEC mode command displays system information. Syntax show system Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode User EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays the system information.
System Management Commands show version The show version User EXEC mode command displays system version information. Syntax show version Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode User EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays system version information (only for demonstration purposes). Console> show version SW version 1.0.0.
System Management Commands service cpu-utilization The service cpu-utilization Global Configuration mode command enables measuring CPU utilization. To return to the default configuration, use the no form of this command. Syntax service cpu-utilization no service cpu-utilization Parameters There are no parameters for this command. Default Setting Disabled. Command Mode Global Configuration mode Command Usage Use the show cpu utilization Privileged EXEC command to view information on CPU utilization.
System Management Commands show cpu utilization The show cpu utilization Privileged EXEC mode command displays information about CPU utilization. Syntax show cpu utilization Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage Use the service cpu-utilization Global Configuration mode command to enable measuring CPU utilization. Example The following command displays CPU utilization information.
26 TACACS+ Commands tacacs-server host The tacacs-server host Global Configuration mode command specifies a TACACS+ host. To delete the specified name or address, use the no form of this command. Syntax tacacs-server host {ip-address | hostname} [single-connection] [port port-number] [timeout timeout] [key key-string] [source source] [priority priority] no tacacs-server host {ip-address | hostname} Parameters n ip-address — IP address of the TACACS+ server. n hostname — Host name of the TACACS+ server.
TACACS+ Commands Command Usage Multiple tacacs-server host commands can be used to specify multiple hosts. Example The following command specifies a TACACS+ host. Console(config)# tacacs-server host 172.16.1.1 26-2 www.hp.
TACACS+ Commands tacacs-server key The tacacs-server key Global Configuration mode command sets the authentication encryption key used for all TACACS+ communications between the device and the TACACS+ daemon. To disable the key, use the no form of this command. Syntax tacacs-server key key-string no tacacs-server key Parameters n key-string — Specifies the authentication and encryption key for all TACACS+ communications between the device and the TACACS+ server.
TACACS+ Commands tacacs-server timeout The tacacs-server timeout Global Configuration mode command sets the interval during which the device waits for a TACACS+ server to reply. To return to the default configuration, use the no form of this command. Syntax tacacs-server timeout timeout no tacacs-server timeout Parameters n timeout — Specifies the timeout value in seconds.
TACACS+ Commands tacacs-server source-ip The tacacs-server source-ip Global Configuration mode command configures the source IP address to be used for communication with TACACS+ servers. To return to the default configuration, use the no form of this command. Syntax tacacs-server source-ip source no tacacs-server source-ip source Parameters n source — Specifies the source IP address. Default Setting The source IP address is the address of the outgoing IP interface.
TACACS+ Commands show tacacs The show tacacs Privileged EXEC mode command displays configuration and statistical information about a TACACS+ server. Syntax show tacacs [ip-address] Parameters n ip-address — Name or IP address of the TACACS+ server. Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays configuration and statistical information about a TACACS+ server.
27 User Interface Commands do The do command executes an EXEC-level command from the Global Configuration mode or any configuration submode. Syntax do Parameters The EXEC command to be executed. Default Setting This command has no default configuration. Command Mode All configuration modes Command Usage There are no user guidelines for this command. Example The following command executes an EXEC-level command show vlan from the Global Configuration mode.
User Interface Commands enable The enable User EXEC mode command enters the Privileged EXEC mode. Syntax enable [privilege-level] Parameters n privilege-level — Privilege level to enter the system. (Range: 1-15) Default Setting The default privilege level is 15. Command Mode User EXEC mode Command Usage There are no user guidelines for this command. Example The following command enters the Privileged EXEC mode. Console> enable enter password: Console# 27-2 www.hp.
User Interface Commands disable The disable Privileged EXEC mode command returns to the User EXEC mode. Syntax disable [privilege-level] Parameters n privilege-level — Privilege level to enter the system. (Range: 1-15) Default Setting The default privilege level is 1. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command returns to Users EXEC mode. Console# disable Console> HP PC Blade Switch CLI Reference Guide www.hp.
User Interface Commands login The login User EXEC mode command changes a login username. Syntax login Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode User EXEC mode Command Usage There are no user guidelines for this command. Example The following command enters Privileged EXEC mode and logs in with username admin. Console> login User Name:admin Password:***** Console# 27-4 www.hp.
User Interface Commands configure The configure Privileged EXEC mode command enters the Global Configuration mode. Syntax configure Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command enters the Global Configuration mode. Console# configure Console(config)# HP PC Blade Switch CLI Reference Guide www.hp.
User Interface Commands exit (Configuration) The exit command exits any configuration mode to the next highest mode in the CLI mode hierarchy. Syntax exit Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode All configuration modes Command Usage There are no user guidelines for this command. Example The following command changes the configuration mode from Interface Configuration mode to Privileged EXEC mode.
User Interface Commands exit The exit Privileged/User EXEC mode command closes an active terminal session by logging off the device. Syntax exit Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode Privileged and User EXEC modes Command Usage There are no user guidelines for this command. Example The following command closes an active terminal session. Console> exit HP PC Blade Switch CLI Reference Guide www.hp.
User Interface Commands end The end command ends the current configuration session and returns to the Privileged EXEC mode. Syntax end Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode All configuration modes. Command Usage There are no user guidelines for this command. Example The following command changes from Global Configuration mode to Privileged EXEC mode. Console(config)# end Console# 27-8 www.hp.
User Interface Commands help The help command displays a brief description of the help system. Syntax help Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode All command modes Command Usage There are no user guidelines for this command. Example The following command describes the help system. Console# help Help may be requested at any point in a command by entering a question mark '?'.
User Interface Commands terminal data-dump The terminal data-dump User EXEC mode command enables dumping all the output of a show command without prompting. To disable dumping, use the no form of this command. Syntax terminal data-dump no terminal data-dump Parameters There are no parameters for this command. Default Setting Dumping is disabled. Command Mode User EXEC mode Command Usage By default, a More prompt is displayed when the output contains more lines than can be displayed on the screen.
User Interface Commands show history The show history User EXEC mode command lists the commands entered in the current session. Syntax show history Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode User EXEC mode Command Usage The buffer includes executed and unexecuted commands. Commands are listed from the first to the most recent command. The buffer remains unchanged when entering into and returning from configuration modes.
User Interface Commands show privilege The show privilege Privileged/User EXEC mode command displays the current privilege level. Syntax show privilege Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode Privileged and User EXEC modes Command Usage There are no user guidelines for this command. Example The following command displays the current privilege level for the Privileged EXEC mode.
28 VLAN Commands vlan database The vlan database Global Configuration mode command enters the VLAN Configuration mode. Syntax vlan database Parameters There are no parameters for this command. Default Setting Two VLANs are assigned in the VLAN database: n VLAN 1 n VLAN 2 Command Mode Global Configuration mode Command Usage There are no user guidelines for this command. Example The following command enters the VLAN database mode.
VLAN Commands vlan Use the vlan VLAN Configuration mode command to create a VLAN. To delete a VLAN, use the no form of this command. Syntax vlan vlan-range no vlan vlan-range Parameters n vlan-range — Specifies a list of VLAN IDs to be added. Separate nonconsecutive VLAN IDs with a comma and no spaces; a hyphen designates a range of IDs. Default Setting This command has no default configuration. Command Mode VLAN Configuration mode Command Usage There are no user guidelines for this command.
VLAN Commands interface vlan The interface vlan Global Configuration mode command enters the Interface Configuration (VLAN) mode. Syntax interface vlan vlan-id Parameters n vlan-id — Specifies an existing VLAN ID. Default Setting Two interfaces are configured and set to DHCP: n one on VLAN 1 n one on VLAN 2 Command Mode Global Configuration mode Command Usage There are no user guidelines for this command. Example The following command configures VLAN 1 with IP address 131.108.1.
VLAN Commands interface range vlan The interface range vlan Global Configuration mode command enables simultaneously configuring multiple of VLANs. Syntax interface range vlan {vlan-range | all} Parameters n vlan-range — Specifies a list of VLAN IDs to be added. Separate nonconsecutive VLAN IDs with a comma and no spaces; a hyphen designates a range of IDs. n all — All existing static VLANs. Default Setting This command has no default configuration.
VLAN Commands name The name Interface Configuration mode command adds a name to a VLAN. To remove the VLAN name, use the no form of this command. Syntax name string no name Parameters n string — Unique name to be associated with this VLAN. (Range: 1-32 characters) Default Setting No name is defined. Command Mode Interface Configuration (VLAN) mode. Cannot be configured for a range of interfaces (range context). Command Usage There are no user guidelines for this command.
VLAN Commands switchport mode The switchport mode Interface Configuration mode command configures the VLAN membership mode of a port. To return to the default configuration, use the no form of this command. Syntax switchport mode {access | trunk | general} no switchport mode Parameters n access — Indicates an untagged layer 2 VLAN port. n trunk — Indicates a trunking layer 2 VLAN port. n general — Indicates a full 802-1q supported VLAN port. Default Setting All ports are in access mode.
VLAN Commands switchport access vlan The switchport access vlan Interface Configuration mode command configures the VLAN ID when the interface is in access mode. To return to the default configuration, use the no form of this command. Syntax switchport access vlan {vlan-id | dynamic} no switchport access vlan Parameters n vlan-id — Specifies the ID of the VLAN to which the port is configured.
VLAN Commands switchport trunk allowed vlan The switchport trunk allowed vlan Interface Configuration mode command adds or removes VLANs to or from a trunk port. Syntax switchport trunk allowed vlan {add vlan-list | remove vlan-list} Parameters n add vlan-list — List of VLAN IDs to be added. Separate nonconsecutive VLAN IDs with a comma and no spaces. A hyphen designates a range of IDs. n remove vlan-list — List of VLAN IDs to be removed. Separate nonconsecutive VLAN IDs with a comma and no spaces.
VLAN Commands switchport trunk native vlan The switchport trunk native vlan Interface Configuration mode command defines the native VLAN when the interface is in trunk mode. To return to the default configuration, use the no form of this command. Syntax switchport trunk native vlan vlan-id no switchport trunk native vlan Parameters n vlan-id— Specifies the ID of the native VLAN. Default Setting This command has no default configuration.
VLAN Commands switchport general allowed vlan The switchport general allowed vlan Interface Configuration mode command adds or removes VLANs from a general port. Syntax switchport general allowed vlan add vlan-list [tagged | untagged] switchport general allowed vlan remove vlan-list Parameters n add vlan-list — Specifies the list of VLAN IDs to be added. Separate nonconsecutive VLAN IDs with a comma and no spaces. A hyphen designates a range of IDs.
VLAN Commands switchport general pvid The switchport general pvid Interface Configuration mode command configures the PVID when the interface is in general mode. To return to the default configuration, use the no form of this command. Syntax switchport general pvid vlan-id no switchport general pvid Parameters n vlan-id — Specifies the PVID (Port VLAN ID). Default Setting If the default VLAN is enabled, PVID = 1. Otherwise, PVID=4095.
VLAN Commands switchport general ingress-filtering disable The switchport general ingress-filtering disable Interface Configuration mode command disables port ingress filtering. Ingress filtering discards frames to VLAN where port does not belong. To return to the default configuration, use the no form of this command. Syntax switchport general ingress-filtering disable no switchport general ingress-filtering disable Parameters There are no parameters for this command.
VLAN Commands switchport general acceptable-frame-type tagged-only The switchport general acceptable-frame-type tagged-only Interface Configuration mode command discards untagged frames at ingress. To return to the default configuration, use the no form of this command. Syntax switchport general acceptable-frame-type tagged-only no switchport general acceptable-frame-type tagged-only Parameters There are no parameters for this command. Default Setting All frame types are accepted at ingress.
VLAN Commands switchport forbidden vlan The switchport forbidden vlan Interface Configuration mode command forbids adding specific VLANs to a port. To return to the default configuration, use the remove parameter for this command. Syntax switchport forbidden vlan {add vlan-list | remove vlan-list} Parameters n add vlan-list — Specifies the list of VLAN IDs to be added. Separate nonconsecutive VLAN IDs with a comma and no spaces. A hyphen designates a range of IDs.
VLAN Commands ip internal-usage-vlan The ip internal-usage-vlan Interface Configuration mode command reserves a VLAN as the internal usage VLAN of an interface. To return to the default configuration, use the no form of this command. Syntax ip internal-usage-vlan vlan-id no ip internal-usage-vlan Parameters n vlan-id — Specifies the ID of the internal usage VLAN. Default Setting The software reserves a VLAN as the internal usage VLAN of an interface.
VLAN Commands show vlan The show vlan Privileged EXEC mode command displays VLAN information. Syntax show vlan [id vlan-id | name vlan-name] Parameters n vlan-id — specifies a VLAN ID n vlan-name — Specifies a VLAN name string. (Range: 1-32 characters) Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays all VLAN information.
VLAN Commands show vlan internal usage The show vlan internal usage Privileged EXEC mode command displays a list of VLANs used internally by the device. Syntax show vlan internal usage Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays VLANs used internally by the device.
VLAN Commands show interfaces switchport The show interfaces switchport Privileged EXEC mode command displays the switchport configuration. Syntax show interfaces switchport {ethernet interface | port-channel port-channel-number} Parameters n interface — A valid Ethernet port number. n port-channel-number — A valid port-channel number. Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command.
VLAN Commands Static configuration: PVID: 1 (default) Ingress Filtering: Enabled Acceptable Frame Type: All Port e1 is statically configured to: VLAN Name Egress Rule ---- ------- ----------- 1 default untagged 11 VLAN011 tagged 19 IPv6 VLAN untagged 72 VLAN0072 untagged Forbidden VLANS: VLAN Name ---- ---- 73 out Console# show interface switchport ethernet e2 Port e2: VLAN Membership mode: General Operating parameters: PVID: 4095 (discard vlan) Ingress Filtering: Enabled Acceptabl
VLAN Commands Port e2 is statically configured to: VLAN Name Egress rule ---- ------------ ----------- 8 VLAN0072 untagged 91 IP Telephony tagged Forbidden VLANS: VLAN Name ---- ---- 73 out Port e19 Static configuration: PVID: 2922 Ingress Filtering: Enabled Acceptable Frame Type: Untagged GVRP status: Disabled 28-20 www.hp.
29 Web Server Commands ip http server The ip http server Global Configuration mode command enables configuring the device from a browser. To disable this function, use the no form of this command. Syntax ip http server no ip http server Parameters There are no parameters for this command. Default Setting HTTP server is enabled. Command Mode Global Configuration Command Usage Only a user with access level 15 can use the Web server. Example The following command enables configuring the device from a browser.
Web Server Commands ip http port The ip http port Global Configuration mode command specifies the TCP port to be used by the Web browser interface. To return to the default configuration, use the no form of this command. Syntax ip http port port-number no ip http port Parameters n port-number — Port number for use by the HTTP server. (Range: 0-65535) Default Setting The default port number is 80.
Web Server Commands ip https server The ip https server Global Configuration mode command enables configuring the device from a secured browser. To return to the default configuration, use the no form of this command. Syntax ip https server no ip https server Parameters There are no parameters for this command. Default Setting HTTPS server disabled. Command Mode Global Configuration mode Command Usage Use the crypto certificate generate Global Configuration mode command to generate an HTTPS certificate.
Web Server Commands ip https port The ip https port Global Configuration mode command specifies the TCP port used by the server to configure the device through the Web browser. To return to the default configuration, use the no form of this command. Syntax ip https port port-number no ip https port Parameters n port-number — Port number to be used by the HTTP server. (Range: 0-65535) Default Setting The default port number is 443.
Web Server Commands crypto certificate generate The crypto certificate generate Global Configuration mode command generates a self-signed HTTPS certificate. Syntax crypto certificate [number] generate [key-generate [length]] [cn common- name] [ou organization-unit] [or organization] [loc location] [st state] [cu country] [duration days] Parameters n number — Specifies the certificate number. (Range: 1-2) n key-generate — Regenerate the SSL RSA key. n length — Specifies the SSL RSA key length.
Web Server Commands Example The following command regenerates an HTTPS certificate. Console(config)#Console(config)# crypto certificate 1 generate key-generate 29-6 www.hp.
Web Server Commands crypto certificate request The crypto certificate request Privileged EXEC mode command generates and displays certificate requests for HTTPS. Syntax crypto certificate number request [cn common- name ] [ou organization-unit] [or organization] [loc location] [st state] [cu country] Parameters n number — Specifies the certificate number. (Range: 1-2) n common- name — Specifies the fully qualified URL or IP address of the device.
Web Server Commands Example The following command generates and displays a certificate request for HTTPS.
Web Server Commands crypto certificate import The crypto certificate import Global Configuration mode command imports a certificate signed by the Certification Authority for HTTPS. Syntax crypto certificate number import Parameters n number — Specifies the certificate number. (Range: 1-2) Default Setting This command has no default configuration. Command Mode Global Configuration mode Command Usage Use this command to enter an external certificate (signed by Certification Authority) to the device.
Web Server Commands Example The following command imports a certificate signed by Certification Authority for HTTPS.
Web Server Commands ip https certificate The ip https certificate Global Configuration mode command configures the active certificate for HTTPS. To return to the default configuration, use the no form of this command. Syntax ip https certificate number no ip https certificate Parameters n number — Specifies the certificate number. (Range: 1-2) Default Setting Certificate number 1.
Web Server Commands show crypto certificate mycertificate The show crypto certificate mycertificate Privileged EXEC mode command displays the SSH certificates of the device. Syntax show crypto certificate mycertificate [number] Parameters n number — Specifies the certificate number. (Range: 1- 2) Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays the certificate.
Web Server Commands show ip http The show ip http Privileged EXEC mode command displays the HTTP server configuration. Syntax show ip http Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays the HTTP server configuration. Console# show ip http HTTP server enabled.
Web Server Commands show ip https The show ip https Privileged EXEC mode command displays the HTTPS server configuration. Syntax show ip https Parameters There are no parameters for this command. Default Setting This command has no default configuration. Command Mode Privileged EXEC mode Command Usage There are no user guidelines for this command. Example The following command displays the HTTP server configuration. Console# show ip https HTTPS server enabled.
Index Index 802.
Index crypto certficate generate 29–5 current configuration 7–6 D database, VLAN 28–1 delete 7–4 deny 14–4 deny (IP) 4–5 deny (MAC) 4–9 description 8–4 dhcp 11–2, 11–14 DHCP configuration 1–5 disable Privileged EXEC mode 27–3 displaying spanning tree information 22–28 do 27–1 domain lookup 11–9 dot1x commands 2–1 to 2–23 duplex 8–6 E enable GVRP 9–1, 9–2 Privileged EXEC mode 27–2 enable password 3–10, 3–11 end 27–8 entering commands 1–3 multiple commands 1–3 ethernet configuration commands 8–1 to 8–23 de
Index M mac access list 4–7 management ACL commands 14–1 to 14–7 defined 1–7 match 18–6 mdix 8–9 MSTP configuration 1–5 multiple commands 1–3 N name 28–5 name MST 22–21 negating commands 1–4 negotiation 8–7 normal access mode 1–1 O octets 20–2 opening, Telnet session 1–2 P packets 20–2 parameters 1–3 password 3–10 enable 3–10, 3–11 permit 14–3 permit (IP) 4–2 permit (MAC) 4–8 PHY diagnostics commands 15–1 to 15–4 defined 1–7 ping 25–1 police 18–12 policy map 18–7 port channel commands 16–1 to 16–4 defin
Index management access list 14–6 MST 22–23 policy map 18–9 ports monitor 17–3 ports security 5–20 ports security addresses 5–21 ports storm control 8–23 privilege 27–12 QoS 18–2 QoS aggregrate policer 18–15 QoS interface 18–20 rmon collection history 20–5 rmon events 20–15 running configuration 7–6 sessions 25–12 SNMP 21–18 to 21–24 sntp configuration 6–17 sntp status 6–18 startup configuration 7–8 system 25–13 TACACS 26–6 users 25–11 version 25–14 VLAN 28–16 showing commands 1–3 shutdown 8–3 SNMP command