HP-UX AAA Server A.08.00.01 Administrator's Guide
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 415). 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>)
Parameters
The <attr-spec> parameter is an attribute specification. For more information on
specifying attributes, see “Attribute Specifications” (page 415).
Operation
Returns an integer value that indicates the number of characters in the string attribute.
For a tag-str attribute, the tag octet is not included. If <attr-spec> refers to an instance
that is not present, then a no-such-instance run-time error is generated.
The substr Attribute Function
The substr function can be used with the following keywords:
• “The offset Keyword” (page 419)
• “The before Keyword” (page 420)
• “The after Keyword” (page 421)
The following sections describe these keywords in detail.
418 Customizing the HP-UX AAA Server Using Policies