Extreme_Gather

This tool is based on Net-SNMP. Using SNMP gets, it can collect various peices of information about your extreme networking gear, currently BlackDiamonds. The script currently doesn't handle Summit48's, but that may be added soon. Here is an example output from a BlackDiamond:

[benr@nexus scripts]$ ./extreme_gather.pl -report 10.10.0.240
In 10.10.0.240 [SN: XXXXXXX-07-XXXXXXXXX] you have the following installed:
SLOT    BOARD   STATE           SERIAL
----    -----   -----           ------
1       none    notPresent      --
2       none    notPresent      --
3       g8xi    operational     701024-XXXXXXXXXXXXX
4       g8xi    operational     701024-XXXXXXXXXXXXX
5       none    notPresent      --
6       none    notPresent      --
7       none    notPresent      --
8       f48ti   operational     701026-XXXXXXXXXXXXX
A       msm64i  operational     701021-XXXXXXXXXXXXX
B       msm64i  operational     701021-XXXXXXXXXXXXX
The Master MSM is in slot A
The primary firmware rev is "6.1.7b9" and the secondary is "6.1.5b20"
The image that will be used on reboot is: primary
Temp(c): 33     Input Voltage: v220
Community: public      Date: Fri Jan 31 11:56:10 PST 2003
[benr@nexus scripts]$

I've "X"ed out the Serial numbers for obvious reasons. This script is handy for 3 main purposes:

  1. You can inventory your BlackDiamonds in seconds. Run this once a week, or after each part swap and you will have nice log of old parts.
  2. Check the complete status of your BD in seconds.
  3. You can easily see what your BD will be doing at next boot and versions you currently have.


Download: extreme_gather.pl v0.2
Requirements: Fping, Net-SNMP 5.x, the Extreme MIB*
License: GNU Public License

*NOTE: You should place the Extreme MIB in the SAME directory as the script. The script uses extreme620.mib, so change it in the header if you use a newer version or diffrent name