Forum Discussion

Patrik_Jonsson's avatar
Jan 05, 2017

Getting VLAN interface statistics via iControl Rest

Simple question, simple answer?

 

Is it possible to get the statistics from the host ifconfig via iControl rest?

 

/mgmt/tm/net/vlan/stats?options=interfaces does not contain it.

 

/Patrik

 

1 Reply

  • 11.5.0 release note says: "This release introduces a REST interface to iControl to remotely execute TMSH". If you can't find the information in

    show net vlan
    , you won't be able to find it in iControl REST too.

    If you want to execute

    bash
    (unix)
    /sbin/ifconfig
    , you can call
    /mgmt/tm/util/bash
    . For example,

    curl -sku admin:adminPass -X POST -H "Content-type: application/json" \

    -d "{\"command\":\"run\", \"utilCmdArgs\":\"-c '/sbin/ifconfig'\"}" \

    https://192.168.226.55/mgmt/tm/util/bash

    The output looks ugly but it will do the job for you.