simple network management protocol part 1the simple network management protocol (snmp) was created...

46
“Fundamentals of SNMP” Simple Network Management Protocol Part 1 Wayne M. Pecena, CPBE, CBNE Texas A&M University Educational Broadcast Services – KAMU FM-TV September 2019

Upload: others

Post on 26-May-2020

13 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

“Fundamentals of SNMP”Simple Network Management Protocol

Part 1

Wayne M. Pecena, CPBE, CBNETexas A&M University

Educational Broadcast Services – KAMU FM-TV

September 2019

Page 2: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

“Fundamentals of SNMP”Advertised Presentation Scope

2

Tutorial Overview

The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP is widely used in Information Technology (IT) environments and is becoming popular in broadcast equipment. Wayne Pecena, CPBE, 8-VSB, AMD, DRB, CBNE presents this webinar that will provide a familiarity with SNMP fundamentals beginning with consideration to a Network Management System (NMS) architecture and system components. Part 2 will look at implementation of SNMP in the broadcast environment to provide a robust monitoring and notification alerting environment from IT equipment to the transmitter.

Page 3: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

“Fundamentals of SNMP – Part 1”AGENDA

• Introduction:– The SNMP Protocol– Why SNMP?– The SNMP Language

• SNMP System Components:– Agent– Devices– Management Information Base– Manager

• SNMP Command Overview• Securing SNMP• Takeaway Review, Resources, & Questions

Page 4: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

4

“Fundamentals of SNMP”Simple Network Management Protocol

Part 1

Introduction

Page 5: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

SNMP – The ProtocolSimple Network Management Protocol

• A core protocol of the Internet Protocol (IP) family:– Managed device monitoring– Configuring managed networked devices

• Implemented at the Applications Layer (OSI)– UDP utilized for message transport– UDP ports 161 / 162

• IETF defined standard (SNMPv3):– RFC 3411 - 3418

5

Simple Gateway Monitoring

Protocol&

High-level Entity Management

Systems

Page 6: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

SNMP Versions

• Version 1 – SNMPv1– Introduced in the late 80’s– Deprecated for practical purposes

• Version 2 – SNMPv2– Incompatible with SNMPv1– Performance improvements / command enhancements– 64-bit counters implemented

• Version 3 – SNMPv3– Maintains compatibility with SNMPv2– Added cryptographic security– Added administrative enhancements

6

ConsideredObsolete

Page 7: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

Why SNMP?Simple Network Management Protocol

• Well, its simple!• Simple – just a few commands:

– v1 just 5 commands– v2 & v3 added 4 commands (9 total)– Interfacing – IP connection

• Maybe its not so simple at times:– Understanding the terminology– Configuration of the NMS

• A mature & “open” protocol• It’s flexible & powerful!

7

Page 8: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

SNMP Entrenched in IT Infrastructure World

• What can SNMP do?– Monitor server health– Monitor network utilization– Gather error reports (syslog)– Generate fault alerts – Create notifications (email, SMS)– Control devices– Configure devices

8

Page 9: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

SNMP Adopted & Becoming Commonplace in the Broadcast Environment

• Transmitter control & monitoring

• Broadcast Infrastructure Devices

9

Page 10: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

Common Management & Alerting Platform for the Broadcast Technical Plant

10

Page 11: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

Traditional Transmitter Remote Control

11

ON/Raise Command

OFF/Lower Command

Analog Telemetry

Logic Status

X16 channels

Page 12: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

Transmitter Remote Controlwith SNMP

12

Page 13: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

13

Page 14: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

Diversity of DevicesIT Centric & Broadcast Centric Converged

14

Page 15: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

Understanding the Language of SNMP

15

• Agent

• Managed Devices

• Managed Object

• MIB

• Object ID

• System Manager

• Traps

• Community Strings

https://www.dpstele.com/snmp/tutorial/glossary.php

Page 16: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

Managed Object

• Define the capabilities of an SNMP agent – what can be seen?

• Hierarchical organized group of objects• IETF MIB-2 defined

16

Page 17: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

Object ID“OID”

• The Object Identifier • Globally unique ISO identifier or locator• An address to identify a specific device parameter function or status• Hierarchical organized structure – similar to computer file structure

17

NAUTEL OID example:

1.3.6.1.4.1.28142.1.300.256.329.0

The International Standards Organization (ISO) OID is NOT unique to SNMP. The OID is also used in:- Security applications (security certificates)- Database applications- LDAP schemas- DICOM – Digital Imaging & Communications

Page 18: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

Deciphering an OID:1.3.6.1.4.1.28142.1.300.256.329.0

18

Universal OID prefix:1 - iso

.3 – org

.6 – dod

.1 – internet

.4 – private

.1 - enterprise

MFG Code

28142=Nautel

Identifies a specific device command / monitor point

Source: Jeff Welton NAUTEL-NUG2018

MIB for the device

root leaf

For practical purposes – every OID will begin with: 1.3.6.1.4.1

Page 19: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

Graphical OID DisplayOID / MIB browser

19

Page 20: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

Nautel OID Display Example

20

Page 21: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

Traps

• Process where a managed device agent communicates an alert to the SNMP management system – “exception” report

• Traps can be:

– Polled – periodic update requested by the SNMP management system – “request/response”

– Autonomous – “alert” sent by the managed device based upon a defined conditional (significant) event

21

Page 22: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

Generic SNMP Traps

• coldStart(0)

• warmStart(1)

• linkDown(2)

• linkup(3)

• authenicationFailure(4)

• egpNeighborLoss(5)

• enterpriseSpecific(6)

22

Vendor specific

IT centric

Page 23: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

