Forum Discussion
JRahm
Admin
Apr 24, 2015snmp oid question
posting on behalf of a community member:
Subject: snmpget / snmpwalk on BIG IP 11.x
Hello all,
i have a little problem. I try to get some snmp information from one of our big-ips (LTM Modul) vi...
JRahm
Admin
Apr 24, 2015I’ve found great use out of some of the snmpwalk command options. First, walk the oid by name (as you have) so you can tell what is what:
[root@ltm1:Active:Standalone] config snmpwalk -v 2c -c f5dc localhost F5-BIGIP-LOCAL-MIB::ltmNodeAddrStatusAvailState
F5-BIGIP-LOCAL-MIB::ltmNodeAddrStatusAvailState."/Common/10.10.10.1" = INTEGER: blue(4)
F5-BIGIP-LOCAL-MIB::ltmNodeAddrStatusAvailState."/Common/my.host.com" = INTEGER: blue(4)
F5-BIGIP-LOCAL-MIB::ltmNodeAddrStatusAvailState."/Common/10.43.190.50" = INTEGER: blue(4)
then use the “-On” option to reveal the numeric oid for you, and you can do a line by line compare to pull out the appropriate oidstrings you will use.
[root@ltm1:Active:Standalone] config snmpwalk -v 2c -c f5dc -On localhost F5-BIGIP-LOCAL-MIB::ltmNodeAddrStatusAvailState
.1.3.6.1.4.1.3375.2.2.4.3.2.1.3.18.47.67.111.109.109.111.110.47.49.48.46.49.48.46.49.48.46.49 = INTEGER: blue(4)
.1.3.6.1.4.1.3375.2.2.4.3.2.1.3.19.47.67.111.109.109.111.110.47.109.121.46.104.111.115.116.46.99.111.109 = INTEGER: blue(4)
.1.3.6.1.4.1.3375.2.2.4.3.2.1.3.20.47.67.111.109.109.111.110.47.49.48.46.52.51.46.49.57.48.46.53.48 = INTEGER: blue(4)
snmptranslate is your friend as well, though with oids with quotes in them, you will need to escape them:
[root@ltm1:Active:Standalone] config snmptranslate -On F5-BIGIP-LOCAL-MIB::ltmNodeAddrStatusAvailState.\"/Common/10.10.10.1\"
.1.3.6.1.4.1.3375.2.2.4.3.2.1.3.18.47.67.111.109.109.111.110.47.49.48.46.49.48.46.49.48.46.49
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
