Forum Discussion

James_124570's avatar
James_124570
Icon for Nimbostratus rankNimbostratus
Sep 02, 2015

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

 

  • 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?

  • 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.