traceoptions {
file <files number> <size size>; flag flag <disable>;
Configure SNMP tracing options.
To specify more than one tracing operation, include multiple flag statements. The output of the tracing operations is placed into two files:
/var/log/snmpd—Errors and communications between the server and subagents
/var/log/mib2d—All interface statistics
disable—(Optional) Disable the tracing operation. You can use this option is to disable a single operation when you have defined a broad group of tracing operations, such as all.
files number—(Optional) Maximum number of trace files. When a trace file (for example, snmpd) reaches its maximum size, it is renamed snmpd.0, then snmpd.1, and so on, until the maximum number of trace files is reached. Then, the oldest trace file is overwritten.
size option.
flag—Tracing operation to perform. To specify more than one tracing operation, include multiple flag statements.
all—Trace all SNMP events.
interface-stats—Trace physical and logical interface statistics.
pdu—Trace SNMP request and response packets.
protocol-timeouts—Trace SNMP response timeouts.
routing-socket—Trace routing socket calls.
subagent—Trace subagent restarts.
timer—Trace internal timer events.
varbind-error—Trace variable binding errors.
size size—(Optional) Maximum size of each trace file, in kilobytes (KB). When a trace file (for example, snmpd) reaches its maximum size, it is renamed snmpd.0, then snmpd.1, and so on, until the maximum number of trace files is reached. Then, the oldest trace file is overwritten.
files option.
See Trace SNMP Traffic.
snmp—To view this statement in the configuration.
snmp-control—To add this statement to the configuration.