Trouble gettng Global Concurrent Connections with SNMP

Hello, I’m a bit new to F5s, and I’m trying to get some session metrics via SNMP.

I have not had any luck finding a global statistic for all my VS connections. The OIDs I have found on the net appear to not work. I have tried several different ones from vegan.net/mrtg and none of them seem to go at all. I wonder if they are outdated.

I have a pair of BigIPs running v10.2.1 software. I have been able to get some connection statistics for my virtual servers, so I know SNMP is responding as I would think.

is this oid applicable?

[root@ve1023:Active] config snmptranslate .1.3.6.1.4.1.3375.2.1.1.2

F5-BIGIP-SYSTEM-MIB::sysGlobalStats

Hi. I used snmpwalk on the LTM to look for virtual stats. You need to make sure localhost is enabled in your snmp configuration. It usually is by defauilt.

snmpwalk -v 2c -c public localhost F5-BIGIP-LOCAL-MIB::ltmVirtualServStat

If you want to start with an OID number, you can try this:

snmpwalk -v 2c -c public localhost .1.3.6.1.4.1.3375.2.2.10.2.3.1

Note that the virtual server names use quotes. I beleive they are contained in a table. To snmget a specific virtual, you would need to use the OID number or escape the quotes.

snmpget -v 2c -c public localhost F5-BIGIP-LOCAL-MIB::ltmVirtualServStatClientPktsIn.\“mtest\”

F5-BIGIP-LOCAL-MIB::ltmVirtualServStatClientPktsIn.“mtest” = Counter64: 694

To obtain the OID number, I use the -On switch:

snmpget -v 2c -On -c public localhost F5-BIGIP-LOCAL-MIB::ltmVirtualServStatClientPktsIn.\“mtest\”

.1.3.6.1.4.1.3375.2.2.10.2.3.1.6.5.109.116.101.115.116 = Counter64: 694

Thus a get with the OID number:

snmpget -v 2c -c public localhost .1.3.6.1.4.1.3375.2.2.10.2.3.1.6.5.109.116.101.115.116

Note that the OID numbers represent the ASCII equivelents. I think the 1st number in the tree ( 5 ) represents how many ASCII characters follow.

The manual gives a basic understanding:

Working with SNMP MIB files

DevCentral has a ton of information on gathering statistics. For example, I searched on F5-BIGIP-LOCAL-MIB

http://devcentral.f5.com/Default.aspx?tabid=37&cx=015798286719081439686:g38hs-tdy64&cof=FORID:11&q=F5-BIGIP-LOCAL-MIB

Hope this helps.

Actually it looks like the F5 MIB files are not working. I’m getting a series of errors like this…

Cannot adopt OID in F5-BIGIP-SYSTEM-MIB: sysGlobalTcpStat ::= { sysGlobalStats 12 }

probably hundreds of them referencing all of the F5 MIB files.

some quick googling says that its likely the MIB files are in the wrong syntax

have you tried snmpwalk locally? did it work?

e.g.

[root@ve1023:Active] config  snmpwalk -v 2c -c public localhost .1.3.6.1.4.1.3375.2.1.1.2
F5-BIGIP-SYSTEM-MIB::sysStatResetStats.0 = INTEGER: 0
F5-BIGIP-SYSTEM-MIB::sysStatClientPktsIn.0 = Counter64: 737174
F5-BIGIP-SYSTEM-MIB::sysStatClientBytesIn.0 = Counter64: 255313206
F5-BIGIP-SYSTEM-MIB::sysStatClientPktsOut.0 = Counter64: 944065
F5-BIGIP-SYSTEM-MIB::sysStatClientBytesOut.0 = Counter64: 1002808675
F5-BIGIP-SYSTEM-MIB::sysStatClientMaxConns.0 = Counter64: 3119
F5-BIGIP-SYSTEM-MIB::sysStatClientTotConns.0 = Counter64: 61502
F5-BIGIP-SYSTEM-MIB::sysStatClientCurConns.0 = Counter64: 1
F5-BIGIP-SYSTEM-MIB::sysStatServerPktsIn.0 = Counter64: 917075
...

