[
Contents]
[
Prev]
[
Next]
[
Index]
[
Report an Error]
Configuring the Trace Operations
By default, only important activities are logged.
You can specify which trace operations are to be logged by including
the following flag statement (with one or more tracing flags)
at the [edit snmp traceoptions] hierarchy level:
- [edit snmp traceoptions]
- flag {
- all;
- configuration;
- database;
- events;
- general;
- interface-stats;
- nonvolatile-sets;
- pdu;
- policy:
- protocol-timeouts;
- routing-socket;
- server;
- subagent;
- timer;
- varbind-error;
- }
Table 9 describes the meaning of the SNMP tracing flags.
Table 9: SNMP Tracing
Flags
|
Flag
|
Description
|
Default Setting
|
|
all
|
Log all operations.
|
Off
|
|
configuration
|
Log reading of configuration at the [edit snmp] hierarchy level.
|
Off
|
|
database
|
Log events involving storage and retrieval in events database.
|
Off
|
|
events
|
Log important events.
|
Off
|
|
general
|
Log general events.
|
Off
|
|
interface-stats
|
Log physical and logical interface statistics.
|
Off
|
|
nonvolatile-set
|
Log nonvolatile SNMP set request handling.
|
Off
|
|
pdu
|
Log SNMP request and response packets.
|
Off
|
|
policy
|
Log policy processing.
|
Off
|
|
protocol-timeouts
|
Log SNMP response timeouts.
|
Off
|
|
routing-socket
|
Log routing socket calls.
|
Off
|
|
server
|
Log communication with processes that are generating events.
|
Off
|
|
subagent
|
Log subagent restarts.
|
Off
|
|
timer
|
Log internal timer events.
|
Off
|
|
varbind-error
|
Log variable binding errors.
|
Off
|
To display the end of the log for an agent, issue
the show log agentd | last operational
mode command:
- [edit]
- user@host# run show log agentd | last
where agent is the
name of an SNMP agent.
[
Contents]
[
Prev]
[
Next]
[
Index]
[
Report an Error]