Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Guide That Contains This Content
[+] Expand All
[-] Collapse All

    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:

    • Important activities are logged in files located in the /var/log directory. You cannot change the directory in which trace files are located. You can only customize other settings. Each log is named after the SNMP agent that generates it.
    • When a trace file named filename reaches its maximum size, it is renamed filename.0, then filename.1, and so on, until the maximum number of trace files is reached. Then the oldest trace file is overwritten. You can set the file size to be of any size from 10 KB through 1 gigabyte (GB). When the size of the trace file reaches the maximum value, it is renamed to the next consequential name. This process repeats until the maximum file number limit is reached. Then the oldest file is overwritten by the newest file. This way, new files are created once the size of each file exceeds the specified maximum file size value. The number of files can be from 2 through 1000.
    • Log files can be accessed only by the user who configures the tracing operation.

    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 1.
    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 1: Configuring Traceoptions Fields



    Your Action


    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.


    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.


    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.

    Published: 2013-01-06