oobctl — tool for creating and querying file oob database
oobctl
[-rv
] [-d
delim
] [-g
gdelim
] { -t
table-fn
| -f
http-proxy-cfg-fn
}
Program oobctl can be used for creating, viewing and changing the OOB table.
The OOB file name is specified either by option -t
(the file name of the OOB file) or by option -f
(the
OOB file name is taken from the http-proxy configuraiton file).
If the file does not exist yet, it can be created (option
-r
).
The program is interactive, the following commands can be used:
?
[username
|
IP
]
prints the current contents of the OOB table (with particular filter)
0
clears the OOB table
+ IP user group1 group2 ...
Adds/replaces a record to/in the OOB table
- { username
|
IP
}
removes the (newest) record from the OOB table
EOF
the program exits
-f
http-proxy-fn
The low level configuration file for http-proxy. The file name of the OOB table is taken from the configuration, or the default value is used.
-t
table-fn
The file name of the OOB table to be used
-d
delim
The field delimiter for the output
-g
gdelim
The delimitter for groups
-v
print verbose information about the internals of the table to stdout
-r
Recreate the table if necessary. The table is
created if it does not exist. The table is recreated
if the parameters from the configuration do not match
the parametrs of the existing table (the following
parameters are checked: max-users
,
max-groups
and
max-sessions
).
It is only safe to create the table when using
the configuration file as the file name (option
-f
).