probably hundreds of them referencing all of the F5 MIB files.

some quick googling says that its likely the MIB files are in the wrong syntaxjust a quick question. is MIB that has been imported to NMS really correct e.g. version?

I dont have direct access to the F5 as it is hosted. I am trying to setup MRTG to run from an Ubuntu install I have. MRTG is running for all my other devices, which is why I was trying to check SNMP directly.

I was able to

snmpwalk -v 2c -c public .1.3.6.1.4.1.3375.2.2.10.2.3.1 and it returned a bunch of the errors followed by a bunch of OID entries…

Cannot adopt OID in F5-BIGIP-GLOBAL-MIB: gtmServerStat2BitsPerSecIn ::= { gtmServerStat2Entry 6 }

Cannot adopt OID in F5-BIGIP-GLOBAL-MIB: gtmServerStat2BitsPerSecOut ::= { gtmServerStat2Entry 7 }

Cannot adopt OID in F5-BIGIP-GLOBAL-MIB: gtmServerStat2PktsPerSecIn ::= { gtmServerStat2Entry 8 }

Cannot adopt OID in F5-BIGIP-GLOBAL-MIB: gtmServerStat2PktsPerSecOut ::= { gtmServerStat2Entry 9 }

Cannot adopt OID in F5-BIGIP-GLOBAL-MIB: gtmServerStat2Connections ::= { gtmServerStat2Entry 10 }

Cannot adopt OID in F5-BIGIP-GLOBAL-MIB: gtmServerStat2ConnRate ::= { gtmServerStat2Entry 11 }

iso.3.6.1.4.1.3375.2.2.10.2.3.1.1.13.86.83.45.70.79.82.87.65.82.68.73.78.71 = STRING: “VS-FORWARDING”

iso.3.6.1.4.1.3375.2.2.10.2.3.1.1.17.86.83.45.53.48.46.53.55.46.50.46.49.48.57.45.56.48 = STRING: “VS--80”

iso.3.6.1.4.1.3375.2.2.10.2.3.1.1.17.86.83.45.53.48.46.53.55.46.50.46.49.49.48.45.56.48 = STRING: “VS--80”

iso.3.6.1.4.1.3375.2.2.10.2.3.1.1.18.86.83.45.53.48.46.53.55.46.50.46.49.48.57.45.52.52.51 = STRING: “VS--443”

iso.3.6.1.4.1.3375.2.2.10.2.3.1.1.18.86.83.45.53.48.46.53.55.46.50.46.49.49.48.45.52.52.51 = STRING: “VS--443”

isn’t .1.3.6.1.4.1.3375.2.2.10.2.3.1 in F5-BIGIP-LOCAL-MIB? why did you get F5-BIGIP-GLOBAL-MIB? where did you get MIB file?

[root@ve1023:Active] config  b version|grep -iA 1 version
BIG-IP Version 10.2.3 112.0
Final Edition

