Forum Discussion
Difference between tmsh modify node "session user-enabled" and "state user-up"?
What is the difference between these two commands?
tmsh modify ltm node 1.2.3.4 session user-enabled
tmsh modify ltm node 1.2.3.4 state user-up
I found that I had to issue both of them before the node would show green (enabled) in the GUI.
Thanks!
2 Replies
- What_Lies_Bene1
Cirrostratus
It is somewhat confusing isn't it. I'd have thought that the
would have done the job. Does it? The default is down.tmsh modify ltm node ‘name’ upFrom the tmsh reference guide: http://support.f5.com/kb/en-us/products/big-ip_ltm/manuals/product/bigip-tmsh-11-4-0.html.
session user-enabled;
"Establishing a session with a node is establishing the ability of the client to persist to the node when making new connections. When a node is session disabled, clients that have already established sessions with the node may create new connections, but a client that has not already established a session may not create a new one (or make a connection which would create a new session). This feature is used to gently drain connections from a node, typically as part of a maintenance operation. The default value is user-enabled."
state user-up
"Specifies the current state of the node. Use user-down to indicate that the node may not handle any new connections. Use user-up, after using user-down, to indicate that the node may accept new connections."
- Ken_B_50116
Cirrostratus
Ah yes, thanks for reading the manual for me. I'll have to make a note of that!
My script uses this line:
tmsh modify ltm node 1.2.3.4 session user-disabled...in order to drain stop a node before the node is rebooted each month. For some reason the script using the 'user-enabled' command quit working and the nodes would never show a green status. Ultimately I figured out that issuing the 'state user-up' fixed my problem because at some during testing the 'state user-down' command must have been issued.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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