Thanushka_Wije1
Jun 19, 2019Nimbostratus
Automated F5 LTM pre and post checks
Hi
I'm trying to automate F5 check using F5sdk, unfortunately I think that sdk retrieve virtual server details via .conf file.
Reason I'm telling that is from sdk I'm unable to retrieve F5 Availability.
Below is the script I'm using to print virtual server names,
from f5.bigip import ManagementRoot
# Connect to the BigIP
hostname = input("Please Enter F5 IP: ")
mgmt = ManagementRoot(hostname, "admin", "admin")
# Get a list of all pools on the BigIP and print their names and Availability
virtuals = mgmt.tm.ltm.virtuals.get_collection()
for virtuals in virtuals:
print(virtuals.name, virtuals.partition)
Anyone know how can I get availability status using F5 sdk ?