Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

radwho(1) [centos man page]

RADWHO(1)							 FreeRADIUS Daemon							 RADWHO(1)

NAME
radwho - show online users SYNOPSIS
radwho [-c] [-d raddb_directory] [-F radutmp_file] [-i] [-n] [-N nas_ip_address] [-p] [-P nas_port] [-r] [-R] [-s] [-S] [-u user] [-U user] [-Z] DESCRIPTION
The FreeRADIUS server can be configured to maintain an active session database in a file called radutmp. This utility shows the content of that session database. OPTIONS
-c Shows caller ID (if available) instead of the full name. -d raddb_directory The directory that contains the RADIUS configuration files. Defaults to /etc/raddb. -F radutmp_file The file that contains the radutmp file. If this is specified, -d is not necessary. -i Shows the session ID instead of the full name. -n Normally radwho looks up the username in the systems password file, and shows the full username as well. The -n flags prevents this. -N nas_ip_address Show only those entries which match the given NAS IP address. -p Adds an extra column for the port type - I for ISDN, A for Analog. -P nas_port Show only those entries which match the given NAS port. -r Outputs all data in raw format - no headers, no formatting, fields are comma-separated. -R Output all data in RADIUS attribute format. All fields are printed. -s Show full name. -S Hide shell users. Doesn't show the entries for users that do not have a SLIP or PPP session. -u user Show only those entries which match the given username (case insensitive). -U user Show only those entries which match the given username (case sensitive). -Z When combined with -R, prints out the contents of an Accounting-Request packet which can be passed to radclient, in order to "zap" that users session from radutmp. For example, $ radwho -ZRN 10.0.0.1 | radclient -f - radius.example.net acct testing123 will result in all an Accounting-Request packet being sent to the RADIUS server, which tells the server that the NAS rebooted. i.e. It "zaps" all of the users on that NAS. To "zap" one user, specifiy NAS, username, and NAS port: $ radwho -ZRN 10.0.0.1 -u user -P 10 | radclient -f - radius.example.net acct testing123 Other combinations are also possible. SEE ALSO
radiusd(8), radclient(1), radiusd.conf(5). AUTHOR
Miquel van Smoorenburg, miquels@cistron.nl. 17 Feb 2013 RADWHO(1)

Check Out this Related Man Page

clients.conf(5) 					  FreeRADIUS client configuration					   clients.conf(5)

NAME
clients.conf - FreeRADIUS client configuration DESCRIPTION
The clients.conf file contains definitions of RADIUS clients. The information in this file overrides any information provided in the deprecated clients(5) and naslist(5) files. The file format is the same as that used for radiusd.conf. See radiusd.conf(5) for more details. Each RADIUS client entry has the following basic form: client <short-name> { <attribute> = <value> } ATTRIBUTES
The attributes that can appear in a client section are listed below. Required attributes are labelled as such. All other attributes are optional. ipaddr [Required] The IP address of the client. For IPv6, use "ipv6addr" secret [Required] The RADIUS shared secret used for communication between the client/NAS and the RADIUS server. shortname [optional] A short alias that can be used in place of the IP address or fully qualified hostname provided in the first line of the section. nastype The nastype attribute is used to tell the checkrad.pl script which NAS-specific method it should use when checking simultaneous use. The following values are currently recognized: cisco computone livingston max40xx multitech netserver pathras patton portslave tc usrhiper other login Reserved for future use. password Reserved for future use. EXAMPLES
client localhost { ipaddr = 127.0.0.1 secret = testing123 shortname = localhost nastype = other } This adds a client for the loopback address. This is useful in testing the server locally, for example with radclient(1). client private-network-1 { ipaddr = 192.168.0.0 netmask = 24 secret = testing123-1 shortname = private-network-1 } This entry represents any client from the 192.168.0.0/24 network. The old-style format from 1.x is still accepted by the server, but that form is deprecated. FILES
/etc/raddb/clients.conf /etc/raddb/radiusd.conf SEE ALSO
radiusd(8), radiusd.conf(5), clients(5), naslist(5) AUTHOR
FreeRADIUS is authored by the FreeRADIUS team. http://freeradius.org/ 13 June 2005 clients.conf(5)
Man Page