Forum Discussion
Jens_Deprez_133
Nimbostratus
Jan 06, 2017iControlREST: Node availability details
Hi,
Is it possible to check how long a node is in a forced Offline state?
If I check a node in the GUI this is clearly visible.
However if I check the same node trough a REST-clie...
Satoshi_Toyosa1
Jan 08, 2017Ret. Employee
Usually, you can access information via iControl REST as long as the date is obtainable from
tmsh. I cannot find a tmsh command that shows the date/time of a node being forced down, so I assume it is not doable via iControl REST... at least in a usual manner. You should open a case from F5 Support to request further investigation.
A workaround I can think of is to get the info from /var/log/ltm.
curl -sku admin:adminPass -X POST -H "Content-Type: application/json" \
-d "{\"command\":\"run\", \"utilCmdArgs\":\"-c 'grep YOURNODE /var/log/ltm'\"}" \
https://YOURHOST/mgmt/tm/util/bash
It does work, but it isn't great. You need to parse the data further to get what you want. Obviously, it does not work after the log file is rotated.
You can find the information on
/mgmt/tm/util/bash in
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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