Top Banner
Copyright 2010-2013 Kenneth M. Chipps Ph.D. www.chipps.com How to Use SNMP to Collect Network Data Last Update 2013.04.18 1.1.0 1
28

Copyright 2010-2013 Kenneth M. Chipps Ph.D. How to Use SNMP to Collect Network Data Last Update 2013.04.18 1.1.0 1.

Dec 22, 2015

Download

Documents

Dwayne Daniels
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Copyright 2010-2013 Kenneth M. Chipps Ph.D.  How to Use SNMP to Collect Network Data Last Update 2013.04.18 1.1.0 1.

Copyright 2010-2013 Kenneth M. Chipps Ph.D. www.chipps.com

How to Use SNMP to Collect Network Data Last Update 2013.04.18

1.1.0

1

Page 2: Copyright 2010-2013 Kenneth M. Chipps Ph.D.  How to Use SNMP to Collect Network Data Last Update 2013.04.18 1.1.0 1.

Objectives

• Learn how to collect data with SNMP to use in baselining and troubleshooting a network

Copyright 2010-2013 Kenneth M. Chipps Ph.D. www.chipps.com

2

Page 3: Copyright 2010-2013 Kenneth M. Chipps Ph.D.  How to Use SNMP to Collect Network Data Last Update 2013.04.18 1.1.0 1.

What is SNMP

• SNMP is the Simple Network Management Protocol

• It is used to collect and then report information on devices such as routers and switches attached to the network

• To accomplish this an SNMP agent must be running on the device that will be monitored

Copyright 2010-2013 Kenneth M. Chipps Ph.D. www.chipps.com

3

Page 4: Copyright 2010-2013 Kenneth M. Chipps Ph.D.  How to Use SNMP to Collect Network Data Last Update 2013.04.18 1.1.0 1.

What is SNMP

• Then a program called a NMS – Network Management System must be installed to access and display this information on another device

• SNMP is defined by several RFCs including these

Copyright 2010-2013 Kenneth M. Chipps Ph.D. www.chipps.com

4

Page 5: Copyright 2010-2013 Kenneth M. Chipps Ph.D.  How to Use SNMP to Collect Network Data Last Update 2013.04.18 1.1.0 1.

SNMP RFCs

• 1155 - Structure and identification of management information for TCP/IP−based internets

• 1156 - Management information base for network management of TCP/IP−based internets (MIB I)

• 1157 - Simple network management protocol

Copyright 2010-2013 Kenneth M. Chipps Ph.D. www.chipps.com

5

Page 6: Copyright 2010-2013 Kenneth M. Chipps Ph.D.  How to Use SNMP to Collect Network Data Last Update 2013.04.18 1.1.0 1.

SNMP RFCs

• 1213 - Management information base for network management of TCP/IP−based internets (MIB II)

• 1441 - Introduction to version 2 of internet−standard network management framework

• 1452 - Coexistence between version 1 and version 2 of the internet−standard network management framework

Copyright 2010-2013 Kenneth M. Chipps Ph.D. www.chipps.com

6

Page 7: Copyright 2010-2013 Kenneth M. Chipps Ph.D.  How to Use SNMP to Collect Network Data Last Update 2013.04.18 1.1.0 1.

SNMP RFCs

• 2578 - Structure of Management Information Version 2

• 3414 - User−based Security Model for version 3 of the Simple Network Management Protocol

• 3584 - Coexistence between Version 1, Version 2, and Version 3 of the internet−standard network management protocol

Copyright 2010-2013 Kenneth M. Chipps Ph.D. www.chipps.com

7

Page 8: Copyright 2010-2013 Kenneth M. Chipps Ph.D.  How to Use SNMP to Collect Network Data Last Update 2013.04.18 1.1.0 1.

Enable SNMP on the Device

• The device to be examined must have SNMP enabled and configured

• In this example SNMP will be enabled and configured on Windows

• The exact sequence will depend on the version of Windows

• For example to do this on Windows 7 follow these steps

Copyright 2010-2013 Kenneth M. Chipps Ph.D. www.chipps.com

8

Page 9: Copyright 2010-2013 Kenneth M. Chipps Ph.D.  How to Use SNMP to Collect Network Data Last Update 2013.04.18 1.1.0 1.

Enable SNMP on the Device

• From the Control Panel select– Programs and Features

• Select– Turn Windows features on and off

• Scroll down to– Simple Network Management Protocol

(SNMP)• Select the checkbox to activate it

Copyright 2010-2013 Kenneth M. Chipps Ph.D. www.chipps.com

9

Page 10: Copyright 2010-2013 Kenneth M. Chipps Ph.D.  How to Use SNMP to Collect Network Data Last Update 2013.04.18 1.1.0 1.

Enable SNMP on the Device

• Click Ok• Close out the Control Panel

Copyright 2010-2013 Kenneth M. Chipps Ph.D. www.chipps.com

10

Page 11: Copyright 2010-2013 Kenneth M. Chipps Ph.D.  How to Use SNMP to Collect Network Data Last Update 2013.04.18 1.1.0 1.

Configure SNMP on the Device

• Most defaults will work in the typical installation

• In the real world the community string – password – should be changed as everyone knows the default password

• In the example here – Windows 7 – there is no community string so one will be entered

Copyright 2010-2013 Kenneth M. Chipps Ph.D. www.chipps.com

11

Page 12: Copyright 2010-2013 Kenneth M. Chipps Ph.D.  How to Use SNMP to Collect Network Data Last Update 2013.04.18 1.1.0 1.

Configure SNMP on the Device

• To do this from the Control Panel select– Administrative Tools

• Then select– Services

• Scroll down to SNMP Service• Double click it• Select the Security tab• Select Add under the Community box

