Forum Discussion
using Rest API to grab OIDs from F5 LTM
Hi everyone,
We would like to build a website that shows the server nodes and and enabled or disabled. I know the F5 has MIBs that has these stats. What would be the best way to call them into an API solution?
Thanks!
James
- James_124570Nimbostratus
Thank you for your reply CBohannan. I have spending a lot of time on this project and found something. If I run this call: ip_address?$select=session
The results I get is if the node is enabled or disabled.
- CBohannan_14046Nimbostratus
https://localhost/mgmt/tm/ltm/node?
{"kind":"tm:ltm:node:nodecollectionstate","selfLink":"","items":[{"kind":"tm:ltm:node:nodestate","name":"dis_NODE","partition":"Common","fullPath":"/Common/dis_NODE","generation":965,"selfLink":"","address":"10.10.10.2","connectionLimit":0,"dynamicRatio":1,"ephemeral":"false","fqdn":{"addressFamily":"ipv4","autopopulate":"disabled","downInterval":5,"interval":3600},"logging":"disabled","monitor":"default","rateLimit":"disabled","ratio":1,"session":"user-disabled","state":"unchecked"},{"kind":"tm:ltm:node:nodestate","name":"en_NODE","partition":"Common","fullPath":"/Common/en_NODE","generation":963,"selfLink":"","address":"10.10.10.1","connectionLimit":0,"dynamicRatio":1,"ephemeral":"false","fqdn":{"addressFamily":"ipv4","autopopulate":"disabled","downInterval":5,"interval":3600},"logging":"disabled","monitor":"default","rateLimit":"disabled","ratio":1,"session":"user-enabled","state":"unchecked"}]}
You will have to do some parsing to get the "session":"" information from the response....but this seems like what you are asking for?
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