Network Management Workshop June 2009 Papeete, French Polynesia

Slides:



Advertisements
Similar presentations
Management Information Base for Version 2 of the Simple Network Management Protocol Presented by Zhou Ji (MIB for SNMPv2) By SNMPv2 Working Group.
Advertisements

© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 8: Monitoring the Network Connecting Networks.
These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license (
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 24 Network Management: SNMP.
CSEE W4140 Networking Laboratory Lecture 11: SNMP Jong Yul Kim
1 SNMP Simple Network Management Protocol. 2 SNMP Overview Define mechanism for remote management of network devices (routers, bridges, etc.) Fundamental.
COMP4690, by Dr Xiaowen Chu, HKBU
SNMP Simple Network Management Protocol
Agenda SNMP Review SNMP Manager Management Information Base (MIB)
10/26/10 Network Management & Monitoring Introduction to SNMP.
SNMP Terms SNMP Agent (network element to monitor) SNMP Management Station Community String (password) SMI (Structure of Management Info) MIB (Management.
Introduction to SNMP AfNOG 11, Kigali/Rwanda.
These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license (
1 Kyung Hee University Prof. Choong Seon HONG SNMP Management Information.
Ch. 31 Q and A CS332 Spring Network management more than just Ethernet Q: Comer mentions that network managers need to be able to account for different.
SNMP (Simple Network Management Protocol) Jon Sevy Geometric and Intelligent Computing Laboratory Department of Mathematics and Computer Science Drexel.
ENS 1 SNMP M Clements. ENS 2 Simple Network Management Protocol Manages elements in networks – E.g. routers, switches, IP phones, printers etc. Uses manager.
1 Network Management Computer Networks. 2 OSI Network Management Model Performance Management e.g. utilization Fault Management e.g. SNMP traps Configuration.
Chapter 6 Overview Simple Network Management Protocol
McGraw-Hill The McGraw-Hill Companies, Inc., 2000 SNMP Simple Network Management Protocol.
Emanuele Pasqualucci Extending AppManager Monitoring with the SNMP Toolkit.
Network Protocols UNIT IV – NETWORK MANAGEMENT FUNDAMENTALS.
SNMP ( Simple Network Management Protocol ) based Network Management.
SNMP Simple Network Management Protocol Team: Matrix CMPE-208 Fall 2006.
1 SNMP Simple network management protocol Group: Techno Presented by: Karthik Gottiparthy Gautami Parulkar Neeraj Sharma Jigar Patel Hariharan Venkataraman.
1 © 1999 BMC SOFTWARE, INC. 2/10/00 SNMP Simple Network Management Protocol.
ECE Prof. John A. Copeland Office: Klaus or call.
SNMP ITL. ITL: © Hans Kruse, Shawn Ostermann, Carl Bruggeman2 Objectives Overview of SNMP SNMP Tools SNMP Monitoring Infrastructure.
MRTG Speaker: Yan-Shiang Wang Adviser: Quincy Wu Date: 2005/11/23.
BAI513 - PROTOCOLS SNMP BAIST – Network Management.
SNMP Simple Network Management Protocol. SNMP and UDP Uses UDP as transport protocol Connectionless Connectionless Port 161 for sending and receiving.
These materials are licensed under the Creative Commons Attribution-Noncommercial 3.0 Unported license (
SNMP Simple Network Management Protocol SNMP Simple Network Management Protocol Haris Ribic.
429 SNMP. (c) 2001, Hans Kruse and Shawn Ostermann 2 Objectives  Overview of SNMP  SNMP Tools  Direct Access to Cisco Routers.
SNMP 1. SNMP is an Internet protocol developed by the IETF. It is designed to facilitate the exchange of management information between network elements.
APRICOT 2008 Network Management Taipei, Taiwan February 20-24, 2008 Introduction to SNMP.
Management Information Base for Version 2 of the Simple Network Management Protocol (MIB for SNMPv2)
SNMP Simple Network Management Protocol A Standard Protocol for Systems and Network Management.
 Introduction  Structure of Management Information  Practical Issues  Summary 2.
SNMP Simple Network Management Protocol Prof. Guido Russo
Topic 11 Network Management. SNMPv1 This information is specific to SNMPv1. When using SNMPv1, the snmpd agent uses a simple authentication scheme to.
 Simple Network Management Protocol.
ITL Getting Information: Packet Sniffing Cisco Router Commands SNMP.
The Structure of Management Information (SMI) Naming OIDs, Defining OIDs SNMP Operations Hamdamboy Urunov, a Ph.D. Researcher student. Special Communication.
Simple Network Management Protocol
or call for office visit, or call Kathy Cheek,
released for field test training
SNMP Simple network management protocol
SNMP.
Simple Network Management Protocol
Lec7: SNMP Management Information
Overview – SOE Net-SNMP v
Karl Quinn 23rd November 2004 NDS M.Sc.
Overview – SOE Net-SNMP v5.7.3
14. Network Management System (NMS)
APRICOT 2008 Network Management Taipei, Taiwan February 20-24, 2008
SNMP M Clements ENS.
Network Management Workshop November 2009 Nadi, Fiji
SNMP M Clements ENS.
Network Management Workshop June 2009 Papeete, French Polynesia
Network Management Computer Networks.
SANOG 10 Workshop August New Delhi, India
System and Network Management
SNMP M Clements ENS.
Chapter 8: Monitoring the Network
Network Management Workshop intERlab at AIT Thailand March 11-15, 2008
SNMP (Simple Network Management Protocol) based Network Management
COMS/CSEE 4140 Networking Laboratory Lecture 10
4. Management Information Base
Simple Network Management Protocol
Presentation transcript:

Network Management Workshop June 2009 Papeete, French Polynesia Introduction to SNMP Network Management Workshop June 2009 Papeete, French Polynesia

Overview What is SNMP ? OIDs MIBs Polling and querying Traps

What is SNMP ? SNMP – Simple Network Management Protocol Industry standard, hundreds of tools exist to exploit it Present on any decent network equipment Query – response based GET / SET Mostly GET is used for monitoring Tree hierarchy Query for ”Object Identifiers” (OIDs) Concept of MIBs (Management Information Base) Standard and vendor-specific (Enterprise)

What is SNMP ? UDP protocol, port 161 Different versions Originally, 1988 v1 – RFC1155, RFC1156, RFC1157 Original specification v2 – RFC1901 ... RFC1908 + RFC2578 Extends v1, new data types, better retrieval methods (GETBULK) Really is version v2c (without security model) v3 – RFC3411 ... RFC3418 Typically we use SNMPv2 Terminology: Manager (the monitoring ”client”) Agent (running on the equipment/server)

What is SNMP ? Typical queries Bytes In/Out on an interface, errors CPU load Uptime Temperature ... For hosts (servers or workstations) Diskspace Installed software Running processes Windows and UNIX have SNMP

How does it work ? Basic commands GET (manager -> agent) Query for a value GET-NEXT (manager -> agent) Get next value (list of values for a table) GET-RESPONSE (agent -> manager) Response to GET/SET, or error SET (manager -> agent) Set a value, or perform action TRAP (agent -> manager) Spontaneous notification from equipment (line down, temperature above threshold, ...)

The MIB tree root ccitt(0) iso(1) joint-iso-ccitt(3) org(3) dod(6) 1.3.6.1 internet(1) directory(1) mgmt(2) experimental(3) private(4) mib-2(1) enterprises(1) host(25) system(1) snmp(11) cisco(9) hrDevice hrStorage interfaces(2) ip(4) hrSystem

The MIB tree root ccitt(0) iso(1) joint-iso-ccitt(3) org(3) ciscoMgmt(9) dod(6) ciscoEnvMonMIB(13) 1.3.6.1 ciscoEnvMonObjects(1) internet(1) ciscoEnvMonTemperatureStatusTable(3) directory(1) mgmt(2) experimental(3) private(4) ciscoEnvMonTemperatureStatusEntry(1) mib-2(1) enterprises(1) ciscoEnvMonTemperatureStatusValue(3) cisco(9) system(1) snmp(11) interfaces(2) ip(4) ...

The Internet MIB directory(1) OSI directory mgmt(2) RFC standard objects experimental(3) Internet experiments private(4) Vendor-specific security(5) Security snmpV2(6) SNMP internal

OIDs and MIBs Navigate tree downwards OIDs separated by '.' 1.3.6.1.4.1.9. ... OID corresponds to a label .1.3.6.1.2.1.1.5 => sysName The complete path: .iso.org.dod.internet.mgmt.mib-2.system.sysName How do we convert from OIDs to Labels (and vice versa ?) Use of MIBs files!

MIBs MIBs are files defining the objects that can be queried, including: Object name Object description Data type (integer, text, list) MIBS are structured text, using ASN.1 Standard MIBs include: MIB-II – (RFC1213) – a group of sub-MIBs HOST-RESOURCES-MIB (RFC2790)

MIBs - 2 MIBs also make it possible to interpret a returned value from an agent For example, the status for a fan could be 1,2,3,4,5,6 – what does it mean ?

MIBs - SAMPLE This defines the object called sysUpTime. sysUpTime OBJECT-TYPE SYNTAX TimeTicks ACCESS read-only STATUS mandatory DESCRIPTION "The time (in hundredths of a second) since the network management portion of the system was last re-initialized." ::= { system 3 } This defines the object called sysUpTime. SYNTAX TimeTicks This object is of the type TimeTicks. Object types are specified in the SMI we mentioned a moment ago. ACCESS read-only This object can only be read via SNMP (i.e., get-request); it cannot be changed (i.e., set-request). STATUS mandatory This object must be implemented in any SNMP agent. DESCRIPTION A description of the object The sysUpTime object is the third branch off of the system object group tree.

MIBs - SAMPLE CiscoEnvMonState ::= TEXTUAL-CONVENTION STATUS current DESCRIPTION "Represents the state of a device being monitored. Valid values are: normal(1): the environment is good, such as low temperature. warning(2): the environment is bad, such as temperature above normal operation range but not too high. critical(3): the environment is very bad, such as temperature much higher than normal operation limit. shutdown(4): the environment is the worst, the system should be shutdown immediately. notPresent(5): the environmental monitor is not present, such as temperature sensors do not exist. notFunctioning(6): the environmental monitor does not function properly, such as a temperature sensor generates a abnormal data like 1000 C. ”

Querying SNMP agent Some typical commands for querying: snmpget snmpwalk snmpstatus Syntax: snmpXXX -c community -v1 host [oid] snmpXXX -c community -v2c host [oid] Let's take an example snmpstatus -c pacn0g2k9 -v1 192.168.1.221 snmpget -c pacn0g2k9 -v1 192.168.1.223 .iso.org.dod.internet.mgmt.mib- 2.interfaces.ifNumber.0 snmpwalk -c pacn0g2k9 -v1 192.168.1.222 ifDescr

Querying SNMP agent Community: A ”security” string (password) to define whether the querying manager will have RO (read only) or RW (read write) access This is the simplest form of authentication in SNMP OID A value, for example, .1.3.6.1.2.1.1.5.0, or it's name equivalent .iso.org.dod.internet.mgmt.mib- 2.system.sysName.0 Let's ask for the system's name (using the OID above) Why the .0 ? What do you notice ?

Coming up... Using snmpwalk, snmpget Configuring SNMPD Loading MIBs

References Basic SNMP at Cisco http://www.cisco.com/warp/public/535/3.html http://www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/snmp.htm Wikipedia: http://en.wikipedia.org/wiki/Simple_Network_Management_Protocol IP Monitor MIB Browser http://support.ipmonitor.com/mibs_byoidtree.aspx Cisco MIB browser: http://tools.cisco.com/Support/SNMP/do/BrowseOID.do Open Source Java MIB Browser http://www.kill-9.org/mbrowse http://www.dwipal.com/mibbrowser.htm (Java) SNMP Link – collection of SNMP resources http://www.snmplink.org/ Net-SNMP Open Source SNMP tools http://net-snmp.sourceforge.net/