Understanding Simple Network Management Protocol (SNMP) Traps



Similar documents
Tech Note Cisco IOS SNMP Traps Supported and How to Conf

An Overview of SNMP on the IMG

SNMP and Network Management

Configuring a Gateway of Last Resort Using IP Commands

AlarmTraq SNMP with Avaya IP Office Version 3.2

SNMP Simple Network Management Protocol

Network Management. Jaakko Kotimäki. Department of Computer Science Aalto University, School of Science. 21. maaliskuuta 2016

Sample Configuration Using the ip nat outside source static

Table of Contents. Cisco Fault Management of ONS Using Simple Network Management Protocol

Cisco SNMP FAQs for Cable Networks

Syslog Server Configuration on Wireless LAN Controllers (WLCs)

Simple Network Management Protocol

Sample Configuration Using the ip nat outside source list C

ASA 8.3 and Later: Mail (SMTP) Server Access on Inside Network Configuration Example

SNMP -overview. Based on: W.Stallings Data and Computer Communications

The ABCs of SNMP. Info Sheet. The ABC of SNMP INTRODUCTION. SNMP Versions

Configuring Simple Network Management Protocol (SNMP)

SNMP. Overview. LabTech

Configuring Static and Dynamic NAT Simultaneously

PIX/ASA 7.x and above : Mail (SMTP) Server Access on Inside Network Configuration Example

Configuration Management: Best Practices White Paper

Remote Management. Vyatta System. REFERENCE GUIDE SSH Telnet Web GUI Access SNMP VYATTA, INC.

Configuring SNMP Monitoring

BRI to PRI Connection Using Data Over Voice

Configuring LocalDirector Syslog

Enable SMTP Message Notifications in Cisco Unity Connection 8.x

SNMP SNMP Overview CHAPTER

Translation between SNMP and SYSLOG Notifications

Simple Network Management Protocol

BEA WebLogic Server. and BEA WebLogic Express. SNMP Management Guide

Microsoft Windows 2003 DNS Server for Wireless LAN Controller (WLC) Discovery Configuration Example

This section describes how to set up, find and delete community strings.

Network Management - SNMP

Simple Network Management Protocol (SNMP) Causes High C

Network Monitoring with SNMP

PIX/ASA 7.x with Syslog Configuration Example

Configuring EtherChannel and 802.1Q Trunking Between Catalyst L2 Fixed Configuration Switches and Catalyst Switches Running CatOS

Simple Network Management Protocol

Catalyst Layer 3 Switch for Wake On LAN Support Across VLANs Configuration Example

SNMP and SNMPv2: The Infrastructure for Network Management

Configuring TACACS+, RADIUS, and Kerberos on Cisco Catalyst Switches

Configuring DNS on Cisco Routers

SNMP Driver Help Kepware, Inc.

White Paper Case Study:

Simple Network Management Protocol SNMP

PIX/ASA 7.x and above: Mail (SMTP) Server Access on the DMZ Configuration Example

A Guide to Understanding SNMP

Network Monitoring with SNMP

Telnet, Console and AUX Port Passwords on Cisco Routers Configuration Example

Brocade Product Training

Configuring System Message Logging

INTERNET MANAGEMENT PROTOCOLS TUTORIAL STOCKHOLM, SWEDEN 29 OCTOBER 1999 AIKO PRAS UNIVERSITY OF TWENTE THE NETHERLANDS

Password Recovery Procedure for the Cisco 2900 Series Integrated Services Router

Table of Contents. Overview...2. System Requirements...3. Hardware...3. Software...3. Loading and Unloading MIB's...3. Settings...

PIX/ASA: Allow Remote Desktop Protocol Connection through the Security Appliance Configuration Example

Oracle Communications Session Border Controller

Simulation of an SNMP Agent: Operations, Analysis and Results

Configuring SNMP CHAPTER7

Password Recovery Procedure for the Cisco 3600 and 3800 Series Routers

Cisco Secure PIX Firewall with Two Routers Configuration Example

ASA 8.3 and Later: Enable FTP/TFTP Services Configuration Example

Simple Network Management Protocol

Monitoring the Firewall Services Module

Password Recovery Procedure for the Cisco 806, 826, 827, 828, 831, 836, 837 and 881 Series Routers

Cisco Setting Up PIX Syslog

Table of Contents. Cisco Mapping Outbound VoIP Calls to Specific Digital Voice Ports

Application Notes for Configuring Dorado Software Redcell Enterprise Bundle using SNMP with Avaya Communication Manager - Issue 1.

Configuring System Message Logging

Network Monitoring. By: Delbert Thompson Network & Network Security Supervisor Basin Electric Power Cooperative

Simple Network Management Protocol (SNMP) Primer

Configuring the Cisco Secure PIX Firewall with a Single Intern

NNMi120 Network Node Manager i Software 9.x Essentials

SIMPLE NETWORK MANAGEMENT PROTOCOL (SNMP)

SNMP Extensions for a Self Healing Network

PIX/ASA 7.x: Enable FTP/TFTP Services Configuration Example

7750 SR OS System Management Guide

