HP-UX AAA Server A.08.02.10 Administrator's Guide HP-UX 11i v3 (T1428-90093, November 2013)
Examples
Table 91 discusses some examples illustrating the use of the modify command.
Table 91 Examples Illustrating the Use of the modify Command
ResultCommandAttributes in the Request
Reply-Message = "123"
Reply-Message = "abc"
modify Reply-Message = "abc"
Reply-Message = "123"
Reply-Message = "456"
Reply-Message = "123"
Reply-Message = "123"
modify Reply-Message =
Reply-Message[0]
Reply-Message = "123"
Reply-Message = "456"
NAS-Identifier = "wxyz"
modify NAS-Identifier =
"wxyz"
NAS-Identifier =
"abc.def.ghi"
Tunnel-Password = :2:"def"
modify Tunnel-Password =
"def"
Tunnel-Password = :2:"abc"
Tunnel-Password = :2:"ghi"
modify Tunnel-Password =
:4:"ghi"
Tunnel-Password = :2:"abc"
Reply-Message = "abc"
Tunnel-Password = :17:"abc"
modify Reply-Message =
Tunnel-Password
Reply-Message = "hello"
Tunnel-Password = :17:"abc"
Reply-Message = "hello"
Tunnel-Password = :17:"hello"
modify Tunnel-Password =
Reply-Message
Reply-Message = "hello"
Tunnel-Password = :17:"abc"
NAS-Port = 2
Reply-Message = "abc"
Reply-Message = "def"
modify NAS-Port = count(
Reply-Message[*] )
NAS-Port = 7
Reply-Message = "abc"
Reply-Message = "def"
Reply-Message = "def"
Reply-Message = "def"
modify Reply-Message[0] =
Reply-Message[1]
Reply-Message = "abc"
Reply-Message = "def"
Idle-Timeout = 5
Xvalue = 20
Session-Timeout = 100
modify Idle-Timeout =
Session-Timeout / Xvalue[0]
Idle-Timeout = 10
Xvalue = 20
Session-Timeout = 100
Nas-Port = 2
Xvalue = 7
modify Xvalue = Xvalue +
Nas-Port - 5
Nas-Port = 2
Xvalue = 10
The exit Command
Syntax
exit "<event-name>"
Parameters
The <event-name> parameter must be a quoted string and must specify an event that is defined.
There are a number of predefined events. You can also define additional events in the FSM file
using the %event<name> syntax. For more information on FSM events, see “Event Names ”
(page 293).
NOTE: Event names are case-insensitive (MyEvent is considered identical with MYEVENT).
Operation
The exit command terminates the evaluation of the policy and returns the named event to the
FSM. The use of an undefined event name results in an undefined-event load-time error.
306 Customizing the HP-UX AAA Server Using Policies