Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a HP 2626 switch and want to monitor it by SNMP. how can i use the MIB file.
Any starting points on how to understand it ?
using snmpwalk to get the data in a *nix machine and output it in a .txt file

How can i get a list of all the connected mac-addresses and coresponding ports by snmp from a HP Procurve 2626 ? And then how can i get current port utilization by SNMP?

share|improve this question
Check the MIB perhaps? – pehrs Jan 10 '11 at 10:29
MIB but i don't know how to use it. any hints ? – s.mihai Jan 10 '11 at 10:38
What tool, on what platform, do you intend to use to do this? At least gives us some clue of the platform you want to do it from. Linux, perhaps? – MadHatter Jan 10 '11 at 11:05
Linux, i am using snmpwalk, but this returns me all the OID's from the device and i can not make sense of all the data – s.mihai Jan 10 '11 at 11:06
up vote 1 down vote accepted

See here:

On most Linux systems, the MIB files should go to /usr/share/snmp/mibs or probably /usr/local/share/snmp/mibs.

share|improve this answer
You can also export MIBS=ALL so snmpwalk will read every MIB in /usr/share/snmp/mibs without having to list them all on the command line. Useful since HP probably gave you +/-8 billion MIB files. – eater Jan 10 '11 at 11:56
yea' i have like 2 dozen files and will take ages to read them out :)) – s.mihai Jan 10 '11 at 12:35

Put STRANGE-NEW-MIB.txt in the directory where all your other MIBs are stored (possibly /usr/share/snmp/mibs , but it may vary with distro, mine is Fedora 14), then do

snmpwalk -v 1 -c public -m +STRANGE-NEW-MIB

where you replace public with the real RO community strong, STRANGE-NEW-MIB is the name of your new MIB without the .txt suffix (if memory serves), and is the IP address of your switch.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.