Forum Discussion

Anuj_Chaudhary_'s avatar
Anuj_Chaudhary_
Icon for Nimbostratus rankNimbostratus
Aug 03, 2016

Need Script so that we can fetch the report from F5 devices

Hi All,

 

Can you pls me to get the script so that we can fetch the report from F5 devices with Below info :

 

1.VIP Info 2.VIP service port 3.Pool member status 4.Pool member port

 

1 Reply

  • If you're running 11.4 or greater, you could utilize iControlRest to grab the raw data and then parse it out into a report.

    The following url formats should help get the data you're looking for:

    • Virtuals:
      https:///mgmt/tm/ltm/virtual?$select=fullPath,destination,pool
    • Pools:
      https://mgmt/tm/ltm/pool?$select=fullPath,membersReference/items/fullPath,membersReference/items/state&expandSubcollections=true
    • Pool Status:
      https:///mgmt/tm/ltm/pool/stats?$select=tmName,status.availabilityState,status.enabledState,status.statusReason

    Note: You do have to parse out the port number from the fullPath for each of them