traceoptions
Syntax
traceoptions { file sizesizefilesnumber;flagflag;}Hierarchy Level
[edit snmp]Description
The output of the tracing operations is placed into log files in the
/var/logdirectory. Each log file is named after the SNMP agent that generates it. Currently, the following logs are created in the/var/logdirectory when thetraceoptionsstatement is used:Options
filesnumber—(Optional) Maximum number of trace files per SNMP subagent. When a trace file (for example,snmpd) reaches its maximum size, it is archived by being renamed tosnmpd.0. The previoussnmpd.1is renamed tosnmpd.2, and so on. The oldest archived file is deleted.Range: 2 through 1000 files
Default: 10 files
flagflag—Tracing operation to perform. To specify more than one tracing operation, include multipleflagstatements:
all—Trace all SNMP eventsgeneral—Trace general eventsinterface-stats—Trace physical and logical interface statisticsnonvolatile-sets—Trace nonvolatile SNMP set request handlingpdu—Trace SNMP request and response packetsprotocol-timeouts—Trace SNMP response timeoutsrouting-socket—Trace routing socket callssubagent—Trace subagent restartstimer—Trace internal timer eventsvarbind-error—Trace variable binding errors
sizesize—(Optional) Maximum size, in kilobytes (KB), of each trace file before it is closed and archived.Range: 1 KB through the maximum file size supported on your system
Default: 1000 KBUsage Guidelines
Required Privilege Level
snmp—To view this statement in the configuration.
snmp-control—To add this statement to the configuration.