HP-UX AAA Server A.08.00.01 Administrator's Guide

Accounting Log Based on Attribute Value
You can write accounting log to different log files, based on the RADIUS attribute value
in the RADIUS accounting-request. To write accounting log to a different log file, you
must modify the /etc/opt/aaa/log.config and /etc/opt/aaa/radius.fsm
files.
To write accounting log to different log files, complete the following steps:
1. Modify the /etc/opt/aaa/log.config file by replacing the following code:
stream *default* {
aatv log_v2_0
buffer 1
close on
filename session.%Y-%m-%d.log
update 900
wrap 3
}
end
with the code shown below:
# log_by_attribute logging configuration
# stream *default* {
aatv LOG_BY_ATTRIBUTE
}
stream Called-Station-Id::*default* {
aatv log_acct
buffer 1
close on
filename logotherattr.%Y-%m-%d.log
update 900
wrap 3
}
stream Called-Station-Id::12345 {
aatv log_acct
buffer 1
close on
filename logbyattr.%Y-%m-%d.log
update 900
wrap 3
}
end
2. Modify the radius.fsm file by changing all the lines in Acctlog that reference
the LOG AATV as in the following.
*.*.ACCT_START LOG_BY_ATTRIBUTE ReplyHold xstring="Called-Station-Id"
*.*.ACCT_STOP LOG_BY_ATTRIBUTE ReplyHold xstring="Called-Station-Id"
3. HUP or stop and start the server.
4. Send accounting Start and/or Stop request with Called-Station-Id attribute.
You can now see the following file: /var/opt/aaa/acct/
logbyattr.2005-05-16.log
The log.config File 535