Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

Tracking SNMP activity on EX Switches

0

0

Article ID: KB17698 KB Last Updated: 04 Mar 2017Version: 2.0
Summary:
Tracking SNMP activity on EX Switches
Symptoms:
SNMP tracing operations track activity of SNMP agents and record the information in log files. The logged event descriptions provide detailed information to help you solve problems faster
Solution:
By default, Junos OS does not trace any SNMP activity. To enable tracking of SNMP activities on a device running Junos OS, include the traceoptions statement at the [edit snmp] hierarchy level.

A sample traceoptions configuration may look like:
[edit snmp]
set traceoptions flag all;

When the traceoptions flag all statement is included at the [edit snmp] hierarchy level, the following log files are created:

• snmpd
• mib2d
• rmopd

You can use the show log log-filename operational mode command to view the contents of the log file. In the snmpd log file (see the following example):

- a sequence of >>>> represents an incoming packet,

- whereas a sequence of <<<< represents an outgoing packet.

Note that the request response pair may not follow any sequence if there are multiple network management systems polling the device at the same time. You can use the source and request ID combinations to match requests and responses.
  No response log is created in the log file if the SNMP agent, the master agent or the subagent, has not responded to a request.

A careful analysis of the request-response time may help you identify and understand delayed responses.
root> show log snmpd
May 16 11:09:18 snmpd[21cb03d3] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
May 16 11:09:18 snmpd[21cb03d3] >>> Get-Next-Request
May 16 11:09:18 snmpd[21cb03d3] >>> Source: 10.130.38.153
May 16 11:09:18 snmpd[21cb03d3] >>> Destination: 10.130.238.111
May 16 11:09:18 snmpd[21cb03d3] >>> Version: SNMPv1
May 16 11:09:18 snmpd[21cb03d3] >>> Request_id: 0x21cb03d3
May 16 11:09:18 snmpd[21cb03d3] >>> Community: public
May 16 11:09:18 snmpd[21cb03d3] >>> Error: status=0 / vb_index=0
May 16 11:09:18 snmpd[21cb03d3] >>> OID : sysObjectID.0
May 16 11:09:18 snmpd[21cb03d3] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
May 16 11:09:18 snmpd[21cb03d3] <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
May 16 11:09:18 snmpd[21cb03d3] <<< Get-Response
May 16 11:09:18 snmpd[21cb03d3] <<< Source: 10.130.38.153
May 16 11:09:18 snmpd[21cb03d3] <<< Destination: 10.130.238.111
May 16 11:09:18 snmpd[21cb03d3] <<< Version: SNMPv1
May 16 11:09:18 snmpd[21cb03d3] <<< Request_id: 0x21cb03d3
May 16 11:09:18 snmpd[21cb03d3] <<< Community: public
May 16 11:09:18 snmpd[21cb03d3] <<< Error: status=0 / vb_index=0
May 16 11:09:18 snmpd[21cb03d3] <<< OID : sysUpTime.0
May 16 11:09:18 snmpd[21cb03d3] <<< type : TimeTicks
May 16 11:09:18 snmpd[21cb03d3] <<< value: (11363899) 31:33:58.99
May 16 11:09:18 snmpd[21cb03d3] <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search