Tracing SNMP Activity
To trace SNMP activity, include the
traceoptionsstatement at the[edit snmp]hierarchy level:[edit snmp]traceoptions {file sizesizefilesnumber;flagflag;}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:You can use the
filestatement to control log file generation. Thesizestatement limits the size (in kilobytes) of each log file before it is closed and compressed and a new file opened in its place. Thefilesstatement limits the total number of log files archived for each SNMP agent.You can specify one or more of the following values for the
flagoption:
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