Simple Network Management Protocol (SNMP) Causes High C

Similar documents
Simple Network Management Protocol

Tech Note Cisco IOS SNMP Traps Supported and How to Conf

Sample Configuration Using the ip nat outside source static

Sample Configuration Using the ip nat outside source list C

Cisco Troubleshooting High CPU Utilization on Cisco Route

Simple Network Management Protocol

About Network Data Collector

co Characterizing and Tracing Packet Floods Using Cisco R

isco Troubleshooting Input Queue Drops and Output Queue D

Configuring the Cisco Secure PIX Firewall with a Single Intern

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

Table of Contents. Cisco How to Download a Software Image to a Cisco 2600 through TFTP Using the tftpdnld ROMmon Command

Table of Contents. Cisco How Does Load Balancing Work?

A Guide to Understanding SNMP

Configuring Simple Network Management Protocol (SNMP)

Network Monitoring with SNMP

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

Lab Use Network Inspector to Observe STP Behavior

Network Monitoring with SNMP

Configuring a Load-Balancing Scheme

Lab Characterizing Network Applications

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

Troubleshooting Load Balancing Over Parallel Links Using Cisco Express Forwarding

Cisco Change Management: Best Practices White Paper

School of Information Technology and Engineering (SITE) CEG 4395: Computer Network Management

CRS 4.x: Automatic Work and Wrap up Time Configuration Example

Database Replication Error in Cisco Unified Communication Manager

Configuring Static and Dynamic NAT Simultaneously

Network Discovery Protocol LLDP and LLDP- MED

Network Discovery Protocol LLDP and LLDP- MED

NetFlow Aggregation. Feature Overview. Aggregation Cache Schemes

Simple Network Management Protocol

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

SolarWinds Certified Professional. Exam Preparation Guide

Configuring SNMP and using the NetFlow MIB to Monitor NetFlow Data

Configuring a Load-Balancing Scheme

Configuring SNMP Cisco and/or its affiliates. All rights reserved. 1

Deploying the BIG-IP LTM with the Cacti Open Source Network Monitoring System

Understanding Simple Network Management Protocol (SNMP) Traps

Implementing Object Tracking on Cisco IOS XR Software

Configuring a Load-Balancing Scheme

NetFlow Policy Routing

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

PT Activity 8.1.2: Network Discovery and Documentation Topology Diagram

Configurable device discovery. Belgrade University Computer Centre, Serbia

NetFlow Subinterface Support

How To Monitor Cisco Secure Pix Firewall Using Ipsec And Snmp Through A Pix Tunnel

SNMP Adapter Installation and Configuration Guide

Microsoft Network Load Balancing and Cisco Catalyst Configuration

Management, Logging and Troubleshooting

Setting up Support for CiscoWorks ANI Server

DHCP Server Port-Based Address Allocation

GLBP - Gateway Load Balancing Protocol

Troubleshooting CallManager Problems with Windows NT and Internet Information Server (IIS)

Comparison of SNMP. Versions 1, 2 and 3

Table of Contents. Cisco Configuring IPSec Cisco Secure VPN Client to Central Router Controlling Access

White Paper Case Study:

Configure IOS Catalyst Switches to Connect Cisco IP Phones Configuration Example

BGP Best Path Selection Algorithm

Managing and Monitoring Network Management Features

Impact of BGP Dynamics on Router CPU Utilization

Configuring DNS on Cisco Routers

Tel Scripting for Cisco IOS

Cisco SNMP FAQs for Cable Networks

SNMP Test er Manual 2015 Paessler AG

SIMPLE NETWORK MANAGEMENT PROTOCOL (SNMP)

Cisco Which VPN Solution is Right for You?

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

Enhanced Password Security - Phase I

NNMi120 Network Node Manager i Software 9.x Essentials

Table of Contents. Cisco Configuring a Basic MPLS VPN

Monitoring Cisco IOS Firewall Inspection Activity with Multi- Router Traffic Grapher (MRTG)

P and FTP Proxy caching Using a Cisco Cache Engine 550 an

DEPLOYMENT GUIDE Version 1.0. Deploying the BIG-IP LTM with the Nagios Open Source Network Monitoring System

Cisco Packet Tracer 6.3 Frequently Asked Questions

Release Notes for Cisco C881G-U-K9

BRI to PRI Connection Using Data Over Voice

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

The Discovery Wizard now provides the ability to create SNMP Setups that can be selected for individual discoveries. An SNMP Setup specifies:

PANDORA FMS NETWORK DEVICE MONITORING

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

VRRPv3: Object Tracking Integration

