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

    Related Documentation

     

    Configuring Options on Managed Devices for Better SNMP Response Time

    The following sections contain information about configuration options on the managed devices that can enhance SNMP performance:

    Enabling the stats-cache-lifetime Option

    The Junos OS provides you with an option to configure the length of time an SNMP request stays active and queued so as to reduce the possibility of request drops during slow response times. You can use the stats-cache-lifetime seconds option at the [edit snmp] hierarchy level to specify the length of time that an SNMP request remains queued. The recommended value for the stats-cache-lifetime option is in the range of 30 to 60 seconds.

    Note: The set snmp stats-cache-lifetime seconds command is a hidden command and is supported only on devices running Junos OS Release 9.3 and later.

    Filtering Out Duplicate SNMP Requests

    If a network management station retransmits a Get, GetNext, or GetBulk SNMP request too frequently to a device, that request might interfere with the processing of previous requests and slow down the response time of the agent. Filtering these duplicate requests improves the response time of the SNMP agent. The Junos OS enables you to filter out duplicate Get, GetNext, and GetBulk SNMP requests. The Junos OS uses the following information to determine if an SNMP request is a duplicate:

    • Source IP address of the SNMP request
    • Source UDP port of the SNMP request
    • Request ID of the SNMP request

    Note: By default, filtering of duplicate SNMP requests is disabled on devices running the Junos OS.

    To enable filtering of duplicate SNMP requests on devices running the Junos OS, include the filter-duplicates statement at the [edit snmp] hierarchy level:

    [edit snmp]filter-duplicates;

    Excluding Interfaces That Are Slow in Responding to SNMP Queries

    An interface that is slow in responding to SNMP requests for interface statistics can delay kernel responses to SNMP requests. You can review the mib2d log file to find out how long the kernel takes to respond to various SNMP requests. For more information about reviewing the log file for kernel response data, see “Checking Kernel and Packet Forwarding Engine Response” under Monitoring SNMP Activity and Tracking Problems That Affect SNMP Performance on a Device Running Junos OS. If you notice that a particular interface is slow in responding, and think that it is slowing down the kernel from responding to SNMP requests, exclude that interface from the SNMP queries to the device. You can exclude an interface from the SNMP queries either by configuring the filter-interface statement or by modifying the SNMP view settings.

    The following example shows a sample configuration for excluding interfaces from the SNMP Get, GetNext, and Set operations:

    [edit]snmp {filter-interfaces {interfaces { # exclude the specified interfacesinterface1;interface2;}all-internal-interfaces; # exclude all internal interfaces}}

    The following example shows the SNMP view configuration for excluding the interface with an interface index (ifIndex) value of 312 from a request for information related to the ifTable and ifXtable objects:

    [edit snmp]view test {oid .1 include;oid ifTable.1.*.312 exclude;oid ifXTable.1.*.312 exclude}

    Alternatively, you can take the interface that is slow in responding offline.

     

    Related Documentation

     

    Published: 2013-02-08