find specific SNMP OID
Hi All.
customer want the OID to query the CPU utilization of a virtual server.
can some one help me to get OID for a virtual server.
The CPU statistics are not per Virtual server. Check this:
https://my.f5.com/manage/s/article/K43203722
you can download the SNMP MIB files if you go on your F5 device at: About ->Downloads->SNMP MIBs
As far as I know it is not possible via SNMP Query, since these information is not exposed to the snmpd. But you can query the information on the box itself with the following Command:
[root@f5-bigip-3:Offline:Standalone] scripts # tmctl virtual_server_cpu_stat -s name,avg_5sec,avg_1min,avg_5min -w 99999 | grep 'api-test'Result will look like this for example
name avg_5sec avg_1min avg_5min /Common/api-test-vs 0 0 0
This Values you can easily script or write to csv to get a graph with excel
Hope it will help
you can also try it via Rest API.
All you need is to make a request for the Virtual server stats.
Something like this:
https://<BIG-IP>/mgmt/tm/ltm/virtual/~<partition>~<VirtualServer>/stats
there you'll find some info:
"fiveMinAvgUsageRatio": {
"value": 0
},
"fiveSecAvgUsageRatio": {
"value": 0
},
"oneMinAvgUsageRatio": {
"value": 0
},https://my.f5.com/manage/s/article/K17283308#vs_stats
https://my.f5.com/manage/s/article/K45508216