[FreeRADIUS-Statistics-Type to list home agent server and general question about status server]
Hello, Here's two questions about radius statistics (status server) 1. By looking at the freeradius-snmp.pl from sky networks, I notice something : - It uses FreeRADIUS-Statistics-Type = 63, and I haven't found documentation about it in status virtual server. By the way, it allows to list radius client ip without knowing them by incrementing the Client Number, which is great. echo "Message-Authenticator = 0xd9380c451e4bf78659144474b673b931, FreeRADIUS-Statistics-Type = 63, FreeRADIUS-Stats-Client-Number = 4" | radclient 127.0.0.1:18120 status adminsecret Then is there a FreeRADIUS-Statistics-Type number to do the same for home server IP (not the 131 one) ? # All packets for a home server IP / port # FreeRADIUS-Statistics-Type = 131 # FreeRADIUS-Stats-Server-IP-Address = 192.168.1.2 # FreeRADIUS-Stats-Server-Port = 1812 2. Another question about specific query for specific client IP www1# echo "Message-Authenticator = 0xd9380c451e4bf78659144474b673b931, FreeRADIUS-Statistics-Type = 35, FreeRADIUS-Stats-Client-IP-Address = X, FreeRADIUS-Stats-Server-IP-Address = Y, FreeRADIUS-Stats-Server-Port = 1812" | radclient 127.0.0.1:18120 status adminsecret Received response ID 169, code 2, length = 464 FreeRADIUS-Total-Access-Requests = 398 FreeRADIUS-Total-Access-Accepts = 6322 FreeRADIUS-Total-Access-Rejects = 0 FreeRADIUS-Total-Access-Challenges = 0 FreeRADIUS-Total-Auth-Responses = 6322 FreeRADIUS-Total-Auth-Duplicate-Requests = 0 FreeRADIUS-Total-Auth-Malformed-Requests = 0 FreeRADIUS-Total-Auth-Invalid-Requests = 0 FreeRADIUS-Total-Auth-Dropped-Requests = 0 FreeRADIUS-Total-Auth-Unknown-Types = 0 FreeRADIUS-Total-Accounting-Requests = 12 FreeRADIUS-Total-Accounting-Responses = 24 FreeRADIUS-Total-Acct-Duplicate-Requests = 0 FreeRADIUS-Total-Acct-Malformed-Requests = 0 FreeRADIUS-Total-Acct-Invalid-Requests = 0 FreeRADIUS-Total-Acct-Dropped-Requests = 0 FreeRADIUS-Total-Acct-Unknown-Types = 0 FreeRADIUS-Stats-Client-IP-Address = X FreeRADIUS-Stats-Server-IP-Address = Y FreeRADIUS-Stats-Server-Port = 1812 FreeRADIUS-Total-Access-Requests = 4 FreeRADIUS-Total-Access-Accepts = 4 FreeRADIUS-Total-Access-Rejects = 0 FreeRADIUS-Total-Access-Challenges = 0 FreeRADIUS-Total-Auth-Responses = 4 FreeRADIUS-Total-Auth-Duplicate-Requests = 0 FreeRADIUS-Total-Auth-Malformed-Requests = 0 FreeRADIUS-Total-Auth-Invalid-Requests = 0 FreeRADIUS-Total-Auth-Dropped-Requests = 0 FreeRADIUS-Total-Auth-Unknown-Types = 0 FreeRADIUS-Total-Accounting-Requests = 7 FreeRADIUS-Total-Accounting-Responses = 7 FreeRADIUS-Total-Acct-Duplicate-Requests = 0 FreeRADIUS-Total-Acct-Malformed-Requests = 0 FreeRADIUS-Total-Acct-Invalid-Requests = 0 FreeRADIUS-Total-Acct-Dropped-Requests = 0 FreeRADIUS-Total-Acct-Unknown-Types = 0 Why does it gives first "global" statistics, and then the statistics we want (eg stat for client) ? Couldn't we have just the one we've done the query for ? Thanx Thomas
Thomas Fagart wrote:
Hello,
Here's two questions about radius statistics (status server)
1. By looking at the freeradius-snmp.pl from sky networks, I notice something : - It uses FreeRADIUS-Statistics-Type = 63, and I haven't found documentation about it in status virtual server.
The flags are a bit mask. See share/dictionary.freeradius.
By the way, it allows to list radius client ip without knowing them by incrementing the Client Number, which is great.
Yup.
Then is there a FreeRADIUS-Statistics-Type number to do the same for home server IP (not the 131 one) ?
Nope.
2. Another question about specific query for specific client IP ... Why does it gives first "global" statistics, and then the statistics we want (eg stat for client) ? Couldn't we have just the one we've done the query for ?
Sure. Send a patch. See also "radmin". It will print out more detailed statistics, including lists of home servers. Alan DeKok.
participants (2)
-
Alan DeKok -
Thomas Fagart