Forum Discussion
Thanushka_Wije1
Nimbostratus
Jun 19, 2019Automated 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 Avai...
Dario_Garrido
Noctilucent
Jun 19, 2019Hello Thanushka.
Try this ->
devices = session.tm.cm.devices.get_collection()
for device in devices:
print("Device: {}".format(device.name))
print("State: {}".format(device.failoverState))
Output:
Device: bigip1.mydomain.local
State: active
Device: bigip2.mydomain.local
State: standby
KR,
Dario.
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