Forum Discussion
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.