ltm rule command peerΒΆ

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



peer
       Causes the specified iRule commands to be evaluated under the peer-side
       context.

SYNOPSIS
       peer ANY_CHARS

DESCRIPTION
       Causes the specified iRule commands to be evaluated under the peer-side
       context.

RETURN VALUE
VALID DURING
       ANY_EVENT

EXAMPLES
	when SERVER_CONNECTED {
	  peer { TCP::collect }
	}
	when CLIENT_DATA {
	  if { [TCP::payload] starts_with "EHLO" } {
	    TCP::respond "500 5.3.3 Unrecognized command\r\n"
	    set len [TCP::payload length]
	    TCP::payload replace 0 $len ""
	    TCP::release
	  } else {
	    TCP::release
	    TCP::collect
	  }
	}

HINTS
SEE ALSO
CHANGE LOG
       @BIGIP-9.0.0 --First introduced



BIG-IP				  2017-01-31			      iRule(1)