Forum Discussion
F5 Big-IP REST API Throughput bits/sec
I'm developing a custom dashboard for F5 Big-IP device on python. Right now I'm using the following API endpoints to fetch throughput data:
mgmt/tm/sys/performance/throughput/In
mgmt/tm/sys/performance/throughput/Out
But these endpoints give the data in pkts/sec format. I need to get the data in bits/sec or bytes/sec format. I tried to execute tmsh command 'tmsh show sys performance throughput' inside python but when i run the code it disables the F5 Big-IP interface on web browser so we don't want that to happen. Is there a way to achieve getting the data in bits/sec or bytes/sec format without using tmsh commands? If yes then which endpoints or commands can i use?
Tmos version of my device is 14.1.2.3.
- PeteWhiteEmployee
Try running it via the bash command:
curl -sk -u 'admin:admin' -H 'Content-Type: application/json' -X POST \ -d '{"command": "run", "utilCmdArgs": "-c \"tmsh -q show sys performance throughput\""}' \ https://<BIG-IP>/mgmt/tm/util/bash | jq .
- Frederick_WitteEmployee
Realize this is some time ago; however, this call will get you what you're looking for - https://mgmt_IP/mgmt/tm/sys/performance/throughput
For additional stats a get to "/mgmt/tm/sys/performance" will show many other stats as well.
Enjoy!
Recent Discussions
Related Content
* 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