Monitoring, Management & Location Tracking

Troubleshooting RADIUS Accounting Problems with radclient

As a troubleshooting tool, RADIUS Accounting packets can be generated from the AMP command line by running the following command:

# /usr/bin/radclient -f /tmp/rad -c 1 -r 2 -t 1 -x 127.0.0.1 acct password

Note: for the above command to work, you must have completed the following 2 steps:

1. Under AMP Setup->Radius Accounting, add a client with IP address 127.0.0.1 and shared secret password.
2. Create the file /tmp/rad using nano (or your favorite text editor) and copy/paste the following text: 

Acct-Status-Type=Start
Acct-Session-Id="testing"
NAS-IP-Address=test
Client-IP-Address=test
Acct-Unique-Session-Id="test"

Results: 

If the packet is successful and you have enabled detailed packet logging (see KB article How to enable detailed RADIUS accounting packet logging), you should see a successful log entry in /var/log/radius/radacct/127.0.0.1/detail.

If the packet is rejected, you will see a log entry in /var/log/radius/radius.log with more details such as:

Version history
Revision #:
1 of 1
Last update:
‎06-06-2014 04:29 PM
Updated by:
 
Contributors
Search Airheads
Showing results for 
Search instead for 
Did you mean: 
Is this a frequent problem?

Request an official Aruba knowledge base article to be written by our experts.