How SNMP Works - a quick guide

nagiosvideo
2 Apr 201905:49

Summary

TLDRThis video provides a concise introduction to SNMP (Simple Network Management Protocol), covering its basics to help you start monitoring devices. It explains key terms like OIDs (Object Identifiers) and MIBs (Management Information Bases), and how SNMP works in practice, including polling and notifying methods. The video also discusses the different SNMP versions, highlighting the security advantages of version 3 over versions 1 and 2c. By the end, you'll understand how to use SNMP for monitoring network devices such as switches, routers, and servers.

Takeaways

  • πŸ“˜ SNMP stands for Simple Network Management Protocol, introduced in 1988.
  • πŸ” SNMP is used to monitor and modify settings on network equipment like switches, routers, and other devices.
  • πŸ”‘ Key terms to know: OID (Object Identifier) and MIB (Management Information Base).
  • 🌑️ OIDs are unique identifiers for specific parameters on devices, such as temperature sensors.
  • πŸ“œ MIBs are text files that translate numerical OIDs into understandable names.
  • πŸ–₯️ Standard OIDs and MIBs are often built into SNMP implementations for basic monitoring.
  • πŸ”„ SNMP can be used in two ways: polling (querying devices) and notifying (devices sending alerts).
  • πŸ” There are three versions of SNMP: v1, v2c, and v3, with v3 being the most secure.
  • πŸ›‘οΈ Version 3 enhances security by requiring usernames, passwords, and offering encryption.
  • βš™οΈ Best practice is to use SNMP v3 whenever possible, although v2c is still commonly used.

Q & A

  • What does SNMP stand for?

    -SNMP stands for Simple Network Management Protocol.

  • Since when has SNMP been in use?

    -SNMP has been in use since 1988.

  • What was the initial purpose of SNMP?

    -SNMP was initially developed to allow administrators to monitor networking equipment's current state and remotely modify settings and configurations on the equipment.

  • What are the two key terms introduced in the script related to SNMP?

    -The two key terms introduced are OID (Object Identifier) and MIB (Management Information Base).

  • What is an OID in the context of SNMP?

    -An OID is a numerical identifier used to represent anything and everything on a device that can be monitored with SNMP.

  • What is a MIB and why is it used?

    -A MIB is a text file that allows us to translate numerical OIDs into more understandable names, making it easier to identify what is being monitored.

  • Why are MIBs considered helpful in SNMP monitoring?

    -MIBs are helpful because they simplify the process of identifying and monitoring various parameters on a device by translating numerical OIDs into more comprehensible names.

  • What are the two primary methods by which SNMP can be used to monitor devices?

    -The two primary methods are polling, where the network monitoring system requests information from the device, and notifying, where the device sends information to the monitoring system.

  • What is the main difference between SNMP versions 1 and 2c and version 3 in terms of security?

    -Version 3 is more secure than versions 1 and 2c because it requires a username and password and offers encryption, whereas versions 1 and 2c only require a community string and do not offer encryption.

  • Why might some administrators still use SNMP version 2c despite the availability of version 3?

    -Some administrators might still use SNMP version 2c because not all devices and operating systems support version 3, and it is often still considered sufficient for their needs.

  • What is the recommended best practice regarding the use of SNMP versions?

    -The best practice is to use SNMP version 3 whenever possible due to its enhanced security features.

  • Where can one find information about OIDs and MIBs for specific devices?

    -Information about OIDs and MIBs for specific devices can typically be found in the product manuals from the manufacturer, which are often available online.

Outlines

00:00

πŸ” Introduction to SNMP Explainer

This introductory paragraph sets the stage for an SNMP explainer video. The speaker promises to teach the basics of SNMP for device monitoring, emphasizing simplicity and avoiding unnecessary complexity. SNMP, or Simple Network Management Protocol, has been in use since 1988 and is designed for monitoring and remotely modifying network equipment. The script mentions that SNMP is not limited to switches and routers but can also be used for a variety of devices, including Windows and Linux machines, printers, and UPS systems. Two key terms, OID (Object Identifier) and MIB (Management Information Base), are introduced as essential concepts for understanding SNMP.

05:02

πŸ“š Understanding SNMP Operations and Security

The second paragraph delves into the practical use of SNMP, explaining how it operates in daily practice through polling and notifications. Polling involves the monitoring system requesting information from a device, while notifications allow devices to send unsolicited messages about certain OIDs. The paragraph also discusses the evolution of SNMP versions, highlighting the security improvements in SNMP version 3, which includes authentication and encryption not present in versions 1 and 2c. The speaker advises using SNMP version 3 whenever possible for enhanced security, but acknowledges that not all devices support it. The video concludes by encouraging viewers to start monitoring with SNMP and provides a link to download Nagios XI for monitoring purposes.

Mindmap

Keywords

πŸ’‘SNMP