Copyright 2010-2013 Kenneth M. Chipps Ph.D. www.chipps.com

12

Page 13: Copyright 2010-2013 Kenneth M. Chipps Ph.D.  How to Use SNMP to Collect Network Data Last Update 2013.04.18 1.1.0 1.

Configure SNMP on the Device

• Put in a password• Click

– Accept SNMP packets from any host• Close out all dialog boxes

Copyright 2010-2013 Kenneth M. Chipps Ph.D. www.chipps.com

13

Page 14: Copyright 2010-2013 Kenneth M. Chipps Ph.D.  How to Use SNMP to Collect Network Data Last Update 2013.04.18 1.1.0 1.

Install an SNMP NMS

• There are a large number of NMS programs

• In this example PRTG Traffic Grapher from Paessler will be used

• Download the program• Install the program using the defaults and

the free version

Copyright 2010-2013 Kenneth M. Chipps Ph.D. www.chipps.com

14

Page 15: Copyright 2010-2013 Kenneth M. Chipps Ph.D.  How to Use SNMP to Collect Network Data Last Update 2013.04.18 1.1.0 1.

Setup the Sensor

• After the program is installed a sensor must be added to access the information available form the device to be monitored

• In this case we will look at the bandwidth used by the NIC card in the computer

• Click– Add

• The following dialog boxes appear

Copyright 2010-2013 Kenneth M. Chipps Ph.D. www.chipps.com

15

Page 16: Copyright 2010-2013 Kenneth M. Chipps Ph.D.  How to Use SNMP to Collect Network Data Last Update 2013.04.18 1.1.0 1.

Setup the Sensor

• Accept the defaults and click next for both

Copyright 2010-2013 Kenneth M. Chipps Ph.D. www.chipps.com

16

Page 17: Copyright 2010-2013 Kenneth M. Chipps Ph.D.  How to Use SNMP to Collect Network Data Last Update 2013.04.18 1.1.0 1.

Setup the Sensor

Copyright 2010-2013 Kenneth M. Chipps Ph.D. www.chipps.com

17

Page 18: Copyright 2010-2013 Kenneth M. Chipps Ph.D.  How to Use SNMP to Collect Network Data Last Update 2013.04.18 1.1.0 1.

Setup the Sensor

Copyright 2010-2013 Kenneth M. Chipps Ph.D. www.chipps.com

18

Page 19: Copyright 2010-2013 Kenneth M. Chipps Ph.D.  How to Use SNMP to Collect Network Data Last Update 2013.04.18 1.1.0 1.

Setup the Sensor

• In the next dialog box– Enter a name for the device– Enter the password– Click

• Next

Copyright 2010-2013 Kenneth M. Chipps Ph.D. www.chipps.com

19

Page 20: Copyright 2010-2013 Kenneth M. Chipps Ph.D.  How to Use SNMP to Collect Network Data Last Update 2013.04.18 1.1.0 1.

Setup the Sensor

Copyright 2010-2013 Kenneth M. Chipps Ph.D. www.chipps.com

20

Page 21: Copyright 2010-2013 Kenneth M. Chipps Ph.D.  How to Use SNMP to Collect Network Data Last Update 2013.04.18 1.1.0 1.

Setup the Sensor

• On the Sensor Selection list select the– Local Area Connection Ethernet Connected

• at the bottom of the list of these• Click

– Next

Copyright 2010-2013 Kenneth M. Chipps Ph.D. www.chipps.com

21

Page 22: Copyright 2010-2013 Kenneth M. Chipps Ph.D.  How to Use SNMP to Collect Network Data Last Update 2013.04.18 1.1.0 1.

Setup the Sensor

Copyright 2010-2013 Kenneth M. Chipps Ph.D. www.chipps.com

22

Page 23: Copyright 2010-2013 Kenneth M. Chipps Ph.D.  How to Use SNMP to Collect Network Data Last Update 2013.04.18 1.1.0 1.

Setup the Sensor

• In the next dialog box change the Scanning Interval to 1 secondClick– Finish

Copyright 2010-2013 Kenneth M. Chipps Ph.D. www.chipps.com

23

Page 24: Copyright 2010-2013 Kenneth M. Chipps Ph.D.  How to Use SNMP to Collect Network Data Last Update 2013.04.18 1.1.0 1.

Setup the Sensor

Copyright 2010-2013 Kenneth M. Chipps Ph.D. www.chipps.com

24

Page 25: Copyright 2010-2013 Kenneth M. Chipps Ph.D.  How to Use SNMP to Collect Network Data Last Update 2013.04.18 1.1.0 1.

Display the Data

• On the next screen a set of graphs will appear

Copyright 2010-2013 Kenneth M. Chipps Ph.D. www.chipps.com

25

Page 26: Copyright 2010-2013 Kenneth M. Chipps Ph.D.  How to Use SNMP to Collect Network Data Last Update 2013.04.18 1.1.0 1.

Display the Data

Copyright 2010-2013 Kenneth M. Chipps Ph.D. www.chipps.com

26

Page 27: Copyright 2010-2013 Kenneth M. Chipps Ph.D.  How to Use SNMP to Collect Network Data Last Update 2013.04.18 1.1.0 1.

Display the Data

• To see something here surf the web• Then switch back• Something like this will appear

Copyright 2010-2013 Kenneth M. Chipps Ph.D. www.chipps.com

27

Page 28: Copyright 2010-2013 Kenneth M. Chipps Ph.D.  How to Use SNMP to Collect Network Data Last Update 2013.04.18 1.1.0 1.

Display the Data

Copyright 2010-2013 Kenneth M. Chipps Ph.D. www.chipps.com

28