Forum Discussion
Rob_74473
Cirrus
Oct 23, 2018trying to enable, disable, and force down a node
I saw Jason's answer to an earlier question about disabling a node, but I'm still running into trouble. I can force offline, but I cannot enable or disable.
node = bigip_root.tm.ltm.nodes.node.loa...
Satoshi_Toyosa1
Oct 31, 2018Ret. Employee
Use
state
and session
fields to modify the state of a node. You can specify either user-up
or user-down
for the state. user-enabled
and user disabled
for the session.
A node becomes Offline/Enabled (red diamond) by PATCHing
'{"state":"user-down"}'
. '{"state":"user-up"}'
to bring it up (green circle).
A node becomes Available/Disabled (black circle) by patching
'{"session":"user-disabled"}'
. Again, '{"session":"user-enabled"}'
will bring it back alive.
If you patch both in one shot, i.e.,
'{"state":"user-down", "session":"user-disabled"}'
, the node status becomes Offline/Disabled (black diamond).
See also K12213214: Overview of colored status icons in the Configuration utility for the meanings of the states.
Additional info: You can get the available values for a parameter from
tmsh
. Just type the command halfway-through, and TAB. e.g.,
[root@ltm1213A:Standby:Changes Pending] config tmsh
root@(ltm1213A)(cfg-sync Changes Pending)(Standby)(/Common)(tmos) modify ltm node sat state [TAB]
Values:
user-down user-up
I hope this would help.
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