Community Strings• The “password” of SNMP• Community string types:

– Read-only “RO”– Read-write “RW”– Trap

• SNMPv1 & SNMPv2 use “public” as default read-only “RO”• SNMPv3 requires username/password with encryption key

23

Page 24: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

24

“Fundamentals of SNMP”Simple Network Management Protocol

Part 1

SNMP System Components

Page 25: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

SNMP System ComponentsThe SNMP Community

• Agent• Devices• Management Information Base• System Manager

25

Page 26: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

Agent• Enabler of network management

features• Software within the managed device• Collects information• Communicates with the manager• Sends information to the MIB

– Polled info– Alert info

26

Page 27: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

Managed Device

• Simply, a device that is managed by SNMP:

– Resides on managed network

– Executes an SNMP Agent

– Communicates with Network Management Station

27

Page 28: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

Management Information Base (MIB)

• Collection of Object Identifiers (OID) arranged in a hierarchized manner – Definitions define properties of the managed object within the managed

device– Top level OID’s belong to standard organizations– Equipment mfg(s) define “branch's” for specific equipment

• MIB’s can be structured as:– Scalar (single object)– Tabular (group of objects)

28

Page 29: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

IETF MIB-II (MIB-2) Structure

29

root

leaf

Page 30: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

MIB Example

30

Page 31: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

Viewing a MIB

31

GUI based MIB viewer:

MIB browserMIB viewer

MIB importer

Page 32: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

System ManagerNMS – Network Management Station

• Heart of the SNMP System• Polls managed devices for information

– Status– Telemetry

• Sends commands to managed devices• Receives ‘traps” from managed devices• Sends email or SMS notifications• Provides a “Graphical User Interface” or “GUI dashboard”

32

Page 33: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

SNMP System Structure

33

SNMP SystemManager

SNMP Agent SNMP AgentSNMP Agent

MIB1

MIB2

MIB3

MIB(s)1,2,3

Page 34: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

34

“Fundamentals of SNMP”Simple Network Management Protocol

Part 1

SNMP Command Overview

Page 35: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

Core CommandsSNMPv3 PDU’s

• GET• GET BULK• GET NEXT• GET RESPONSE• INFORM• NOTIFICATION• REPORT• SET• TRAP

35

command syntax:“get” command example

% snmpget –v1 –c <community> <host name/IP> OID

IPHeader

UDPHeader

VersionCommunity

NameSNMPPDU

Page 36: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

Commands in Detail

36

• GET – Request to managed device initiated by the NMS -retrieves single MIB object variable (or variables) identified by OID

• GET BULK – Multiple iterations of the get next request (more efficient)

• GET NEXT – Returns to next variable in the MIB (useful to return table variables)

• GET RESPONSE – Return variables based upon get, get next, get bulk requests

Page 37: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

Commands in Detail

37

• INFORM (inform request) – An asynchronous acknowledgment notification (provides ACK over UDP)

• NOTIFICATION – Agent to manager notification – unsolicited message

• REPORT – Indicates that a “core” SNMP stack communications error has occurred

• SET – Changes a managed device managed object value• TRAP – Alert message initiated by a managed device

agent to the NMS

Page 38: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

38

“Fundamentals of SNMP”Simple Network Management Protocol

Part 1

Securing SNMP

Page 39: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

Securing SNMP

• Implement SNMPv3!• The SNMP community string is essentially a “password”• Change the device default community string• Use “strong” password creation rules to create community strings:

– 20 character minimum– Contains uppercase characters– Contains lowercase characters– Contains numbers– Contains special characters– Not based upon a dictionary word– No similarity between public & private community strings

• Use different community strings for different devices• Use “RO” community strings whenever possible• USE “ACL” to limit access

39

Page 40: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

SNMP & Firewalls

• Remember SNMP uses UDP for transport• Firewalls (default) often block all UDP ports <50,000• Some may block all UDP by default• Firewall must pass UDP ports 161 & 162

40

SNMP NMS

SNMP Managed Device

UDP 161

UDP 162

Page 41: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

41

“Fundamentals of SNMP”Simple Network Management Protocol

Part 1

Takeaway Review, Resources, & Questions

Page 42: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

Takeaway Review

• Look to SNMP for monitoring the converged broadcast technical infrastructure:– Mature & open-protocol technology– One management platform to support – one “dashboard”– System monitoring & fault/threshold alerting

• Seek SNMP capable products:– Not likely a problem with IT centric devices– Gaining popularity in broadcast centric devices

• SNMP can be a entrance gateway to your infrastructure - Don’t overlook SNMP cybersecurity precautions:– Use SNMPv3 – Change default community strings– Use unique community strings for devices– Use RO community strings never possible

42

Page 43: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

43

SNMPAGENTSNMP Trap

Receiver

SNMP Community Architecture

SNMPManager

MIB MIB

GET / SET Request

GET / SET Response

Trap

ManagementInformationBase

Page 44: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

Reference Texts (IT centric)For Further Study:

44

Page 45: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

Don’t Miss“Fundamentals of SNMP – Part 2”Wednesday, November 13, 2019

• Brief Part 1 Review• SNMP Manager Options:

– Commercial Offerings– Open-Source Options

• Obtaining MIB’s• Agent Configuration• Takeaway Review, Resources, & Questions

Page 46: Simple Network Management Protocol Part 1The Simple Network Management Protocol (SNMP) was created as a means to monitor and control devices in an Internet Protocol (IP) network. SNMP

Distinguished Lecturer

Vice President, National Board of Directors

Executive Committee Member

Chair, Education Committee

Wayne M. Pecena

Texas A&M University

[email protected]

[email protected]

979.845.5662