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:
- In the navigation tree, select Device Manager > Devices.
- In the Devices list, double-click the device to select it.
- Click the Configuration tab.
- In the configuration tree, expand SNMP.
- Select Traceoptions.
- Enter the parameters as specified in Table 1.
- 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
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. |
|
Flag | Specifies which trace operations are to be logged. If this is not configured, only important activities are logged by default. |
|