HP-UX AAA Server A.08.02.10 Administrator's Guide HP-UX 11i v3 (T1428-90093, November 2013)
Table 88 Examples Illustrating the Use of the delete Command (continued)
ResultCommandAttributes in the Request
NAS-Port = 2
Reply-Message = " Hello,
world!"
delete NAS-IP-Address[0]
NAS-Port = 2
Reply-Message = "Hello,
world!"
NAS-Port = 2
Reply-Message = " Hello,
world!"
delete NAS-IP-Address[last]
NAS-Port = 2
Reply-Message = "Hello,
world!"
The insert Command
Syntax
insert <attr-spec> = <value-expr>
Parameters
• <attr-spec>: The <attr-spec> parameter is an attribute specification. For more
information on specifying attributes, see “Attribute Specifications” (page 309).
• <value-expr>: The <value-expr> parameter is a value expression. It can be a value
specification, an attribute specification, an arithmetic expression, or an attribute function. For
more information, see “Attribute Specifications” (page 309), “Arithmetic Expressions” (page 317),
“Value Types” (page 316), and “Attribute Functions” (page 311).
NOTE: The types of <attr-spec> and <value-spec> must be compatible. For more
information, see “Type Compatibility” (page 320).
The instance location specified by <attr-spec> indicates the desired target location for the
inserted instance. The algorithm used is “final opportunity", as opposed to "earliest opportunity".
This implies that inserting "last" is the same as inserting at the end, and instance n occurs just
before the already-present instance n (or the end if instance n is not already present).
Operation
The insert command inserts <attr-spec> with <value-expr> into the request. Table 89
discusses the behavior of the insert command in various scenarios.
Table 89 Behavior of the insert Command in Various Scenarios
ThenIf
the attribute is inserted at the end of the listThe <attr-spec> parameter refers to an instance that is
not present
the tag for the inserted attribute is set to 0The <attr-spec> parameter refers to a tagged attribute
(tag-int or tag-str) and <value-spec> is not a tagged
value
the tag is ignoredThe <attr-spec> parameter refers to an attribute that is
not tagged and <value-spec> is a tagged value
Examples
Table 90 discusses some examples illustrating the use of the insert command.
Table 90 Examples Illustrating the Use of the insert Command
ResultCommandAttributes in the Request
NAS-Port = 2
Reply-Message = "message#1"
insert Reply-Message =
Reply-Message
NAS-Port = 2
Reply-Message = "message#1"
Reply-Message = "message#2"
304 Customizing the HP-UX AAA Server Using Policies