Device


Cisco Management

Altiga-Alarm

ASA-Alarm

Auto-Save

Catalyst-Serial-Num

Cisco-Alarm

Find-QOS-Drops

Find-Unconf-Modules

Mod-Config

Red-Reboot

Save-Config

Show-Tunnels

Show-CDP-Neighbors

Switch Power Alarm

Upgrade-CatOS

Upgrade-IOS

Uplink-Status



Other Open Source Projects

COSI

Pancho


Cisco Management

The Scripts

These PERL scripts help us manage our flock of Cisco switches, routers, and VPN concentrators.

Altiga-Alarm takes a list of Altiga (now Cisco) VPN concentrators as arguments and scans various MIB variables for hardware problems, producing a report -- if it detects any problems, it notifies via e-mail.

ASA-Alarm takes a list of Cisco ASA appliances as arguments and scans various MIB variables for hardware problems, producing a report -- if it detects any problems, it notifies via e-mail.

Auto-Save takes a list of devices as arguments and compares startup-config to the version saved on the tftp server. If they are different, updates the version saved on the tftp server and stores both 'before' and 'after' copies to a changetree.

Catalyst-Serial-Num takes a list of Catalyst devices as arguments and produces a report listing chassis and module serial numbers.

Cisco-Alarm takes a list of Cisco devices as arguments and scans various MIB variables for hardware problems, producing a report -- if it detects any, it notifies via e-mail.

Find-QOS-Drops takes list of devices as arguments and looks for ports which have dropped QoS-tagged frames.

Find-Unconf-Modules takes list of devices as arguments and looks for ports which belong to VLAN1 or which do not have 'portfast' enabled on them.

Mod-Config takes a file name and a list of devices as arguments; it uploads the file to each target, merging it with running-config.

We run Red-Reboot from cron every month to test the redundant aspects of our packet infrastructure. This script reboots a list of devices in order, waiting to see that the rebooted device returns to life before continuing. While a device reboots, the script pings an address located *behind* the rebooting device, tracking how many pings are lost when the device goes down and how many are lost when the device comes back up again. The script logs the results and produces a report. The next day, a human analyzes the network management station's logs to see whether or not the redundant packet infrastructure performed as expected.

Save-Config takes a list of devices as arguments and uses tftp to save their config files to a change tree.

Show-CDP-Neighbors takes a list of devices as arguments and produces a report listing those devices CDP neighbors.

Show-Tunnels takes a list of devices as arguments and produces a report listing information about the IPSec tunnels terminated on these devices.

Switch-Power-Alarm watches power utilization on switches, warning if a switch exceeds a defined percentage of its power budget. Switches typically exceed their power budget if their power supplies are not sized appropriately to support their installed modules or attachedattached PoE devices.

Upgrade-CatOS takes an image file name plus a list of devices as arguments and uses tftp to upgrade the OS sitting on the devices' flash. The script has been tested on: Catalyst 400x, Catalyst 650x (Sup 1A and Sup2)

Upgrade-IOS takes an image file name plus a list of devices as arguments and uses SNMP to upgrade the OS sitting on the devices' flash. The script has been tested on: MSFC1, MSFC2, C5KRSM, cat650x, cat450x, cisco2620, cisco3640, cisco7206VXR

Uplink-Status takes a list of devices as arguments and looks for 'link down' on Supervisor card ports.


Other Open Source Projects

Here are links to other sites which are hosting scripts for managing Cisco devices.

Cisco-centric Open Source Exchange Community (COSI)

Pancho


Prepared by:
Stuart Kendrick

Last modified: 18-January-2008