Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 
Custom Alert Banner

find specific SNMP OID

F5_LB_Eng
Cirrostratus
Cirrostratus

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.

 

3 ACCEPTED SOLUTIONS

mihaic
MVP
MVP

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

View solution in original post

F5-Enthusiast
Altocumulus
Altocumulus

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

 

View solution in original post

mihaic
MVP
MVP

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

 

View solution in original post

3 REPLIES 3

mihaic
MVP
MVP

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

F5-Enthusiast
Altocumulus
Altocumulus

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

 

mihaic
MVP
MVP

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