Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Mobile AAA Server A.01.00 Administrator's Guide: HP-UX 11.00 and 11i version 1 > Chapter 8 Logging and Monitoring

Accounting Log Files

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

The Mobile AAA access server logs accounting messages are generated  by the foreign agents and home agents. Accounting log files have names in the following format (yyyy is the year, mm the month, dd the day when the file was generated):

diameter_accounting_yyyy-mm-dd.log

You can retrieve accounting records through the Server Manager interface or through the diamrecord command-line utility. The Accounting screen allows you to retrieve information from the accounting log files recorded by the Mobile AAA server. Selecting the Display button will display a list of users. When you select a user, the Accounting Records screen appears.

Table 8-5 Title not available (Accounting Log Files)

Option

Description

Begin (server time)

The date and time of the record to begin retrieving data from.

End (server time)

The date and time of the last record to retrieve data from.

User

Only searches for sessions that used the specified user ID.

 

diamrecord

diamrecord -a After -b Before -o Time -d Config-directory -h  -1 Filename -dm
Acct-directory -f {short|long} -fd "String" -out Filename -x {nn|+|-}{on|off}
-*attribute=regexp  -:attribute=value file . . .

Table 8-6 diamrecord command options

Option

Description

-a After

The date and time of the session to begin retrieving data from. Must be string in format of %Y-%m-%d/%H:%M:%S, for example, 1997-12-01/15:01:30 means 3:01:30pm, December 1, 1997. Hour, minute, and second may be omitted, and each default to 0. Day and month may be omitted, and each default to 1.

-b Before

The date and time of the session to begin retrieving data from. Must be string in format of %Y-%m-%d/%H:%M:%S, for example, 1997-12-01/15:01:30 means 3:01:30pm, December 1, 1997. Hour, minute, and second may be omitted, and each default to 0. Day and month may be omitted, and each default to 1.

-o Time

Selects sessions that were active at the specified date and time. Must be string in format of %Y-%m-%d/%H:%M:%S, as described for the -a and -b options.

-d Config-directory

An alternate directory name containing the Mobile AAA configuration files, instead of the default /etc/opt/aaa/diameter/acct directory. If no -d option is given, diamrecord will look for the default location. An error will be displayed if the configuration files cannot be found.

-h

Displays the help syntax

-1 Filename

Only outputs the first session record for each user listed in the specified text file. Filename must be created and lists each user, one per line. The users in this file must have a realm, because Diameter users must include their realm in the User-Name attribute.

-dm Acct-directory

An alternate directory name where the Mobile AAA accounting files are generated, instead of the default /var/opt/aaa/diameter directory. If no -d option is given, diamrecord will look for the default location. An error will be displayed if the configuration files cannot be found.

-f {short|long}

Outputs information in short or long format. In the long format each accounting record consists of several lines of output with one value per line. The short format provides a subset of accounting record values, all listed on one line per user.

-fd "String"

Specifies the string that should be used to delimit the values listed in the short format. You can use the \n escape character to have the session values listed one per line, indented after the user name. By default the values are comma-delimited.

-out Filename

Sends the output to the specified file, rather than to stdout.

-x {nn|+|-}{on|off}

{on|off} enables or disables debugging for diamrecord. Debug output is written to the same directory as the output specified by file. {nn|+|-} controls the debug level (see 21 for description of debug levels).

-*attribute=regexp

Only search for sessions that contain the attribute-value pairs that match the specified regular expression.
The Attribute-Value Pairs chapter describes the syntax for specifying an attribute-value pair and the HP-specific session attributes that appear in session records. You can find a discussion of regular expressions in the man pages for sed or awk, which you can access by typing man sed or man awk at the command line.

-:attribute=value

Only search for sessions that contain the specified attribute-value pairs. The Attribute-Value Pairs chapter describes the syntax for specifying an attribute-value pair and the HP-specific session attributes that appear in session records.

 

Messages

The accounting information that appears will be the same as the contents of Account Records.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2001-2004 Hewlett-Packard Development Company, L.P.