HP ProCurve CLI Commands CheatSheet

The most used ProCurve CLI commands

LOG
log Display log events (most recent last)
log -r Display log events (most recent first)
log A12 Display log events of port a12
log A12 -r Display log events of port a12 (most recent first)
log 192.168.0.1 Display log events of 192.168.0.1
MAC
show mac A5 Show MAC-address of the device on port A5
show mac A4-A6 Show MAC-adresss of the devices on ports between A4 and A6
show mac 00112233-445566 Show which port device with MAC-address 00112233-445566 is connected
VLAN
show vlan Show information about vlans on this swtich
show vlan ports A19 Show VLAN ID and status of specific ports (A19)
show vlan Show ports on this vlan and port status
configure
vlan 19 Set switch to vlan 19
name SupportVLAN Name this vlan as “SupportVLAN”
tag A12 Set port a12 as tagged on vlan 19 (First do vlan <19>)
tag A12,A13 Set ports a12 and 13 tagged on vlan 19 (First do vlan <19>)
untag A12 Set port a12 as untagged on vlan 19
vlan 19 tagged A12 Set port a12 as tagged on vlan 19
vlan 19 untagged A12 Set port a12 as untagged on vlan 19
vlan 19 untagged A12-A20 Set port a12-a20 as untagged on vlan 19
no vlan 30 Remove vlan setting on port 30
FLASH
show flash Displays info about flash (version etc.)
copy running-config tftp filename.txt Copy your running config to file filename.txt at tftp server which IP is .
copy tftp startup 192.168.0.2 hp_2524 Copy your config (filename hp2524) from server 192.168.0.2 via tftp to switch
copy tftp flash file.swi Download and update your flash with file.swi from tftp server at
MISC
copy flash flash secondary Copy software from primary to secondary image is not intuitive
copy flash flash primary Updated secondary image first then You could copy from secondary to primary
hostname poro_1 Set switch hostname as poro_1
link-test 00112233-445566 Test connectivity between switches (this switch and 00112233-445566)
show run Show running config
password operator Set operator password (Normal user / read-only )
password manager Set manager password (Admin user / read-write)
password all Set operator and manager password
enable Switch to manager lever from operator level
ping 192.168.0.1 Ping IP 192.168.0.1
chassislocate Turn on/off switch locator led or blink it (30 minutes)
chassislocate blink 10 Blink switch locator led 10 minutes
ntp1 first.timeserver.net Add first.timeserver.net to NTP server list
timesync ntp Enable NTP syncronization with servers

 

PROMPT
Switch# Manager prompt
Switch>_ Operator prompt

Copyright © Petri Lopia ( www.petrilopia.net ) ver 1.02

Install and setup Minicom

Minicom is the hyperterminal for Linux.

Minicom is by default not installed.

  1. Install Minicom with the following command

    sudo apt-get install minicom

  2. Find your serial port

    dmesg | grep tty

    $ dmesg | grep tty
    [    0.001251] console [tty0] enabled
    [   72.953237] usb 6-1: pl2303 converter now attached to ttyUSB0

    I use a USB serial port, my laptop doesn’t have a build in serial port.
    So the name of the serial port is ttyUSB0.

  3. Configure Minicom

    sudo minicom -s

    • Select “Serial Port setup”
    • Enter A to change the selected serial port, in my case change to /dev/ttyUSB0
    • Enter E to change the line speed to 9600 8N1
    • Select “Save setup as dfl”
  4. Exit Minicom
  5. Start Minicom with

    sudo minicom

And you are  good to go.

Reset a Foundry ServerIron XL password

Previously I posted a blog about completely resetting a Foundry ServerIron XL
But what if you only want to reset the password?
This is how it works..

Connect with a serial cable to the Foundry ServerIron XL.

1) Unplug the Switch
2) Plug the switch back in, and be immediately ready to:
3) Hit b within 2 seconds, to enter into the boot monitor
4) Type:

no password
boot system flash primary

5) Foundry will boot up, now

FastIron> enable
No password has been assigned yet…
FastIron#

6)Set a new password

Conf t
FastIron (config)# enable super-user NewPassword
FastIron (config)# write memory

Reset a foundry ServerIron XL to factory defaults

I needed to reset a Foundry Server Iron XL back to factory defaults, and surprisingly couldn’t find the instructions via my buddy google. Foundry is really stingy with with support documents, and knowledge portal acccess, and unless you have a valid support contract, you can’t find ANYTHING. Luckily I do, so I figured I’d share this knowledge for the sake of future googlers.

First, remove the password:

1) Unplug the Switch

2) Plug the switch back in, and be immediately ready to:

3) Hit b, to enter into the boot monitor

4) Type:

no password

boot system flash primary

5) Foundry will boot up, and you can ‘enable’ without being prompted for a password

To reset your ServerIronXL to factory defaults:

6) After enabling, type:

erase start

NOTE: This is permanent! There is no going back! Make sure this is what you want to do! You are resetting to factory defaults (nothing!)

7) Reboot, and enjoy your clean slate

As always, if you find this helpful, please let me know!

Clear statistics HP ProCurve switch without reboot

It is useful to be able to clear all counters and statistics from a HP ProCurve switch without rebooting the switch when troubleshooting network issues. The clear statistics global command clears all counters and statistics for all interfaces except SNMP.

You can also clear the counters and statistics for an individual port using the clear statistics <port-list> command.

clear statistics <<port-list> | global >

When executed with the <port-list> option, clears the counters and statistics for an individual port.When executed with the global option, clears all counters and statistics for all interfaces except SNMP. The show interfaces [<port-list>] command displays the totals accumulated since the last boot or the last clear statistics command was executed. The menu and web pages also display these totals.

SNMP displays the counter and statistics totals accumulated since the last reboot; it is not affected by the clear statistics global command or the clear statistics <port-list> command. An SNMP trap is sent whenever the statistics are cleared.

Note
The clearing of statistics cannot be uncleared.