[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

11.3 radzap

radzap searches the Radius accounting database for matching login records and closes them.

At least one of the options ‘-n’, ‘-p’, or the user name must be specified. If they are used in conjunction, they are taken as if joined by the logical AND operation.

radzap operates in two modes: silent and confirm. The silent mode is enabled by default. When run in this mode, radzap deletes every record that matches the search conditions given.

In confirm mode radzap will ask for a confirmation before zapping each matching record. Any line beginning with a ‘y’ is taken as a positive response; any other line is taken as a negative response.

The confirm mode is toggled by the command line option ‘-c’.

Syntax

 
radzap [options] [username]

Options are:

-c
--confirm

Enable confirm mode.

-d dir
--directory dir

Specify alternate configuration directory. Default is ‘/usr/local/etc/raddb’.

-f file
--file file

Operate on file instead of the default ‘RADLOG/radutmp’.

-l dir
--log-directory dir

Search the file ‘radutmp’ in the given directory.

This option is deprecated. It is currently retained for backward compatibility with previous versions.

-q
--quiet

Disable confirm mode.

-h
--help

Display a short help summary, and exit.

-n name
--nas name

Specify NAS name to zap user from.

-p port
--port port

Specify the port number of the session to be zapped. The port number can be specified either in its full form, e.g. radzap -p S02, or in its short form, e.g. radzap -p 2.


This document was generated by Sergey Poznyakoff on December, 6 2008 using texi2html 1.78.