HP-UX AAA Server A.08.01 administrator's guide (T1428-90072, May 2010)

Table Of Contents
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 414) and
“The log Command” (page 419). For more information on the count() attribute
function, see “The count Attribute Function” (page 424).
Attribute Functions
Following are the supported attribute functions:
“The count Attribute Function” (page 424)
“The length Attribute Function” (page 424)
“The strcat Attribute Function” (page 425)
“The substr Attribute Function” (page 426)
“The tolower Attribute Function” (page 429)
“The toupper Attribute Function” (page 430)
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 422). 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.
The length Attribute Function
Syntax
length (<attr-spec>)
424 Customizing the HP-UX AAA Server Using Policies