SNMP stands for Simple Network Management Protocol. It was developed in 1988 to allow administrators to monitor and modify network devices' states and configurations. The video explains how SNMP is essential for monitoring devices like switches, routers, and even printers.

πŸ’‘OID

OID stands for Object Identifier. It is a series of numbers separated by dots that uniquely identifies a specific parameter that can be monitored on a device. For example, the temperature sensor on a network device has an OID, making it possible to monitor its value through SNMP.

πŸ’‘MIB

MIB stands for Management Information Base. It is a text file that translates numerical OIDs into human-readable names, making it easier to understand what is being monitored. For example, instead of using the numerical OID for a temperature sensor, a MIB allows the use of a word-based identifier.

πŸ’‘Nagios

Nagios is a network monitoring system that uses SNMP to monitor various devices. It can ask devices for information on specific OIDs and interpret the responses. The video mentions Nagios XI as an example of a tool that can utilize SNMP for device monitoring.

πŸ’‘Polling

Polling is one method of using SNMP, where the network monitoring system connects to the device on port 161 and requests information on specific OIDs. The device then responds with the requested information. This method is essential for regular and automated device monitoring.

πŸ’‘Notifying

Notifying is another method of using SNMP, where the device sends a message about an OID to the network monitoring system's port 162. These messages can be called traps, notifications, or informs, and they alert the monitoring system to specific events or changes in the device's status.

πŸ’‘Community String

A Community String is a password used in SNMP versions 1 and 2c to grant access to network devices. It is a simple form of authentication. The video explains that version 3 replaces the community string with a username and password for better security.

πŸ’‘Version 3

Version 3 of SNMP is the most secure version, offering both authentication and encryption. It requires a username and password, unlike versions 1 and 2c, which only use a community string. The video emphasizes using version 3 whenever possible due to its enhanced security features.

πŸ’‘Traps

Traps are unsolicited notifications sent from a device to a network monitoring system, indicating that a specific event has occurred. This is part of the notifying method in SNMP. Traps help in alerting administrators about issues without needing constant polling.

πŸ’‘Encryption

Encryption in SNMP version 3 protects data from being intercepted and read by unauthorized parties. The video highlights that versions 1 and 2c do not offer encryption, making them less secure. Encryption is crucial for preventing attackers from manipulating device settings.

Highlights

Introduction to SNMP (Simple Network Management Protocol) and its purpose.

SNMP has been around since 1988 and is used to monitor and manage network devices.

SNMP can monitor a variety of devices including switches, routers, Windows and Linux machines, printers, and UPS systems.

Key terms: OID (Object Identifier) and MIB (Management Information Base).

OID is like an IP address for values to monitor, such as device temperature.

MIB is a text file that translates numerical OIDs into readable text-based OIDs.

Standard OIDs and MIBs are incorporated into most SNMP implementations by default.

Basic device information like uptime can be monitored without needing specific OIDs or MIBs.

For non-standard monitoring, product manuals from manufacturers often provide necessary OIDs and MIBs.

Two ways to use SNMP: polling and notifying.

Polling involves the network monitoring system requesting information from a device.

Notifying involves the device sending information to the network monitoring system.

Three versions of SNMP: version 1, version 2c, and version 3, with version 3 being the most secure.

Version 3 requires a username and password and offers encryption.

Despite its security advantages, not all devices support SNMP version 3.

It is best practice to use SNMP version 3 whenever possible.

Summary: Understanding OIDs, MIBs, polling, traps, and SNMP versions prepares you to start monitoring with SNMP.

Download Nagios XI for practical SNMP monitoring.

Transcripts

play00:00

[Music]

play00:01

hey everybody welcome to this SNMP

play00:04

explainer in just a couple of minutes

play00:07

I'm gonna teach you enough about SNMP to

play00:10

be able to start monitoring devices

play00:12

while SNMP is a little complex there's a

play00:15

lot you don't need to know just to start

play00:17

monitoring so we're gonna focus on the

play00:19

absolute basics here and I promise I

play00:21

won't get you lost in unnecessary

play00:23

details how are we gonna do that

play00:25

well we're gonna talk about some basic

play00:27

background information we're gonna talk

play00:29

about two key terms you need to know

play00:31

we're gonna talk about why switches and

play00:33

routers are simple to monitor we're

play00:35

gonna talk about how SNMP works on a

play00:37

practical level and we're gonna talk

play00:39

about the different versions of SNMP are

play00:42

you ready let's get started

play00:44

SNMP stands for simple network

play00:47

management protocol it's been around

play00:49

since 1988 so it's pretty well used SNMP

play00:54

was developed to allow administrators to

play00:55

both monitor networking equipments

play00:57

current state and also remotely modify

play01:00

settings and configurations on the

play01:02

equipment while SNMP was initially

play01:04

developed for switchers and routers it

play01:07

has since been extended to a wide array

play01:09

of other devices such as Windows and

play01:11

Linux machines printers and

