ltm rule command procΒΆ

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



proc
       Define an iRule proc.

SYNOPSIS
       proc NAME ARGUMENT_N_DEFAULT PROC_SCRIPT

DESCRIPTION
       Define an iRule proc which is called by iRule command call.

       The syntax is same as basic TCL proc command.

RETURN VALUE
       Returns the value in the return command, if any, in the proc script.

VALID DURING
       Cannot be within any event.

EXAMPLES
	proc logme msg {
	    log local0. $msg
	}

	when CLIENT_ACCEPTED {
	    call logme "Coming to CLIENT_ACCEPTED"
	}

	when CLIENT_DATA {
	    call logme "Coming to CLIENT_DATA"
	}

HINTS
SEE ALSO
       command call

CHANGE LOG
       @BIGIP-11.4.0 --First introduced the command.



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