Cisco ISE Profiling Design Guide. Secure Access How -To Guides Series

Managing and Monitoring Network Management Features

Configuring CitectSCADA SNMP projects with MIB2CIT. A reference for CitectSCADA Customers

Cisco Change Management: Best Practices White Paper

Web Authentication Proxy on a Wireless LAN Controller Configuration Example

CA Spectrum. Certification User Guide. Release 9.4

Virtual Fragmentation Reassembly

Unity Error Message: Your voic box is almost full

Document ID: Introduction

Configuration Professional: Site to Site IPsec VPN Between Two IOS Routers Configuration Example

Cisco CMTS Router MIB Overview

QoS: CBQoS Management Policy-to- Interface Mapping Support Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 1000)

Active Management Services

Technical Notes P/N Rev 01

Simple Network Management Protocol

Database Replication Error in Cisco Unified Communication Manager

OM2012 Network Monitoring. Phil Bracher Sr. Premier Field Engineer Microsoft Corporation

DC70 NETWORK MANAGEMENT JUN 2015

SNMP Network Management Concepts

The Purpose and Use of the Configuration Register on All Cisco Routers

Password Recovery Procedure for the Cisco Catalyst 2948G L3, 4840G, and 4908G L3 Switch Routers

Transcription:

Understanding Simple Network Management Protocol (SNMP) Traps Document ID: 7244 Contents Introduction Prerequisites Requirements Components Used Conventions Use SNMP Traps Examples of Traps Sent by Cisco IOS Related Information Introduction This document provides an introduction to SNMP traps. It shows how SNMP traps are used and the role they play in the management of a data network. SNMP traps enable an agent to notify the management station of significant events by way of an unsolicited SNMP message. In this diagram, the setup on the left shows a network management system that polls information and gets a response. The setup on the right shows an agent that sends an unsolicited or asynchronous trap to the network management system (NMS). Prerequisites Requirements There are no specific requirements for this document.

Components Used This document is not restricted to specific software and hardware versions. Conventions Refer to Cisco Technical Tips Conventions for more information on document conventions. Use SNMP Traps SNMPv1 (Simple Network Management Protocol) and SNMPv2c, along with the associated Management Information Base (MIB), encourage trap directed notification. The idea behind trap directed notification is that if a manager is responsible for a large number of devices, and each device has a large number of objects, it is impractical for the manager to poll or request information from every object on every device. The solution is for each agent on the managed device to notify the manager without solicitation. It does this by sending a message known as a trap of the event. After the manager receives the event, the manager displays it and can choose to take an action based on the event. For instance, the manager can poll the agent directly, or poll other associated device agents to get a better understanding of the event. Trap directed notification can result in substantial savings of network and agent resources by eliminating the need for frivolous SNMP requests. However, it is not possible to totally eliminate SNMP polling. SNMP requests are required for discovery and topology changes. In addition, a managed device agent can not send a trap, if the device has had a catastrophic outage. SNMPv1 traps are defined in RFC 1157, with these fields: EnterpriseIdentifies the type of managed object that generates the trap. Agent addressprovides the address of the managed object that generates the trap. Generic trap typeindicates one of a number of generic trap types. Specific trap codeindicates one of a number of specific trap codes. Time stampprovides the amount of time that has elapsed between the last network reinitialization and generation of the trap. Variable bindingsthe data field of the trap that contains PDU. Each variable binding associates a particular MIB object instance with its current value. Standard generic traps are: coldstart, warmstart, linkdown, linkup, authenticationfailure, egpneighborloss. For generic SNMPv1 traps, Enterprise field contains value of sysobjectid of the device that sends trap. For vendor specific traps, Generic trap type field is set to enterprisespecific(6). Cisco implemented its own specific traps in a non conventional way. Instead of having the trap Enterprise field still the sysobjectid and having the Specific trap code to identify all specific traps supported by all Cisco devices, Cisco implemented trap identification using various trap Enterprise and Specific trap code fields. You can see the actual values from the SNMP Object Navigator. Also, Cisco redefined some generic traps in CISCO GENERAL TRAPS MIB with the addition of more bound variables. For these traps, Generic trap type is kept the same and not set to enterprisespecific(6). In SNMPv2c trap is defined as NOTIFICATION and formatted differently compared to SNMPv1. It has these parameters: sysuptimethis is the same as Time stamp in SNMPv1 trap.