play01:13

uninterruptible power supplies among

play01:15

many many other things there are two key

play01:19

terms you need to know ID and mim o it

play01:23

is short for object identifier think of

play01:26

it like this anything and everything on

play01:27

a device that can't be monitored with

play01:29

SNMP has annoyed for example say I want

play01:33

to monitor the temperature on a network

play01:35

attached storage device we have here

play01:36

Nagios the oil for the temperature

play01:39

sensor on the device is a bunch of

play01:41

numbers separated by dots that number

play01:44

might look confusing but all you really

play01:46

have to know is each thing we can

play01:48

monitor like device temperature has

play01:50

annoyed you might think of annoyed as

play01:52

something similar to an IP address for a

play01:54

value we use an application like Nagios

play01:57

X I to ask the device what the value of

play02:00

any particular I'd have to be mint is

play02:03

short for management information base

play02:05

that sounds a lot more complicated than

play02:07

it actually is am it is a text file that

play02:10

allows us to translate numerical oils

play02:12

into

play02:13

bass toys so instead of using the

play02:15

numerical oi for the temperature sensor

play02:17

in our example we can use this word

play02:19

based oil which makes it a lot easier to

play02:22

understand what we're monitoring now

play02:25

technically you don't have to use MIBs

play02:27

at all you could always use only

play02:28

numerical hoids but MIBs can make your

play02:31

life a lot easier there are a number of

play02:33

standard Lloyd's and MIBs that are

play02:36

incorporated into most SNMP

play02:38

implementations by default for example

play02:40

on almost any system out there you

play02:42

should be able to ask the uptime of a

play02:44

device with the oeid cysts uptime zero

play02:47

this is great because when you go to do

play02:49

basic switch or router monitoring in

play02:51

Nagios x.i you don't need to know a

play02:53

single weight or find any mips because

play02:55

those are already built in you really

play02:57

only need to figure out ways and MIPS

play02:59

when you have a non-standard

play03:01

to monitor like the temperature sensor

play03:03

on a network attached storage device

play03:05

like we just talked about a minute ago

play03:06

how do you find out what the oeid are

play03:09

and where do you find MIPS the best

play03:11

place to start on both of those

play03:12

questions will be the product manuals

play03:14

from the manufacturer of the device many

play03:17

times these documents are available

play03:18

online and a simple search will get you

play03:21

the information you need so here is how

play03:25

SNMP gets used in day-to-day practice

play03:27

you have a network monitoring system

play03:29

like Nagios this is what monitors the

play03:32

things you want to monitor and then you

play03:34

have the things you want to monitor like

play03:35

switches and routers and servers and

play03:37

uninterruptible power supplies there are

play03:40

two ways to use SNMP the first way is

play03:44

called polling with polling the network

play03:47

monitoring system connects to the

play03:48

monitored device on port 161 and tells

play03:51

the device which ID it wants information

play03:53

on the device then responds with the

play03:56

information to the network monitoring

play03:58

systems port 161 in the second way we do

play04:01

what's called notifying with notifying

play04:03

the device simply sends a message about

play04:05

a noid to the network monitoring systems

play04:07

port 162 these messages are variously

play04:10

called either traps notifications or

play04:13

informs there are three versions of the

play04:16

SNMP protocol version 1 version 2c and

play04:20

version 3 the biggest difference for our

play04:22

purposes is that version 3 is more

play04:24

secure than versions 1

play04:26

to see in two ways first four versions

play04:30

one and two see you don't even have to

play04:31

supply a username all you need is a

play04:33

special password called the community

play04:35

string version three gets rid of the

play04:37

community string and makes admins

play04:39

specify a username and a password

play04:42

second versions one and two C don't

play04:45

offer encryption but version 3 does keep

play04:47

in mind that SNMP can be used to change

play04:49

device settings so if an attacker were

play04:51

able to intercept and read your

play04:53

unencrypted v1 or v2 C SNMP packets the

play04:57

attacker could take control of the

play04:58

device you might find out there that

play05:01

SNMP version 2 C is still pretty

play05:03

commonly used why wouldn't everyone

play05:05

always use version 3 well quite simply

play05:07

for a number of reasons not all devices

play05:09

and operating systems support version 3

play05:11

it is best practice however to use

play05:14

version 3 whenever possible you now know

play05:18

enough to be dangerous you know about

play05:20

Lloyd's and MIPS you know about the two

play05:23

ways to use that cmp to monitor that

play05:25

would be polling and traps

play05:26

you know switches and routers are easy

play05:28

to monitor and you know about SNMP

play05:30

versions you know enough to get out

play05:33

there and start monitoring with SNMP

play05:35

thanks for watching download Nagios exei

play05:39

from the link in the description below

play05:40

and you'll be monitoring in no time

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
SNMP BasicsNetwork MonitoringDevice ManagementNagiosOIDMIBPollingTrapsSecurityVersion 3