Forum Discussion
Sheela_Narayan_
Nimbostratus
Aug 30, 2013TMSH Command to know the status of the nodes in the pool
Hi,
I am looking for tmsh command for knowing the status (online or offline) of the node/members in the pool level.
LTM version is 11.2.1.
please help.
Thanks & Regards, Sheela Na...
nitass_89166
Noctilucent
Aug 30, 2013there is field-fmt option which may be easier to grep.
field-fmt Show statistics in field format for the specified items
e.g.
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) show ltm pool all members field-fmt |grep "ltm\ pool\|active-member-cnt\|addr\|monitor-status"
ltm pool foo {
active-member-cnt 1
addr 200.200.200.101
monitor-status up
ltm pool qux {
active-member-cnt 0
addr 200.200.200.111
monitor-status unchecked
Brent_Blood_768
Aug 30, 2013Historic F5 Account
The command that nitass recommends is correct for interactive use. For up/down status, it won't be useful, but be aware of the 'raw' option - this'll give you the actual value of counters rather than one rounded to the nearest kilo/mega/giga.
For doing this same thing in a tmsh script, you'll need to modify it to use 'tmsh::get_status' rather than 'show', and then drop 'field-fmt' as it is silently specified automatically. 'raw' however is not so it might still come in handy when working with statistics rather than states.
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