Formating snmpwalk output
Dave Goldstein <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hello
I'm using the netsnmp libraries, i.e- NetSNMP::agent , going by the example you gave in your web site.
When someone runs 'snmpwalk' on my servers, he sees:
SNMPv2-SMI::enterprises.54321.1.1.1 = INTEGER: 0
SNMPv2-SMI::enterprises.54321.1.1.2 = INTEGER: 1
SNMPv2-SMI::enterprises.54321.1.1.3 = INTEGER: 1
SNMPv2-SMI::enterprises.54321.1.1.5 = INTEGER: 1
SNMPv2-SMI::enterprises.54321.1.1.8 = INTEGER: -1
SNMPv2-SMI::enterprises.54321.1.1.9 = INTEGER: 1
SNMPv2-SMI::enterprises.54321.1.1.12 = INTEGER: 0
SNMPv2-SMI::enterprises.54321.1.1.13 = INTEGER: 0
SNMPv2-SMI::enterprises.54321.1.1.16 = INTEGER: 3879900
SNMPv2-SMI::enterprises.54321.1.2.1 = INTEGER: 1060249
SNMPv2-SMI::enterprises.54321.1.2.2 = INTEGER: 1060249
SNMPv2-SMI::enterprises.54321.1.2.3 = INTEGER: 12900
SNMPv2-SMI::enterprises.54321.1.2.4 = INTEGER: 21596
SNMPv2-SMI::enterprises.54321.1.2.5 = INTEGER: 60
Now, this doesn't help anyone that doesn't have a list of these OIDs and their meaning.
So, I'd like it to look like this:
number of udp connections = INTEGER: 0
number of tcp connections = INTEGER: 1
number of users connected = INTEGER: 1
Total connected so far = INTEGER: 1
blah blah blah blah = INTEGER: -1
...
1. Can this be done ?
2. How ??
Thank you,
Dave
---------------------------------
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.