Step 1: Configure Trace Operations for SNMP
Purpose
Define tracing for SNMP to access more granular information about the packets sent and received through SNMP.
Action
To configure SNMP tracing operations, follow these steps:
- In configuration mode, go to the following hierarchy level:
[edit]user@R1#edit snmp- Configure trace operations:
[edit snmp]user@R1#set traceoptions flag pdu- Commit the configuration:
user@R1#commit and-quitcommit completeExiting configuration modeSample Output
user@R1>show configuration snmpview all {oid .1 include;}view system {oid system;}community public {view all;authorization read-only;}community private {view system;authorization read-write;}traceoptions {flag pdu;}What It Means
The sample output shows a configuration for SNMP that includes traceoptions. The
pduflag is configured, which results in the generation of SNMP request and response packets. The output for the tracing operation is placed into various log files in the/var/logdirectory.Protocol-specific tracing operations override any equivalent operations that you specify in the global
traceoptionsstatement. If there are no equivalent operations, they supplement the global tracing options. If you do not specify any protocol-specific tracing, the routing protocol inherits all the global tracing operations.