2512, and 4108gl switches. It is divided into sections that correspond to different modules or features of the HP switches. Not all sections will apply to all HP switches since each switch may only support a subset of the total feature set that is described in this document.
EXEC level HP 4108GL> Figure 1: Command and context levels When you log onto the switch, you will be placed at the operator EXEC level and the system will display the following prompt: HP 4108GL>...
(1), the system would display the options seen in section (2) and the system would return to the configuration level prompt with the partially completed command line seen in (3): HP 4108GL(config) t trunk trap...
If you had already typed in trap- on line (1) and then pressed the tab character, the system would complete the keyword trap-send-authentication, for it is the only possible completion for trap-, and display the completed command line as shown below: 1. HP 4108GL(config) trap- 2. HP 4108GL(config) trap-send-authentication 1.6 Command Line Editing Before you press return, the current command line can be edited using special keys including arrows and control characters.
Command Summary 2.1 User EXEC Commands enable Enters the manager EXEC level. If a manager password is set, the system will first prompt for the password. Echoing is disabled while you enter the password. Initially there are no passwords for the two levels of users in the system: manager and operator.
[no] page Toggles the paging mode for display commands so that the “—more –“ will appear or not appear. repeat Repeatedly executes the previous command until a key is pressed. vlan <vlan-name | vlan-id> Enters the VLAN interface configuration context for the VLAN. 2.2 Diagnostic Commands boot [system [flash <primary|secondary>]] Performs cold reboot of switch.
Page 11
copy <startup-config|running-config|crash-log|event-log|crash-rec|Command> This command writes the switch's configuration file, crashrec, eventlog or the output from a command specified by Command to the remote file on the remote host. show startup-config Displays the configuration stored in flash. show running-config Displays the configuration stored in flash. show boot-history Displays the switch shutdown history.
Page 12
clear intrusion-log To clear the intrusion log. clear statistics [ethernet] <port-list> To reset counters displayed by the console. If a new console session is initiated, the counters will revert back to the values maintained by the switch hardware. telnet <ip-addr> To initiate a telnet session with another network device.
Page 13
Displays software version information for images in flash. show tech Displays switch information needed by HP support for diagnostics. copy xmodem < startup-config |flash [primary|secondary]> Retrieves a configuration file using the Xmodem protocol and then writes the retrieved file to the switch's flash.
Page 14
link-test <mac-addr> [vlan <vlan-id>] [repetitions <1..999>] [timeout <1..256>] Tests the connection to a MAC station on the LAN by sending a 802.2 test packet to a specific target node on a network directly attached to a port in that LAN. The target node must be able to respond to this test packet with an 802.2 Test Response packet in order for the test to work.
2.3 System Configuration 2.3.1 System commands - EXEC level show console Displays the console parameters. Output Format: Switch Configuration - Console/Serial Link Inbound Telnet Enabled [Yes] : Yes Web Agent Enabled [Yes] : Yes Terminal Type [VT100] : VT100 Screen Refresh Interval (sec) [3] : 3 Displayed Events [All] : All Baud Rate [Speed Sense] : Speed Sense Flow Control [XON/XOFF] : XON/XOFF...
Page 16
show mac-address <port-list> Displays the MAC addresses that the switch has learned from the network devices attached to the specified switch port. Output Format: Status and Counters - Port Address Table - Port 1 MAC Address ------------- 00105a-8abed4 00105a-cac0e8 009004-8e3178 00c0f0-1c65ee 00c0f0-1c66ea 00c0f0-30d74a...
Page 17
show modules Displays the modules that are present on the switch. Output Format: Status and Counters - Module Information Slot Module Type ---- --------------- show system-information Displays the status of and current configuration of all the switch internal resources. Output Format: ..System Name System Contact System Location...
2.3.2 System Configuration commands mac-age-time <1..100000> Sets the number of seconds a MAC address stays in the switch address table before being aged out. Aging out occurs if traffic isn't received from that MAC station within the age interval. The default value is 300. console [terminal <vt100 | ansi>...
Page 19
time [mm/dd/yy] [hh:mm:ss] [timezone <value>] [daylight-time-rule <value>] [begin-date <mm/dd> end-date <mm/dd>] This command display switch's date & time or optionally sets it. Parameters: timezone <-1440..1440> - Sets the number of minutes your location is to the West(+) or East(-) of GMT (default is 0). daylight-time-rule <alaska | none | continental-us-canada | middle-europe- and-portugal | southern-hemisphere | western-europe | user-defined>...
[no] telnet-server Enables remote telnet access to the switch. [no] web-management Enables the web browser to interact with the web agent on the switch. [no] password <operator | manager> Sets passwords for different classes of users. This command causes the switch to prompt for a password twice, once for the new password and once to verify it was typed correctly, and disables echoing while you type the password.
2.7 IP Stacking 2.7.1 IP Stacking commands - EXEC level show stack [candidates | all] Displays status information for the stacking feature. ‘show stack’ with no arguments displays the status of this switch’s stack. If the keyword candidates is supplied then this command displays a list of candidates on the local network segment.
Page 23
[no] stack auto-join Causes the switch to advertise, via the discovery protocol, that it wants to automatically join any stack operating on the local LAN segment. Switches with passwords will not auto-join. [no] stack auto-grab Enables/disables auto-grab mode for stacking on the command switch. If enabled, the command switch will attempt to grab new candidate switches and make them members of the stack.
2.8 Port Settings 2.8.1 Port commands - EXEC level show interfaces config Displays the basic configuration of the switch ports. Output Format: Port Type ---- -------- + ------- 10/100TX | Yes 10/100TX | Yes 10/100TX | Yes 10/100TX | Yes 10/100TX | Yes 10/100TX | Yes 10/100TX | Yes...
Page 25
show statistics <port-number> Displays the network traffic statistics for the specified port. Output Format: Status and Counters - Port Counters - Port 1 Link Status Bytes Rx Unicast Rx Bcast/Mcast Rx FCS Rx Alignment Rx Runts Rx Giants Rx Total Rx Errors : 4 : Up : 83,290,873 Bytes Tx...
Interface command to simply change the configuration. For example: HP 4108GL(config)# interface ethernet A1,A3 disable broadcast-limit <0..99> Sets the theoretical maximum of network bandwidth in percentage that can be used for broadcast traffic.
[no] flow-control Enables or disables flow control on the port. Note: Full-duplex ports only. speed-duplex <10-full | 10-half | 100-full | 100-half | 1000-full | 10-auto | auto> Sets the mode of operation for the port. [no] lacp [active|passive] enables or disables LACP on the port. 2.9 Trunk Configuration 2.9.1 Trunk commands - EXEC level...
show lacp Displays LACP status information. Output Format: P0RT LACP NUMB ENABLED ---- -------- Active Passive Active Active Active Active Active Active 2.9.2 Trunk commands - Configuration level [no] trunk <trk1..trk24 > [trunk | fec | lacp] <port list> This command configures each port in the switch to either be a Trunked, SA Only Trunked, FEC Trunked port, or a regular singular port.
MAC addresses for load distribution (select this to connect to devices such as the HP Switch 2000 or the Sun Trunk Server); fec - uses an automatic protocol for load distribution (select this to connect to devices that support Cisco's Fast EtherChannel trunking).
show spanning-tree Displays bridge-level spanning tree information. Output Format: Status and Counters - Spanning Tree Information STP Enabled Switch Priority Hello Time Max Age Forward Delay Topology Change Count Time Since Last Change : 4 mins Root MAC Address Root Path Cost Root Port Root Priority Port...
Page 31
spanning-tree [forward-delay <seconds>] [hello-time <seconds>] [maximum-age <seconds>] [priority <0..65535>] spanning-tree <[ethernet] port-list> [path-cost <1..65535>] This command configures the parameters for operation of the switch in a spanning tree topology. Note - the default spanning tree configuration complies with the IEEE 802.1D standard recommended values and should not be changed without thorough knowledge of spanning tree operation.
2.11 IP 2.11.1 IP commands - EXEC level show ip Displays the IP configuration on the switch. Output Format There are two different IP configuration screens. The first is displayed when no vlans are configured on the switch; the second is displayed when vlans are configured.
Page 33
show ip authorized-managers Displays the current configuration's IP managers access records. Output Format: Authorized Manager IP ---------------------- 192.32.36.78 show arp Displays the ARP cache of the switch. Output Format IP Address -------------- 192.32.36.78 show ip route Displays active IP route entries used by the switch. Output Format Network Addr --------------...
Page 34
show timp Displays active Timep configuration. Output Format Time Sync Mode: Timep TimeP Mode [Disabled] : Manual Poll Interval (min) [720] : 600 show sntp Displays active SNTP configuration. Output Format Time Sync Mode: Timep SNTP Mode [Disabled] : Disabled Poll Interval (min) [720] : 600 Timep Configuration Server Address : 15.29.16.105...
2.11.2 IP commands - Configuration level [no] ip authorized-managers <ip-addr> [mask <ip-mask>] [operator | manager] Sets the IP addresses you will allow to access the switch’s Web browser interface, to telnet to the switch console, and to perform TFTP operations. A maximum of 10 addresses is supported.
Page 36
[no] sntp < server <ip-addr> [version]> [poll-interval <30-720>] Configures SNTP on the switch. ip default-gateway <ip-addr> Assigns an IP address to be used as the default gateway when the switch is not in routing mode. ip route <<ip-addr>/<1..32> | <ip-addr> <ip-mask>> <ip-addr> Used to configure a static IP route for the switch.
2.11.3 IP commands - VLAN Interface level [no] ip address <dhcp-bootp | <<ip-addr>/<1..32> | This command configures the IP address for the switch. Note, by default this command uses a VLAN identifier of one. Although this command is duplicated at the VLAN context level, it is defined here for those customers who do not want to be exposed to VLAN distinctions.
2.12SNMP 2.12.1 SNMP commands - EXEC level show snmp-server Displays the SNMP communities which may be used to access the switch along with the network management stations configured to receive SNMP traps. Output Format: Community Name -------------- public Send Authentication Traps [No] : No Address ---------------------- 192.32.36.78...
2.12.2 SNMP commands – Configuration Level [no] snmp-server community <community-name> [manager | operator] [restricted | unrestricted] Used to configure a new SNMP community or to edit the configuration for an existing one Parameters: <community-name> - Enter (up to 16 characters) the SNMP community name. [manager | operator] - Manager - the community can access all MIB objects;...
2.13VLAN Configuration 2.13.1 VLAN commands - EXEC level show vlans Displays the current VLANs. Output Format: VLAN Support [No] : Yes Maximum VLANs to support [8] : 8 Primary VLAN: DEFAULT_VALN 802.1Q VLAN ID -------------- show vlans <vlan-id> Displays which ports are assigned to particular VLANs. Output Format: Switch Configuration - VLAN - VLAN Port Assignment Port...
To enter the VLAN Interface Configuration level, use the vlan command described above. Note that any of the following commands can be appended to the vlan command to simply change the configuration. For example: HP 4108GL(config)# add vlan 2 name orange-lan name <vlan-name> Changes the current VLAN identifier’s name.
auto <port-list> Causes each port identified in the port-list to learn their VLAN membership using the Group VLAN Registration Protocol (GVRP). This command is only valid when GVRP is enabled. 2.14GVRP 2.14.1 GVRP commands - EXEC level show gvrp Displays the current VLANs. Output Format: GVRP Enabled [No] : Yes Port...
2.15 IGMP 2.15.1 IGMP Commands – EXEC Level show ip igmp [vlan-id] config Displays IGMP configuration information. Output Format: IGMP Enabled [No] : No Forward with High Priority [No] : No Port Type ---- -------- + -------- 10/100TX | Auto 10/100TX | Auto 10/100TX | Auto 10/100TX | Auto...
2.15.2 IGMP Configuration commands – Vlan Interface level [no] ip igmp Enables the IP Multicast (IGMP) feature for IGMP communication between Multicast Routers, Multicast Servers, and Multicast Clients connected to the switch or selected VLAN. [no] ip igmp high-priority-forward Determines whether the switch forwards all IP Multicast traffic at high priority. [no] ip igmp querier Determines whether the switch is querier or not.
2.16.3 Port Monitoring commands - VLAN Interface level [no] monitor Used to enable/disable monitoring of the VLAN. 2.16.4 Port Monitoring commands - Ethernet Interface level [no] monitor Used to enable/disable monitoring of the port. 2.17Port Security 2.17.1 Port Security commands - EXEC level show port-security Displays the per-port security configuration for the switch.
show port-security [ethernet] <port-list> Displays the port security configuration for an individual port. Output Format: Port : 3 Learn Mode [Continuous] : Continuous Action [None] : None show port-security intrusion-log Displays information on any port security intrusions that have occurred on the switch.
Page 48
defined by the "address-limit" parameter are learned or entered for the port. These addresses are static; they are not aged out. addr-limit <1..8> - This parameter is valid only if static is selected for the learn-mode. This parameter defines the number of network devices that are authorized to communicate through the switch port.
Console Menu HP ProCurve Switch xxxxx ==========================- CONSOLE - MANAGER MODE -============================ 1. Status and Counters... 2. Switch Configuration... 3. Console Passwords… 4. Event Log 5. Command Line (CLI) 6. Reboot Switch 7. Download OS 8. Run Setup 0. Logout Provides the menu to display configuration, status, and counters.
3.1.1 General System Information HP ProCurve Switch xxxxx ==========================- CONSOLE - MANAGER MODE -============================ Status and Counters - General System Information System Contact System Location Firmware revision : E.08.XX ROM Version : E.05.X1 Up Time : 40 mins CPU Util (%)
3.1.3 Module Information HP ProCurve Switch xxxxx ==========================- CONSOLE - MANAGER MODE -============================ Status and Counters - Module Information Slot Module Type ---- --------------- --------------------------------------------- Slot Available Slot Available Slot Available Slot Available Slot Available Slot Available Slot Available Slot Available Actions->...
3.1.5 Port Counters HP ProCurve Switch xxxxx ==========================- CONSOLE - MANAGER MODE -============================ Status and Counters - Port Counters Port Total Bytes Total Frames ---- ------------- ------------- 16,448 Actions-> Back Show details Return to previous screen. Use up/down arrow keys to scroll to other entries, left/right arrow keys to change action selection, and <Enter>...
3.1.6 Address Table HP ProCurve Switch xxxxx ==========================- CONSOLE - MANAGER MODE -============================ Status and Counters - Address Table – VLAN ID 23 MAC Address Located on Port ------------- --------------- 0060b0-e26440 080009-092851 080009-76ac55 080009-97aad2 Actions-> Back Search Return to previous screen.
3.1.8 Spanning Tree Information HP ProCurve Switch xxxxx ==========================- CONSOLE - MANAGER MODE -============================ Status and Counters - Spanning Tree Information STP Enabled Switch Priority Hello Time Max Age Forward Delay Topology Change Count Time Since Last Change : 4 mins...
3.2 Configuration Menu HP ProCurve Switch xxxxx ==========================- CONSOLE - MANAGER MODE -============================ 1. System Information 2. Port/Trunk Settings 3. Network Monitoring Port 4. Spanning Tree Operation 5. IP Configuration 6. SNMP Community Names 7. Authorized Managers 8. VLAN Menu...
3.2.1 System Information HP ProCurve Switch xxxxx ==========================- CONSOLE - MANAGER MODE -============================ Switch Configuration - System Information System Name : DEFAULT_CONFIG System Contact : System Location : Inactivity Timeout (min) [0] : 0 Inbound Telnet Enabled [Yes] : Yes...
3.2.6 SNMP Communities HP ProCurve Switch xxxxx ==========================- CONSOLE - MANAGER MODE -============================ Switch Configuration - SNMP Communities Community Name MIB View ---------------- -------- public Manager Actions-> Back Return to previous screen. Use up/down arrow keys to change record selection, left/right arrow keys to change action selection, and <Enter>...
3.2.8 VLAN Menu HP ProCurve Switch xxxxx ==========================- CONSOLE - MANAGER MODE -============================ Switch Configuration - VLAN Menu 1. VLAN Support 2. VLAN Names 3. VLAN Port Assignment 4. Return to Previous Menu... 0. Return to Main Menu... Return to previous screen.
3.2.8.2 VLAN Names HP ProCurve Switch xxxxx ==========================- CONSOLE - MANAGER MODE -============================ Switch Configuration - VLAN Names Name 802.1Q VLAN ID ------------ -------------- DEFAULT_VLAN Actions-> Back Return to previous screen. Use up/down arrow keys to change record selection, left/right arrow keys to change action selection, and <Enter>...
3.3 Password Menu HP ProCurve Switch xxxxx ==========================- CONSOLE - MANAGER MODE -============================ 1. Set Operator Password 2. Set Manager Password 3. Delete Password Protection 4. Return to Previous Menu... 0. Return to Main Menu... Prompts you to enter an Operator-level password.
<Enter> to go to Actions. 3.6 Run Setup HP ProCurve Switch xxxxx ==========================- CONSOLE - MANAGER MODE -============================ System Name : HP ProCurve Switch xxxxx System Contact : Manager Password : Logon Default : Menu Community Name : public Default Gateway : 10.0.8.1...
Page 65
show management...12 show mirror-port ...41 show modules...13 show port-security...42, 43 show port-security intrusion log ...43 show running-config ...7 show snmp-server community ...34 show sntp...30 show spanning-tree ...26 show spanning-tree config ...25 show stack ...18 show startup-config...7 show statistics ...20 show system-information...13 show tacacs ...17 show tech...9 show timep ...30...
Need help?
Do you have a question about the Procurve 2524 and is the answer not in the manual?
Questions and answers