ltm rule command membersΒΆ

iRule(1)		      BIG-IP TMSH Manual		      iRule(1)



members
       Lists all members of a given pool for v10.x.x.

SYNOPSIS
       members ('-list')? (POOL_OBJ)

DESCRIPTION
       This command behaves much like active_members, but counts or lists all
       members (IP+port combinations) in a pool, not just active ones.

       Note

	  When assigning a snatpool to static variable and using "members -list"
	  to reference it in RULE_INIT, failures will be observed at startup but
	  won't show up in a reload afterwards. Expected behavior is to fail it
	  in any case as "members -list" is not designed to reference a snatpool
	  name.

       Syntax

       members 

	    * Returns the number of pool members.

       members -list 

	    * Returns a list of the pool members.

RETURN VALUE
VALID DURING
EXAMPLES
	when HTTP_REQUEST {
	    set response ""
	    append response "BigIP Server Pool Status"
	    append response "Server Pool Status"
	    append response "en"
	    append response "[clock format [clock seconds]]"
	    append response "60"
	    if { [HTTP::uri] eq "/status" } {
			foreach { selectedpool } [class get pooltest] {
				set thispool [getfield $selectedpool " " 1]
				if {  [catch {
					if { [active_members $thispool] < 1 } {
						append response ""
						append response "$thispool status"
						append response "$thispoolis DOWN"
						append response ""
					} else {
						append response ""
						append response "$thispool status"
						append response "$thispoolis UP"
						append response ""
						# Member Status Section for "UP" pools"
						append response "$thispoolmember status
" } append response "\]\]>
" # End Member Status Section } } errmsg ] } { append response "" append response "$thispool ERROR" append response "Invalid pool name: $thispool" append response "" } } append response "
" append response "
" log local0.info "$response" HTTP::respond 200 content $response "Content-Type" "text/xml" } } HINTS SEE ALSO CHANGE LOG @BIGIP-10.0.0 --First introduced the command. BIG-IP 2017-01-31 iRule(1)