[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nufw-devel] nuauth_command command line mode patch.
From: |
Glen Ogilvie |
Subject: |
[Nufw-devel] nuauth_command command line mode patch. |
Date: |
Sun, 28 Mar 2010 19:15:09 +1300 (NZDT) |
Hi,
I thought it would be nice to be able to use nuauth_command from the command
line.
The attached patch allows nuauth_command to be called with options, like
nuauth_command "--display threads" --version
or
nuauth_command --help
Which will display the following:
For interactive mode, run with no arguments
Usage: /usr/bin/nuauth_command [OPTION]...
Valid options are:
--version
--users
"--refresh cache"
"--refresh crl"
"--disconnect "
--uptime
--reload
--help
--quit
"--display debug_level"
"--display debug_areas"
--debug_level
"--display threads"
--debug_areas
--firewalls
"--packets count"
"--reload periods"
The options are based on the COMMANDS_COMPLETION array, defined in
nuauth_command/client.py
so as new options are added, this code should not have to be changed.
Hopefully this can be included.
Regards
--
Glen Ogilvie
Open Systems Specialists
Level 1, 162 Grafton Road
http://www.oss.co.nz/
Ph: +64 9 984 3000
Mobile: +64 21 684 146
GPG Key: ACED9C17
nufw-2.2.22-nuauth_command-cmdlinemode.GO.patch
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Nufw-devel] nuauth_command command line mode patch.,
Glen Ogilvie <=