ltm rule command DIAMETER stateΒΆ

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

DIAMETER::state
       Returns the current state of the Diameter peer\'s connection.

SYNOPSIS
       DIAMETER::state

DESCRIPTION
       This iRule command returns the current state of the Diameter peer\'s connection, as a string. There are five
       possible states:
	 * CLOSED - The connection is down
	 * WAIT_ICEA - still waiting for the initial CEA
	 * ROPEN - The connection has been reopened
	 * IOPEN - The connection is open for the first time
	 * CLOSING - The connection will soon be down

       Syntax DIAMETER::state

RETURN VALUE
VALID DURING
       DIAMETER_INGRESS, MR_INGRESS

EXAMPLES
	when DIAMETER_INGRESS {
	    if { [DIAMETER::state] == "ROPEN" } {
		log local0. "Received a DIAMETER message via a reopened connection"
	    }
	}

HINTS
SEE ALSO
CHANGE LOG
       @BIGIP-11.3.0 --First introduced the command.

BIG-IP						      2020-06-23					     iRule(1)