HP-UX AAA Server A.08.02 Administrator's Guide
Using the begin keyword with other commands results in an invalid-instance-specification
load-time error.
• The last keyword: If you want to specify the last instance of an attribute , use the last
keyword. Following is an example of a correctly formatted keyword instance specification:
Reply-Message[last]
NOTE: This is the default value if no keyword is specified.
• The asterisk keyword: If you want to specify all instances of an attribute, use the asterisk (*)
symbol. The following example specifies all instances of the Reply-Message attribute:
Reply-Message[*]
This format is supported only by the delete command, the log command, and the count()
attribute function. Using this format in unsupported contexts results in an
invalid-instance-specification load-time error. For more information on the delete and log
action commands, see “The delete Command” (page 302) and “The log Command”
(page 306). For more information on the count() attribute function, see “The count Attribute
Function” (page 310).
Attribute Functions
Following are the supported attribute functions:
• “The count Attribute Function” (page 310)
• “The length Attribute Function” (page 311)
• “The strcat Attribute Function” (page 311)
• “The substr Attribute Function” (page 312)
• “The tolower Attribute Function” (page 315)
• “The toupper Attribute Function” (page 315)
The following sections describe these attribute functions in detail.
The count Attribute Function
Syntax
count (<attr-spec>)
Parameters
The <attr-spec> parameter is an attribute specification. For more information on specifying
attributes, see “Attribute Specifications” (page 308). Numeric instances, last and * can be used
as arguments for the count attribute function. If no attributes are specified, last is taken as the
default.
However, you cannot use attribute functions as arguments to the count function.
Operation
Returns an integer value that indicates the number of instances, as follows:
• If <attr-spec> refers to the * instance, then count() yields the total number of
<attr-spec> instances present.
• If <attr-spec> refers to a specific instance that is present, then count() yields the value
1.
• If <attr-spec> refers to an instance that is not present, then count() yields the value 0.
310 Customizing the HP-UX AAA Server Using Policies