Forum Discussion

F5_LB_Eng's avatar
F5_LB_Eng
Icon for Cirrostratus rankCirrostratus
Mar 28, 2023
Solved

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.  
  • mihaic's avatar
    Mar 28, 2023

    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's avatar
    Mar 29, 2023

    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