Forum Discussion
Satoshi_Toyosa1
Jul 05, 2017Employee
I don't know the Python API but looks like you are after tmsh show sys failover. e.g.,
tmsh show sys failover
Failover active for 2d 03:22:15
If that's the case, try the following curl command to test if it actually works with the address, userID and password you specified in the code.
curl -sku user:passwd https://host/mgmt/tm/sys/failover
Example output (formatted nicely using | python -m json.tool)
{
"apiRawValues": {
"apiAnonymous": "Failover active for 2d 03:24:19\n"
},
"kind": "tm:sys:failover:failoverstats",
"selfLink": "https://localhost/mgmt/tm/sys/failover?ver=12.1.2"
}