Forum Discussion
nitass
Aug 30, 2013Employee
there 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
- natheAug 30, 2013CirrocumulusAnother excellent follow up Nitass!
- Brent_Blood_768Aug 30, 2013Historic F5 AccountThe 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.
- Muthukannan_PalJun 08, 2016NimbostratusHi mate, You can use list pool command to check pool and pool members. For your references I enhanced the output have a quick look. abcdfa@(esscdt1xwilb01b)(cfg-sync In Sync)(Active)(/Common)(tmos.ltm) list pool Display all 2269 items? (y/n) y ltm pool transportlayer-tss_s_2231{ members { 11.48.78.29:433 { address 11.48.78.29 session monitor-enabled state up } 11.48.78.30:433{ address 11.48.78.30 session monitor-enabled state up } 11.48.78.31:433 { address 11.48.78.31 session monitor-enabled state up } 11.48.78.32:433 { address 11.48.78.32 session monitor-enabled state up }