LB::status

Description

Returns the status of a node address or pool member. Possible status values are up, down, session_enabled, and session_disabled. If you supply no arguments, returns the status of the currently-selected pool member.

Syntax

LB::status
LB::status node <address>
LB::status pool <pool name> member <IP address> <port>
LB::status <up | down | session_enabled | session_disabled>
LB::status  node <address> <up | down | session_enabled | session_disabled>
LB::status  pool <pool name> member <address> <port> <up | down | session_enabled | session_disabled>

Slight difference for GTM syntax, rather than node, use vs:
LB::status <vs> [<server_name>] <vs_name> [up | down | session_enabled | session_disabled]

#for v12, adding QTYPE for pool
LB::status <pool>  [QTYPE] <poolName> [member <memberName>] [up down session_disabled session_enabled]

LB::status

  • Returns the status of the currently-selected node (after LB_SELECTED event only). Possible values are: up | down | session_enabled | session_disabled

LB::status node <IP address>

  • Returns the status of the node with the specified IP address. Possible values are: up | down | session_enabled | session_disabled

LB::status pool <pool name> member <IP address> <port>

  • Returns the status of the specified pool member. Possible values are: up | down | session_enabled | session_disabled

LB::status <up | down | session_enabled | session_disabled>

  • Returns TRUE if the status of the currently-selected node matches the specified status argument.

LB::status node <address> <up | down | session_enabled | session_disabled>

  • Returns TRUE if the status of the specified node matches the specified status argument.

LB::status pool <pool name> member <address> <port> <up | down | session_enabled | session_disabled>

  • Returns TRUE if the status of the specified pool member matches the specified argument. (This syntax doesn’t seem to be working as expected in 9.2.3 at least… use alternate syntax in Example below)

Examples

when LB_FAILED {
  if { [LB::status pool $poolname member $ip $port] eq "down" } {
    log "Server $ip $port down!"
  }
}