1. The PortMaster (accounting client) sends an accounting-request packet containing the record of an event to the accounting server. The record is described by the values of RADIUS attributes included in the packet.
For example, when a user is authenticated and connected, the Acct-Status-Type attribute has a value indicating that the request marks the beginning of user service. The RADIUS accounting server logs this event as a start accounting record. The records are recorded in a file called /usr/adm/radacct/ portmastername/detail on the UNIX host.
Note ¯ RADIUS automatically creates the portmastername directory and the detail file. If the IP address of a PortMaster client cannot be resolved to a hostname, then the name of the directory is the IP address of the PortMaster rather than its name
When the user's connection ends, the Acct-Status-Type attribute has a value indicating that the request marks the end of user service. The RADIUS accounting server records this as a stop accounting record. The stop record contains all the information in the start record plus additional information that describes what occurred during that session, such as Acct-Session-Time.
2. The accounting server sends an accounting-response packet back to the PortMaster to acknowledge receipt of the request. The server must send back an acknowledgment when it records the request.
3. If the PortMaster does not receive a response, it continues to send accounting-requests until it receives a response.
A backoff algorithm is used to determine the delay between accounting-requests if an accounting-response is not received.
4. The PortMaster records the number of seconds that have passed between the event and the current attempt to send the record; this number is the Acct-Delay-Time value. As additional time passes before an accounting-response is received, the Acct-Delay-Time is updated.
RADIUS accounting data continues to grow unless you archive this information on a regular schedule--weekly or monthly, for example. For typical installations, allocate 50MB per 1000 users per month. If you archive accounting records on the server, you must allocate more storage than this minimum. Keep in mind that allocating too much space is preferable to allocating too little; your usage can vary.
For example, if you have 1000 users, one port for every 10 users, an average connection time per user of 1 hour, and all ports in use around the clock, one month of logs would require 50MB of disk space:
700 bytes/session * 1000 users * 1 port/10 users * 1 session/hour * 24 hours/day * 31 days/month
1. Log in to the selected accounting server as root.
2. Create a radacct directory within the /usr/adm directory and grant full access only to root users:
# Vendor-Specific attributes use the SMI Network Management Private
# Enterprise Code from the "Assigned Numbers" RFC
# Livingston Vendor-Specific Attributes (requires ComOS 3.8 and RADIUS 2.1)
accounting: client 192.168.1.1/1025 sent accounting-request with invalid request authenticator
Acct-Terminate-Cause = Host-Request
Note ¯ For more information on accounting attributes, see "Accounting Attributes" on page 8-6.
Connect-Info = "33600 LAPM/V42BIS"
Calling-Station-Id = "5105550285"
Framed-IP-Address = 192.168.32.35
Connect-Info = "33600 LAPM/V42BIS"
Calling-Station-Id = "5105550285"
Acct-Terminate-Cause = User-Request
Framed-IP-Address = 192.168.32.35
Note ¯ Examples of Perl scripts to process the RADIUS accounting logs are available at the Lucent InterNetworking Systems FTP site at ftp://ftp.livingston.com/pub/le/radius/ .