Ad Widget

Collapse

Radius Check over SSH

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • andrea.consadori
    Member
    • Apr 2013
    • 94

    #1

    Radius Check over SSH

    Hi Everybody,
    here a quick guide on how keep track of Aruba Clearpass Radius status.

    I develop this template because Clerpass is a closed linux machine (i cannot install agent, have only basic snmp mib) so i check if radius server is ok using a linux machine with installed raclient on it.

    1. Create a template
    2. Create 3 items:
    a- Total_approved_auths
    b- Total_denied_auths
    c- Total_lost_auths

    a:
    Name: Total_approved_auths
    Type: ssh agent
    key: ssh.run[approved,mylinuxserverip,22]
    auth method: password
    username: myuser
    password: mypassword
    Executed Script:
    echo "User-Name=mytestuser,Password=mytestpassword" | radclient radiusserverip:1812 auth naspassword -c 5 -s -t 5 | tail -n 3 |head -1 | awk '{print $1 $2 $3 $4}' | tail -c 2]
    for b and c this is how to change the script:
    tail -n 3 to 2 and 1

    so you can create the trigger on it.
    Attached Files
Working...