Forum Discussion
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 ...
Satoshi_Toyosa1
Jan 09, 2017Ret. Employee
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.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects