IP::server_addr¶
Description¶
Returns the server’s (node’s) IP address once a serverside connection
has been established. This command is equivalent to the command
serverside { IP::remote_addr } and to the BIG-IP 4.X variable
server_addr. The command returns 0 if the serverside connection has
not been made.
In BIG-IP 10.x with route domains enabled this command returns the
server’s (node’s) address once the serverside connection is
established in the x.x.x.x%rd if the server is in any non-default
route domains else it returns just the IPv4 address as expected.
Examples¶
when SERVER_CONNECTED {
log local0. "Node IP address: [IP::server_addr]"
}
In BIG-IP 10.x this returns only the IPv4 portion of the address regardless of the route domain
when SERVER_CONNECTED {
log local0. "Node IP address: [getfield [IP::server_addr] "%" 1"
}