snmptrapoid Trap identification field. For generic traps, values are defined in RFC 1907, for vendor specific traps snmptrapoid is essentially a concatenation of the SNMPv1 Enterprise parameter and two additional sub identifiers, '0', and the SNMPv1 Specific trap code parameter. VarBindListThis is a list of variable bindings. In order for a management system to understand a trap sent to it by an agent, the management system must know what the object identifier (OID) defines. Therefore, it must have the MIB for that trap loaded. This provides the correct OID information so that the network management system can understand the traps sent to it. For traps that are supported by Cisco devices in specific MIBs, refer to the Cisco SNMP Object Navigator. This lists the traps available for a specific MIB. In order to receive one of these traps, your Cisco IOS Software Release must support the MIB listed. In order to find out which MIBs are supported on your Cisco device, visit www.cisco.com/go/mibs. The MIB must be loaded into your network management system. This is commonly referred to as compiling. See your Network Management System (for instance, HP OpenView or NetView) user guide about MIB compiling on your NMS platform. Also refer to SNMP: Frequently Asked Questions About MIBs and MIB Compilers and Loading MIBs. Additionally, a device does not send a trap to a network management system unless it is configured to do so. A device must know that it should send a trap. The trap destination is usually defined by an IP address, but can be a host name, if the device is set up to query a Domain Name System (DNS) server. In later versions of Cisco IOS software, device administrators can choose which traps they would like send. For information on how to configure a Cisco device for SNMP, and how to send traps, refer to correspondent device configuration guides and Basic Dial NMS Implementation Guide, Cisco IOS SNMP Traps Supported and How to Configure Them and How To Support and Configure Cisco CatalystOS SNMP Traps. Note: The manager typically receives SNMP notifications (TRAPs and INFORMs) on UDP port number 162. Examples of Traps Sent by Cisco IOS This section contains some examples of traps sent by Cisco IOS, taken with debug snmp packet. SNMPv1 generic trap, redefined by Cisco: Nov 21 07:44:17: %LINK 3 UPDOWN: Interface Loopback1, changed state to up 4d23h: SNMP: V1 Trap, ent products.45, addr 172.17.246.9, gentrap 3, spectrap 0 ifentry.1.23 = 23 ifentry.2.23 = Loopback1 ifentry.3.23 = 24 lifentry.20.23 = up This output shows the Cisco redefined linkup trap from CISCO GENERAL TRAPS MIB with four bound variables. It has these fields: Enterprise = products.45 (sysobjectid router) Generic trap type = 3 (linkup) Specific trap code = 0 of the device sending trap, in this example, it is c7507 SNMPv1 Cisco specific trap: 4d23h: SNMP: V1 Trap, ent ciscosyslogmib.2, addr 172.17.246.9, gentrap 6, spectrap 1 cloghistoryentry.2.954 = LINK cloghistoryentry.3.954 = 4

cloghistoryentry.4.954 = UPDOWN cloghistoryentry.5.954 = Interface Loopback1, changed state to up cloghistoryentry.6.954 = 43021184 This output shows the Cisco specific clogmessagegenerated trap from CISCO SYSLOG MIB bound variables. It has these fields: with five Enterprise = Enterprise value of clogmessagegenerated trap Generic trap type = 6 (enterprisespecific) Specific trap code = 1 (specific trap code of clogmessagegenerated) SNMPv2c Cisco specific trap: 4d23h: SNMP: V2 Trap, reqid 2, errstat 0, erridx 0 sysuptime.0 = 43053404 snmptrapoid.0 = cloghistoryentry.2.958 = SYS cloghistoryentry.3.958 = 6 cloghistoryentry.4.958 = CONFIG_I cloghistoryentry.5.958 = Configured from console by vty0 (10.10.10.10) cloghistoryentry.6.958 = 43053403 This output shows the Cisco specific ciscoconfigmanevent CISCO CONFIG MAN MIB with three bound variables: SNMPv2c notification from ccmhistoryeventcommandsource ccmhistoryeventconfigsource ccmhistoryeventconfigdestination This trap can be used if there has been any changes done to the device's configuration. The values of last two components determine if a show command was issued or if the configuration was touched. 6506E#term mon 6506E#debug snmp packet SNMP packet debugging is on 6506E#sh run Building configuration...... 6506E# 19:24:18: SNMP: Queuing packet to 10.198.28.80 19:24:18: SNMP: V2 Trap, reqid 2, errstat 0, erridx 0 sysuptime.0 = 6981747 snmptrapoid.0 = ciscoconfigmanmib.2.0.1 ccmhistoryevententry.3.100 = 1! 1 > commandline. Executed via CLI. ccmhistoryevententry.4.100 = 3! 3 > running ccmhistoryevententry.5.100 = 2! 2 > commandsource. Show command was executed. 6506E#term mon 6506E#debug snmp packet SNMP packet debugging is on

6506E#conf t Enter configuration commands, one per line. End with CNTL/Z. 6506E(config)#exit 22:57:37: SNMP: Queuing packet to 10.198.28.80 22:57:37: SNMP: V2 Trap, reqid 2, errstat 0, erridx 0 sysuptime.0 = 8261709 snmptrapoid.0 = ciscoconfigmanmib.2.0.1 ccmhistoryevententry.3.108 = 1! 1 > commandline. Executed via CLI. ccmhistoryevententry.4.108 = 2! 2 > commandsource ccmhistoryevententry.5.108 = 3! 3 > running. Change was destined to the running configuration. Related Information Technical Support & Documentation Cisco Systems Contacts & Feedback Help Site Map 2014 2015 Cisco Systems, Inc. All rights reserved. Terms & Conditions Privacy Statement Cookie Policy Trademarks of Cisco Systems, Inc. Updated: Oct 10, 2006 Document ID: 7244