Network Monitoring & Management Introduction to SNMP



Similar documents
Network Management & Monitoring Introduction to SNMP

Network Management & Monitoring Introduction to SNMP

SNMP Simple Network Management Protocol

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

SNMP and Network Management

This watermark does not appear in the registered version - SNMP and OpenNMS. Part 1 SNMP.

SIMPLE NETWORK MANAGEMENT PROTOCOL (SNMP)

Simple Network Management Protocol

Cisco CMTS Router MIB Overview

System and Network Management

INTRODUCTION TO SNMP AND MIB

TÓPICOS AVANÇADOS EM REDES ADVANCED TOPICS IN NETWORKS

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

Brocade Product Training

SNMP. Simple Network Management Protocol

Demystifying SNMP. TruePath Technologies Inc 10/5/2015 2:11:14 PM Version 1.db. p.1

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

TELE 301 Network Management

Network Management (NETW-1001)

Network Operations and Network Management

securitymodel who securityname com2sec secname ipsource community default group groupname model secname v1 v2c usm

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

Configuring Simple Network Management Protocol (SNMP)

White Paper Case Study:

SNMP Basics BUPT/QMUL

A Guide to Understanding SNMP

Management, Logging and Troubleshooting

Simple Network Management Protocol

Simple Network Management Protocol

Simple Network Management Protocol

Configuring SNMP Monitoring

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

Monitoring disk stats with Cacti

SNMP JManager: An Open Source Didactic Application for Teaching and Learning SNMP v1/2c/3 with Support for IPv4 and IPv6

Introduction to Simple Network Management Protocol (SNMP)

SNMP exercises. 2 Installing client (manager) tools 2. 3 Configure SNMP on Your Router 3

This Lecture. NWEN 403 Advanced Network Engineering. Network Management. Outline. Network management. Qiang Fu

Chapter 38 Simple Network Management Protocol (SNMP)

Vanguard Applications Ware Basic Protocols. SNMP/MIB Management

Simple Network Management Protocol (SNMP) Primer

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

SNMP....Simple Network Management Protocol...

Network monitoring with simple network monitoring protocol in optical feeder network

Configuring SNMP CHAPTER7

Tech Note Cisco IOS SNMP Traps Supported and How to Conf

SolarWinds Technical Reference

Simple Network Management Protocol

SNMP SECURITY A CLOSER LOOK JEFFERY E. HAMMONDS EAST CAROLINA UNIVERSITY ICTN 6865

Dell OpenManage SNMP Reference Guide Version 8.0.1

Comparison of SNMP. Versions 1, 2 and 3

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

Simple Network Management Protocol SNMP

Using SNMP to Obtain Port Counter Statistics During Live Migration of a Virtual Machine. Ronny L. Bull Project Writeup For: CS644 Clarkson University

Using SNMP with Content Gateway (not V-Series)

