Forum Discussion
Looking for SNMP OID to list pools and the virtual they are mapped to.
I am trying to find an SNMP OID that will return a list of which pools mapped to each of the virtuals.
This one works for listing all the virtuals: F5-BIGIP-LOCAL-MIB::ltmVirtualServName (1.3.6.1.4.1.3375.2.2.10.1.2.1)
This one works for listing all the pools: F5-BIGIP-LOCAL-MIB::ltmPoolName (1.3.6.1.4.1.3375.2.2.5.1.2.1)
I've searched the MIB for how to map these two and tried a bunch that looked like what I wanted. The most promising of which was ltmVirtualServPoolPoolName (.1.3.6.1.4.1.3375.2.2.10.6.2.1.2) but it does not return anything.
[ ]snmpwalk -c commstring localhost .1.3.6.1.4.1.3375.2.2.10.6.2.1.2
F5-BIGIP-LOCAL-MIB::ltmVirtualServPoolPoolName = No Such Instance currently exists at this OID
The description looks like it might be looking for an argument. For the Virtual to be specified. I don't know how to do that. Is that possible with snmpwalk?
ltmVirtualServPoolPoolName OBJECT-TYPE
SYNTAX LongDisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The name of a non-default pool that the specified virtual server is referencing."
::= { ltmVirtualServPoolEntry 2 }
Is there a way to specify the virtual and see the pool mapped to it?
Is there a way to list every virtual with the pool it maps to?This OID is similar to what I want, but it shows virtuals and rules: ltmVirtualServRulePriority (1.3.6.1.4.1.3375.2.2.10.8.2.1)
Thanks!
1 Reply
Hi!
I don't think there's a way to do this through snmp in a reliable way since there's so many ways to choose pools in the F5 (default pool, irules, policies etc).
If you want to get it programatically you could try this one from the code share:
https://devcentral.f5.com/codeshare/bigip-report
And then use the json files generated to get the information you want:
https://loadbalancing.se/2016/10/07/synergy-effect-of-running-bigipreport/
The tool would detect default pools and pools chosen via irules. However, policies is not covered yet.
/Patrik
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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
