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 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.