Getting Started with Configuring Cisco IOS NetFlow and NetFlow Data Export

Configuring a Gateway of Last Resort Using IP Commands

Cisco Series Router Leased-Line MIB Specifications Guide, Release 12.3(7)XI1

Cisco Secure PIX Firewall with Two Routers Configuration Example

CLOUD MONITORING BASED ON SNMP

Enhanced Password Security - Phase I

Configuring and Managing Token Ring Switches Using Cisco s Network Management Products

CCNP Switch Questions/Answers Implementing High Availability and Redundancy

Unity Error Message: Your voic box is almost full

Configuring VoIP Call Setup Monitoring

Configure Backup Server for Cisco Unified Communications Manager

T H E P O W E R O F B U I L D I N G A N D M A N A G I N G N E T W O R K S. Operations

Operations Manager: Network Monitoring

CCNP SWITCH: Implementing High Availability and Redundancy in a Campus Network

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

Transcription:

Simple Network Management Protocol (SNMP) Causes High C

Table of Contents IP Simple Network Management Protocol (SNMP) Causes High CPU Utilization...1 Introduction...1 Before You Begin...1 Conventions...1 Prerequisites...1 Components Used...1 High CPU Utilization Caused by the IP_SNMP Process...1 Large Route and/or ARP Tables Polled by the NMS Station...2 Polling Certain MIBs...3 Related Information...5 i

IP Simple Network Management Protocol (SNMP) Causes High CPU Utilization Introduction Before You Begin Conventions Prerequisites Components Used High CPU Utilization Caused by the IP_SNMP Process Large Route and/or ARP Tables Polled by the NMS Station Polling Certain MIBs Related Information Introduction This Tech Note explains how to troubleshoot high CPU utilization in a router due to the IP_SNMP process running in the router, especially in low end routers. Before You Begin Conventions For more information on document conventions, see the Cisco Technical Tips Conventions. Prerequisites Readers of this document should be knowledgeable of the following: SNMP IOS Components Used The information in this document is based on routers running IOS. High CPU Utilization Caused by the IP_SNMP Process You can determine the cause of high CPU use in a router by using the output of the show process cpu command. The following example shows the output of the show process cpu command. cacuk#show process cpu CPU utilization for five seconds: 0%/0%; one minute: 0%; five minutes: 0%

PID Runtime(ms) Invoked usecs 5Sec 1Min 5Min TTY Process 1 2 3 4 5 69 71 68 258816 0 0.00% 0.00% 0.00% 0 Load Meter 0 1 0 0.00% 0.00% 0.00% 0 OSPF Hello 788132 131480 5994 0.00% 0.00% 0.00% 0 Check heaps 0 1 0 0.00% 0.00% 0.00% 0 Chunk Manager 56 131 427 0.00% 0.00% 0.00% 0 Pool Manager 202700 421730 480 0.00% 0.01% 0.00% 0 IP SNMP 1193648 211250 5650 0.00% 0.19% 0.15% 0 SNMP ENGINE The debug ip snmp command checks which Object IDs (OIDs) or Management Information Base (MIBs) are being queried at the time. Note: Running a debug over a production network may overwhelm the router. There are two possible causes for high CPU utilization occuring in relation to Simple Network Management Protocol (SNMP): 1. Large route and/or ARP tables being polled by the NMS station 2. Polling certain MIBs Large Route and/or ARP Tables Polled by the NMS Station The Network Management station queries routers for their entire route table to learn about other networks. It uses this information to find other routers and query them about their knowledge of networks around them. In this fashion, the management station can learn the topology of the entire network. The router stores the route table in a hashed format, more conducive to quick route searches. However, SNMP responses for the route are required to be returned in lexicographical order per RFC1213. Therefore, for each SNMP request the router receives, the hash table must be sorted lexicographically before a SNMP response PDU can be built. The larger the route table, the more CPU intesive the sort. SNMP is a low priority process as far as the CPU scheduler is concerned, so another process requiring CPU resources takes priority. Therefore, while CPU spikes occur in this scenario, they shouldn't effect performance. Recomendation 1: Use snmp server view Commands To avoid performance issues, force the router to prematurely end queries for the route table from the network management system server. Configure the router to respond with a complete message as soon as it receives the start of a request for the route table, as follows: snmp server view cutdown internet included snmp server view cutdown iproutetable excluded snmp server view cutdown ipnettomediatable excluded snmp server view cutdown at excluded snmp server community public view cutdown RO