[root@ve1023:Active] config  snmpwalk -v 2c -c public localhost .1.3.6.1.4.1.3375.2.2.10.2.3.1
F5-BIGIP-LOCAL-MIB::ltmVirtualServStatName."bar" = STRING: bar
F5-BIGIP-LOCAL-MIB::ltmVirtualServStatCsMinConnDur."bar" = Counter64: 1
F5-BIGIP-LOCAL-MIB::ltmVirtualServStatCsMaxConnDur."bar" = Counter64: 304115
F5-BIGIP-LOCAL-MIB::ltmVirtualServStatCsMeanConnDur."bar" = Counter64: 29220
F5-BIGIP-LOCAL-MIB::ltmVirtualServStatNoNodesErrors."bar" = Counter64: 0
F5-BIGIP-LOCAL-MIB::ltmVirtualServStatClientPktsIn."bar" = Counter64: 251620
F5-BIGIP-LOCAL-MIB::ltmVirtualServStatClientBytesIn."bar" = Counter64: 11298096
F5-BIGIP-LOCAL-MIB::ltmVirtualServStatClientPktsOut."bar" = Counter64: 659287
F5-BIGIP-LOCAL-MIB::ltmVirtualServStatClientBytesOut."bar" = Counter64: 920275057
F5-BIGIP-LOCAL-MIB::ltmVirtualServStatClientMaxConns."bar" = Counter64: 9
F5-BIGIP-LOCAL-MIB::ltmVirtualServStatClientTotConns."bar" = Counter64: 523
F5-BIGIP-LOCAL-MIB::ltmVirtualServStatClientCurConns."bar" = Counter64: 0
F5-BIGIP-LOCAL-MIB::ltmVirtualServStatEphemeralPktsIn."bar" = Counter64: 0
F5-BIGIP-LOCAL-MIB::ltmVirtualServStatEphemeralBytesIn."bar" = Counter64: 0
F5-BIGIP-LOCAL-MIB::ltmVirtualServStatEphemeralPktsOut."bar" = Counter64: 0
F5-BIGIP-LOCAL-MIB::ltmVirtualServStatEphemeralBytesOut."bar" = Counter64: 0
F5-BIGIP-LOCAL-MIB::ltmVirtualServStatEphemeralMaxConns."bar" = Counter64: 0
F5-BIGIP-LOCAL-MIB::ltmVirtualServStatEphemeralTotConns."bar" = Counter64: 0
F5-BIGIP-LOCAL-MIB::ltmVirtualServStatEphemeralCurConns."bar" = Counter64: 0
F5-BIGIP-LOCAL-MIB::ltmVirtualServStatPvaPktsIn."bar" = Counter64: 0
F5-BIGIP-LOCAL-MIB::ltmVirtualServStatPvaBytesIn."bar" = Counter64: 0
F5-BIGIP-LOCAL-MIB::ltmVirtualServStatPvaPktsOut."bar" = Counter64: 0
F5-BIGIP-LOCAL-MIB::ltmVirtualServStatPvaBytesOut."bar" = Counter64: 0
F5-BIGIP-LOCAL-MIB::ltmVirtualServStatPvaMaxConns."bar" = Counter64: 0
F5-BIGIP-LOCAL-MIB::ltmVirtualServStatPvaTotConns."bar" = Counter64: 0
F5-BIGIP-LOCAL-MIB::ltmVirtualServStatPvaCurConns."bar" = Counter64: 0
F5-BIGIP-LOCAL-MIB::ltmVirtualServStatTotRequests."bar" = Counter64: 273
F5-BIGIP-LOCAL-MIB::ltmVirtualServStatTotPvaAssistConn."bar" = Counter64: 0
F5-BIGIP-LOCAL-MIB::ltmVirtualServStatCurrPvaAssistConn."bar" = Counter64: 0

I got the MIB file from the F5 itself

The version of the OS is 10.2.1

I should have caught that in the beginning. F5-BIGIP-GLOBAL-MIB refers to Global Traffic Manager. If you do not have this enabled, I doubt you would get valid data. F5-BIGIP-LOCAL-MIB is for LTM.

Forgive me, I’m not sure I understand what you mean?

you did snmpwalk against .1.3.6.1.4.1.3375.2.2.10.2.3.1 OID which is LTM’s OID but the error said soemthing about GTM’s OID. i think there is something wrong on the NMS. is it possible to re-import or re-load MIB? or is there any setting which might be incorrect there?

I was able to get the hosting provider to give me a new download of all the MIB files stored on the F5. With the new batch my snmp appears to be working now and I’m able to get the stats I need.

Thanks for all the help, I appreciate it.

perfect! thanks for update. :slight_smile: