HP-UX AAA Server A.08.02.10 Administrator's Guide HP-UX 11i v3 (T1428-90093, November 2013)

The log Command
Syntax
log "<log-level>" "<log-message>
log "<log-level>" "<log-message>, <attr-spec>
log "<log-level>" "<log-message>, <attr-spec>, <attr-spec>, ...<attr-spec>
Parameters
<log-level>: The <log-level> parameter must be a quoted string and a log-level type.
Following are the valid log levels:
ERROR
CRITICAL
ALERT
WARNING
INFO
NOTE: The <log-level> parameter is case-insensitive. For example, ERROR is considered
identical with Error.
<log-message>: The <log-message> parameter must be a quoted string. You can use
multiple instances of <attr-spec> and cause all named instances to be reported in the log
file. For more information on attribute specifications, see Attribute Specifications (page 309).
If <attr-spec> refers to an instance that is not present, this is indicated in the log file output.
Operation
Executing the log command results in a message being written to the log file. When attributes are
specified, they are appended to the log message. All log output lines include the name of the
decision file and the line location of the log command that generated the message. All log output
is generated using the standard logging functions that prepend a timestamp to the output line.
Examples
Log Warning This user should not come in through this NAS,
User-Name,
NAS-IP-Address
Results in the following logs in the logfile:
<date>: decisionfile://request-ingress.grp(line 100, character 1):
This user should not come in through this NAS,
RADIUS:User-Name[last]="test_user",
RADIUS:NAS-IP-Address[last]=15.146.225.145
The if Command
Syntax
if (<bool-expr> {<action-list1>} else {<action-list2>}
if (<bool-expr> {<action-list>}
Parameters
<bool-expr>: The <bool-expr> parameter is a Boolean expression.
<actionlist1> and <actionlist2>: The <actionlist1> and <actionlist2> are
sequences of action commands that can include additional if commands, nested to an
Defining a Policy in a Decision File 307