snmp server community private view cutdown RW This configuration blocks requests to retrieve the route table (iproutetable) and the Address Resolution Protocol (ARP) table (ipnettomediatable), but allows all other requests through. If you have an older versions of Cisco IOS Software, it won't recognize the MIB object iproutetable, so use the following configuration instead: snmp server view cutdown internet included snmp server view cutdown ip.21 excluded snmp server view cutdown ip.22 excluded snmp server view cutdown at excluded snmp server community public view cutdown RO snmp server community private view cutdown RW In both of these examples, you can substitute your own community strings. The outcome of these configurations is that the router no longer returns either the ARP table or the IP route table when queried. This prevents SNMP network discoveries from creating CPU spikes on the router in question, but it also removes a degree of manageability from the router. Routers that previously were not exhibiting CPU spikes may begin to do so if there is a change in their routing table. The amount of cycles required to reply to the IP route table requests is a function of the number of routes in the routing table. If the number of routes increases, CPU utilization increases as well. Recomendation 2: Turn on CEF A change was made in the IOS code to allow SNMP to query the Cisco Express Forwarding (CEF) table for routing entries if CEF switching is used. This significantly improves the situation. With CEF enabled, the SNMP agent responds to a get next/get bulk operation for the routing or ARP tables with information from the Forwarding Information Base (FIB). The FIB is stored in lexicographical order and no sorting is needed. Without CEF enabled, the SNMP agent responds with information from the Routing Information Base (RIB), which must be sorted into lexicographical order causing high CPU. Follow the bug ID link below and see detailed bug information. CSCdk54265 ( registered customers only) CPU HOG gets generated when polling routing table via SNMP from Network Management Station. Polling Certain MIBs Network Management Applications frequently retrieve information from devices using SNMP. One example would be Resource Manager Essentials (RME), an applications within the CiscoWorks 2000 suite of products. RME can retrieve flash information defined in the CISCO FLASH MIB. If the device has an ATA flash disk, it can cause CPU utilization to jump. Follow the bug ID link below and see detailed bug information. CSCdt97325 ( registered customers only) To verify and apply the workaround, follow these steps: 1.

Verify if the device has an ATA Flash Card in one of its slots: Router#sh disk1: ******** ATA Flash Card Geometry/Format Info ******** ATA CARD GEOMETRY Number of Heads: 12 Number of Cylinders 906 Sectors per Cylinder 63 Sector Size 512 Total Sectors 684936 ATA CARD FORMAT Number of FAT Sectors 84 Sectors Per Cluster 32 Number of Clusters 21372 Number of Data Sectors 684117 Base Root Sector 169 Base FAT Sector 1 Base Data Sector 201 Router# 2. If you're not sure or if you don't get output for the sh diskx command, run the sh tech command and do a search for disk. Once you know you have an ATA Flash Disk, you can apply the following workaround to prevent the SNMP queries on the FLASH MIB: Router(config)#snmp server view <any_word> internet included Router(config)#snmp server view <any_word> ciscoflashmib excluded Router(config)#snmp server community <read_community_string> view <any_word> ro Router(config)#snmp server community <write_community_string> view <any_word> rw Router(config)#exit Router# Note: Choose the same word on every line for the <any_word> in the above configuration. 3. Verify that it is correctly implemented: 4. Router#sh run... snmp server view anything internet included snmp server view anything ciscoflashmib excluded snmp server community private view anything RW snmp server community public view anything RO Issue the show proc cpu command to verify if the CPU Util for SNMP goes down and look for the IP_SNMP process. Note: The bug CSCdt97325 has also been fixed in some later IOS releases, so check the bug for any details. Other bugs related to polling MIBs : Follow the bug ID link below and see detailed bug information. Cisco IP Simple Network Management Protocol (SNMP) Causes High CPU Utilization

CSCdm67427 ( registered customers only) Polling the ATM sub interface returns CPU HOG message from the device. CSCdu63734 ( registered customers only) Flash MIB makes too many calls to ifs. CSCdu48652 ( registered customers only) Flash MIB query hangs voice calls on 7200. CSCds53368 ( registered customers only) Problems with ciscoflashpartitionentry object in CISCO FLASH MIB. CSCdu55091 ( registered customers only) 2500 snmpgetnext for certain SNMP objects causes trace back. CSCdx54836 ( registered customers only) SNMP polling on Flash MIB causes high cpu utilization on the switch. Related Information Troubleshooting High CPU Utilization on Cisco Routers Technical Support Cisco Systems All contents are Copyright 1992 2002 Cisco Systems, Inc. All rights reserved. Important Notices and Privacy Statement. Updated: Dec 11, 2002 Document ID: 7270