Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SNMPWALK Information

Status
Not open for further replies.

RookThis

Technical User
Jul 27, 2002
195
US
If I do an snmpwalk I get a lot of information. From capturing the information I see a lot of individual items that I guess are OIDs. I know I can do the entire snpwalk and grep out what I need, but I was wondering if I can run the snmpwalk command and enter a specific OID that is listed on the snmpwalk info and just pull out that information. I've tried doing that and I can't get it to work. I'm trying to pull out the supevisor model on a cisco 4500 switch.

Any suggestions?
 
I guess what you need is snmpget. This only retrieves a singel OID. snmpwalk is a command that recursively calls snmpget to see to whome mib tree structure ...
 
Yes. snmpwalk will return info on the OID that you enter, and those below it. If you enter a full OID, then you'll only get one response.

snmpget would be the better choice for a single OID, though. No sense in having snmpwalk's overhead if you don't need it.
 
You can also do a snmpwalk ip system ,for instance, that will give you the system information or yuor agent, yopu can replace system by other therms as well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top