TTM 4128 Network and Service Management ( Learning Objectives Specification

(In)Security in Network Management

MONITORING EMC GREENPLUM DCA WITH NAGIOS

Network Management. What is network management?

IBM FileNet Image Services

Network Monitoring with SNMP

Outline of the SNMP Framework

RemoteControl SNMP. APPolo Remote Control SNMP User Guide. User Guide. Revision: 1.1 Last Updated: June 2014 Support Contact:

THE SNMP PROTOCOL THE SNMP REQUEST MIB SATELLAR 2DS/20DS SIMPLE NETWORK MANAGEMENT PROTOCOL SATELLAR MANAGEMENT WITH SNMP GET AND SET SMART RADIO

TECHNICAL NOTES. Technical Notes P/N REV A01. EMC ITOI VoIP Management Suite 8.1. May, 2012

Security in Network Management

Subnetting and Network Management Omer F. Rana. Networks and Data Communications 1

Simulation of an SNMP Agent: Operations, Analysis and Results

Integrating PATROL with SNMP

SNMP Version 3. Finding Feature Information. Information About SNMP Version 3. Security Features in SNMP Version 3

Simple Network Management Protocol - SNMP v1, ASN, MIB, BER. Network Management

SNMP in Cisco IOS. The minimum you should know

SNMP Agent Plug-In Help Kepware Technologies

SNMP Test er Manual 2015 Paessler AG

Using SNMP for Remote Measurement and Automation

An Overview of SNMP on the IMG

Network Management Tools for Tactical Network Testing and Monitoring on Test Ranges

L2 / L3 Switches. Simple Network Management Protocol (SNMP) Configuration Guide

How To Monitor A Network With Snmp (Network Monitoring)

SNMP Extensions for a Self Healing Network

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

Network Monitoring with SNMP

Chapter 9 Network Management

Network Monitoring and Management Recommendations Best Practice Document

SNMP COMMAND SNMP SNMP [HELP] [COMMUNITY SYSCONTACT SYSLOCATION SYSNAME SYSOBJECID/OID TRAPS LIST]

SNMP Monitoring Guide

Chapter 9 Network Management

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

Chapter 8 Network Management. Chapter 8 outline. What is network management? Chapter 8: Network Management

Introduction Network Management Framework Structure of Management Information Names Instances Syntax...

Monitoring Oracle WebLogic Server with SNMP 12c (12.2.1)

Alternatives to SNMP and Challenges in Management Protocols. Communication Systems Seminar Talk 10 Francesco Luminati

Simple Network Management Protocol

Configuring SNMP and using the NetFlow MIB to Monitor NetFlow Data

SNMP Network Management Concepts

Creating Cacti FortiGate SNMP Graphs

Transcription:

Network Monitoring & Management Introduction to SNMP Mike Jager Network Startup Resource Center mike.jager@synack.co.nz These materials are licensed under the Creative Commons Attribution-NonCommercial 4.0 International license (http://creativecommons.org/licenses/by-nc/4.0/)

What is SNMP? Polling and querying OIDs and MIBs Traps SNMPv3 (Optional) Overview

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 Monitoring generally uses GET Object Identifiers (OIDs) Keys to identify each piece of data Concept of MIB (Management Information Base) Defines a collection of OIDs

Typical queries Bytes In/Out on an interface, errors CPU load Uptime Temperature or other vendor specific OIDs For hosts (servers or workstations) Disk space Installed software Running processes What is SNMP? Windows and UNIX have SNMP agents

What is SNMP? UDP protocol, port 161 Different versions V1 (1988) RFC1155, RFC1156, RFC1157 Original specification v2 RFC1901... RFC1908 + RFC2578 Extends v1, new data types, better retrieval methods (GETBULK) Used is version v2c (simple security model) v3 RFC3411... RFC3418 (w/security) Typically we use SNMPv2 (v2c)

SNMP Roles Terminology: Manager (the monitoring station) Agent (running on the equipment/server)

How Does It Work? Basic commands GET (manager -> agent) Query for a value GET-NEXT (manager -> agent) Get next value (e.g. 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,...)

OID: Object Identifier A unique key to select an item of data in the device The same piece of information is always found at the same OID. That's simple! An OID is a variable-length string of numbers, e.g. 1.3.6.1.2.1.1.3 Allocated hierarchically in a tree to ensure uniqueness (similar to DNS) MIB: Management Information Base A collection of related OIDs OIDs and MIBs A mapping of numeric OIDs to human-readable names

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 hrsystem interfaces(2) ip(4)

root The MIB Tree ccitt(0) iso(1) joint-iso-ccitt(3) org(3) ciscomgmt(9) dod(6) internet(1) 1.3.6.1 ciscoenvmonmib(13) ciscoenvmonobjects(1) directory(1) mgmt(2) experimental(3) private(4) ciscoenvmontemperaturestatustable(3) mib-2(1) enterprises(1) ciscoenvmontemperaturestatusentry(1) system(1) snmp(11) cisco(9) ciscoenvmontemperaturestatusvalue(3) interfaces(2) ip(4)...

If Email Addresses Were OIDs user@ nsrc.org would have been something like: user@ nsrc.enterprises.private.internet.dod.org.iso user@ 99999.1.4.1.6.3.1 except that we write the top-most part at the left: 1.3.6.1.4.1.99999.117.115.101.114 Don't worry about the huge tree; What matters is that OIDs are uniqu Ensures vendors don't have conflicting OIDs The numeric OID is what gets sent on the wire

The Internet MIB directory(1) OSI directory mgmt(2) RFC standard objects * experimental(3) Internet experiments private(4) Vendor-specific * security(5) snmpv2(6) Security SNMP internal * Really only two branches of any interest: 1.3.6.1.2.1 = Standard MIBs 1.3.6.1.4.1 = Vendor-specific (proprietary) MIBs

Read from left to right OID components separated by '.' 1.3.6.1.4.1.9.... Each 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 OIDs to Labels (and vice versa?) Use of MIBs files! OIDs and MIBs

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

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 } sysuptime OBJECT-TYPE 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 MIBs - Sample ::= { system 3 } The sysuptime object is the third branch off of the system object group tree.

MIB Files MIB files 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 CiscoEnvMonState ::= TEXTUAL-CONVENTION STATUS current DESCRIPTION "Represents the state of a device being monitored. Valid values are: normal(1): warning(2): critical(3): shutdown(4): notpresent(5): the environment is good, such as low temperature. the environment is bad, such as temperature above normal operation range but not too high. the environment is very bad, such as temperature much higher than normal operation limit. the environment is the worst, the system should be shutdown immediately. 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.

Some typical commands for querying: snmpget snmpwalk snmpstatus snmptable Syntax: Querying SNMP Agent snmpxxx -c community -v1 host [oid] snmpxxx -c community -v2c host [oid]

Querying SNMP Agent Let's take an example snmpstatus -c NetManage -v2c 10.10.0.254 snmpget -c NetManage -v2c 10.10.0.254 ifnumber.0 snmpwalk -c NetManage -v2c 10.10.0.254 ifdescr

Querying SNMP Agent Community: A string (password) to define whether 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 its name equivalent: sysname.0 Let's ask the system's name (using OID above) Why the.0? What do you notice?

SNMP Failure: No Response The device might be offline or unreachable The device might not be running an SNMP agent The device might be configured with a different community string The device might be configured to refuse SNMP queries from your IP address In all of these cases you will get no response

Coming Up In Our Exercises Using snmpwalk, snmpget Config file: /etc/snmp/snmp.conf Running Linux SNMP agent (daemon) Config file: /etc/snmp/snmpd.conf Loading MIBs Configuring SNMPv3 (optional)

References Essential SNMP (O Reilly Books) Douglas Mauro, Kevin Schmi 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/ Integration w/ Nagios http://www.cisl.ucar.edu/nets/tools/nagios/snmp-traps.html

Optional Materials SNMP Version 3

SNMP and Security SNMP versions 1 and 2c are insecure SNMP version 3 created to fix this Components Dispatcher Message processing subsystem Security subsystem Access control subsystem

SNMP Version 3 (SNMPv3) The most common module is based in user, or a User-based Security Model Authenticity and integrity: Keys are used for users and messages have digital signatures generated with a hash function (MD5 or SHA) Privacy: Messages can be encrypted with secret-key (private) algorithms (DES) Temporary validity: Utilizes a synchronized clock with a 150 second window with sequence checking.

Security Levels noauthpriv No authentication, no privacy authnopriv Authentication with no privacy authpriv Authentication with privacy

Cisco SNMPv3 Configuration snmp-server view vista-ro internet included snmp-server group ReadGroup v3 auth read vista-ro snmp-server user admin ReadGroup v3 auth md5 xk122r56 Or alternatively: snmp-server user admin ReadGroup v3 auth md5 xk122r56 des56 D4sd#rr56 priv

Net SNMP SNMPv3 Configuration # apt-get install snmp snmpd # net-snmp-config --create-snmpv3-user -a "xk122r56" admin /usr/sbin/snmpd # snmpwalk -v3 -u admin -l authnopriv -a MD5 -A "xk122r56 127.0.0.1