Forum Discussion

EuropeanITCrow1's avatar
May 06, 2019
Solved

Resource Provisioning over iControlRest?

Hi guys,

 

Does anybody know if there is a possibility to get the Resource Provisioning overview for Management over iControlRest?

 

Can't find it under /mgmt/tm/sys/provision :-(

 

Cheers

 

3 Replies

  • The `tmsh show sys provision` equivalent iControl REST call is: 

    curl -sku <user>:<pass> https://<mgmtIP>/mgmt/tm/sys/provision/stats

    Note the "stats" at the end. It indicates the call is a "show" tmsh command instead of "list".

  • You can use the API endpoint

    /mgmt/tm/sys/provision/stats
    as Satoshi gave previously.

    Mgmt information is represented by the 'host' line in the iControlREST response. In the example below,

    host
    is given 10% CPU, this is what is remaining after
    tmos
    has 84% and each module has 1%. (I have formatted the output below as the response is given as a one liner)

    {
      "kind": "tm:sys:provision:provisioncollectionstats",
      "selfLink": "https://localhost/mgmt/tm/sys/provision/stats?ver=12.1.3.7",
      "apiRawValues": {
        "apiAnonymous": "      
    ---------------------------------------------------------
    Sys::Provision
    Module  CPU (%)  Memory (MB)  Host-Memory (MB)  Disk (MB)
    ---------------------------------------------------------
    afm           1         1024              3226       3900
    am            1         2386              1624     809544
    apm           1          512              2826          0
    asm           1         1536              7642       6900
    avr           1         1108               768       3900
    fps           0            0                 0          0
    gtm           0            0                 0          0
    host         10        20922                 0      12288
    ilx           0            0                 0          0
    lc            0            0                 0          0
    ltm           1            0                 0          0
    pem           0            0                 0          0
    swg           0            0                 0          0
    tmos         84        20884               420          0
    vcmp          0            0                 0          0 
    "
      }
    }