snmpacc: SNMP accounting data collection package

<< Previous Contents Next >>

6. Reference

6.1. Command Line Options

The following tables list the command line switches and options.

6.1.1. snmpacc

Usage: snmpacc <options>

where <options> may be:
-c <file>  Read configuration from <file>, default snmpacc.cf.
-d <dir>  Change directory to <dir> before starting.
-f  Run snmpacc in the foreground, i.e. do not detach from the terminal.
-u <user>  Change user and group IDs to those of the user <user>.
-v  Print version number and exit immediately.

6.1.2. snmpmerge

Usage: snmpmerge <options> <files>

Options:
-c <file>  Read configuration from <file>, default snmpmerge.cf.
-d <dir>  Change directory to <dir> before starting.
-e <time>  Specify latest time (in Unix time_t format) to process. May also be used as an interval specification indicating the beginning of the current interval as the latest time, e.g. 1h means data will be processed only for samples relating to times before the beginning of the current hour.
-m <name>  Only process data for the merge block named <name>.
-n  Do not update the status file.
-o  Override start time from status file. By default, the start time used for each merge is the most recent of the times specified in the -s option and the last processed time found in the status file. Note that output files are always appended to, and no check is made to ensure that there is not duplicate data already in an output file. If -o is used for recovery, one should ensure that there are no existing output files containing data for the period that is being recovered.
-s <time>  Specifies the earliest time (in Unix time_t format) for which data will be processed.
-S <file>  Specify the status file to use.

<files> is a list of wildcard file specifications specifying the files to be processed. snmpmerge has does its own filename globbing to avoid limitations in shell globbing, so wildcard specifications should be placed in quotation marks.

6.1.3. snmpctl

Usage: snmpctl <options>

Options:
-c <device>  Request reconfiguration of device <device>.
-d <dir>  Change directory to <dir> to find PID file etc.
-f  Request daemon to flush any open log files.
-r  Request daemon to flush all configured devices, return to its defaults and re-read its configuration file.
-x  Request daemon to exit with a return value of 0.
-X <code>  Request daemon to exit with a return value of <code>.
-z  Terminate daemon with a (handled) terminate signal
-Z  Terminate daemon with kill signal.

6.1.4. snmpaudit

Usage: snmpaudit <options> [<counter> [y|n]]

Options:
-d <dir>   Change directory to <dir> to find data files etc.

<counter> is the name of a counter to audit. If <counter> is not specified, snmpaudit lists all counters for which auditing is enabled.

If <counter> is specified, the following parameter enables or disables auditing on that counter. ``y'' enables auditing; ``n'' disables it. If this parameter is not specified at all, the current auditing state for the specified counter is displayed.

Note that to enable auditing on a counter, the counter must already exist in the persistent database; snmpaudit will not create a counter record.

The audit files are not deleted when auditing is disabled; similarly, old audit files are not truncated or removed when auditing is re-enabled for a given counter.
<< Previous Contents Next >>