10-28-2016 08:23 AM
I am trying to find the OID's needed to gather the following information. I am finding bits and pieces but not exactly what I need.
Is there a way to get a full SNMP Walk of everything on a switch?
Here is what I am hoping to get.
Host Name |
Part Number |
Part Description |
Serial Number |
IP Address |
Software version |
VLAN |
VLAN IP address |
VLAN Name |
Default Gateway |
CDP Neighbor |
Interface Errors |
TX/RX/Reliability |
Thanks,
Mike
10-29-2016 01:13 PM
I believe you can get all of that information via SNMP.
Are you trying to write a program to pull it in and then munge that data?
It is probably easiest to lab it up and have something like SolarWinds NPM (free trial) discover the switch using SNMP while you capture traffic. Then you will see all of the OIDs that are queried and the values returned.
You can use a tool to walk the MIB tree if you know where to start. for instance. Paessler has a free SNMP Tester than can do that. I did just a quick test on a switch and I see a good bit of it from walking the tree from 1.3.6.1.2.1.
10-31-2016 05:58 AM
Thank for the help.
Believe it or not after 16 years working on networks I never had to do that much with SNMP alone so I am learning some things so if you could guide me a little bit it would be great.
I am using this...
SnmpWalk.exe -r:10.0.1.1 -c:public -os:.1.3.6.1.2.1 -op:WHAT_DO_I_PUT_HERE >>e:/Full_Walk_1.txt
Which starts at the OID that you listed but what would be the stop OID to get everything on a switch? or can't I do that?
Also I am downloading the SNMP tester and see what that gives me.
Your question: Are you trying to write a program to pull it in and then munge that data?
Answer is yes. Trying to make a custom program that will use the data I gather.
I wish I had gotten into SNMP stuff sooner.
Mike
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide