Forum Discussion
trying 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.load(partition='Common', name='C100_testHost_NODE')
node.session = 'user-disabled'
node.update(state='user-down')
works
node.session = 'user-enabled'
node.update(state='unchecked')
doesn't work
node.session = 'user-disabled'
node.update(state='unchecked')
doesn't work
- Rob_74473
Cirrus
I'm not able to edit the question, so I'll comment some more details. It seems that I can go from Enabled to Disabled, and from Disabled to Forced, but once it's in Forced state I cannot get it back to Enabled or Disabled. Forced seems to be a blackhole in the API.
- Rob_74473
Cirrus
I can also get from Disabled to Enabled, so it's just not possible to get from Forced Offline to anything else. Any help would greatly appreciated.
- Satoshi_Toyosa1Ret. Employee
Use
andstate
fields to modify the state of a node. You can specify eithersession
oruser-up
for the state.user-down
anduser-enabled
for the session.user disabled
A node becomes Offline/Enabled (red diamond) by PATCHing
.'{"state":"user-down"}'
to bring it up (green circle).'{"state":"user-up"}'
A node becomes Available/Disabled (black circle) by patching
. Again,'{"session":"user-disabled"}'
will bring it back alive.'{"session":"user-enabled"}'
If you patch both in one shot, i.e.,
, the node status becomes Offline/Disabled (black diamond).'{"state":"user-down", "session":"user-disabled"}'
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
. Just type the command halfway-through, and TAB. e.g.,tmsh
[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
* 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