Forum Discussion
Wally_Steadman_
Apr 30, 2018Nimbostratus
Finding Standalone and also finding which LTM is active
Greetings folks,
So I am working on a script to get a consolidated list of all VIPs on all of our LTMs in production.
I am using python and the f5-sdk and I have worked out the script to get the ...
amintej
Apr 30, 2018Cirrus
I used the next function for getting information about devices and active/standby state in the cluster.
from prettytable import PrettyTable
def get_cluster(mgmt):
tcluster = PrettyTable(["Device name","IP","State"])
devices = mgmt.tm.cm.devices.get_collection()
for device in devices:
tcluster.add_row([device.name, device.managementIp, device.failoverState])
return tcluster
Hope it helps.
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects