Configuring Tracing of SNMP Activity (NSM Procedure)

You can configure the traceoptions feature to track the activities of SNMP agents and record the information in log files. The logged error descriptions provide information you can use to solve problems faster. If this feature is not configured, JUNOS Software does not trace SNMP activities. The default tracing behavior is outlined below:

To configure SNMP tracing activity in NSM:

  1. In the navigation tree, select Device Manager > Devices.
  2. In the Devices list, double-click the device to select it.
  3. Click the Configuration tab.
  4. In the configuration tree, expand SNMP.
  5. Select Traceoptions.
  6. Enter the parameters as specified in Table 172.
  7. Click one:
    • OK—To save the changes.
    • Cancel—To cancel the modifications.
    • Apply—To apply the SNMP settings.

Note: After you make changes to a device configuration, you must push that updated device configuration to the physical security device for those changes to take effect. You can update multiple devices at one time. See the Updating Devices section in the Network and Security Manager Administration Guide for more information.

Table 172: Configuring Traceoptions Fields

Option

Function

Your Action

Comment

Specifies the comment for the tracing configuration.

Enter a comment.

No Remote Trace

Specify whether or not this tracing configuration is written on the remote host.

JUNOS Software supports system-wide remote tracing, by which traces are written to files on the remote host To override the system-wide remote tracing configuration for a particular process, When the No Remote Trace check box is enabled, the process does local tracing.

Select the No Remote Trace check box to force local tracing for this configuration.

File

Specifies the limits on the number and size of trace files.

  1. Expand the Traceoptions tree and select File.
  2. Configure the following to create and define a tracing file entry:
    • Comment—Enter a comment for the tracing file.
    • Size—Specify the size limit for the trace file.
    • Files—Specify the maximum trace file versions to be created.
    • Access—Specify access permissions for the tracing file:

      • None
      • world-readable—Allows any user to read all log files.
      • no-world-readable—Allows log files to be accessed only by the user who configures the tracing operation.
    • Match—Specify a regular expression (regex) to be matched in the trace operation output.

Flag

Specifies which trace operations are to be logged. If this is not configured, only important activities are logged by default.

  1. Expand the Traceoptions tree and select Flag.
  2. Click the New button or select a tracing flag and click the Edit button.
  3. Configure the following to create and define a tracing flag entry:
    • Name—Specify the tracing flag to be used:

      • timer—Log internally generated events.
      • protocol-timeouts—Log SNMP response timeouts.
      • pdu—Log SNMP request and response packets.
      • varbind-error—Log variable binding errors.
      • routing-socket —Log routing socket calls.
      • interface-stats—Log physical and logical interface statistics.
      • subagent—Log subagent restarts.
      • general—Log general events.
      • nonvolatile-sets—Log nonvolatile SNMP set request handling.
      • all—Log all SNMP events.
    • Comment—Enter a comment for the tracing flag.

Related Documentation