System and Network Monitoring and Management With SNMP

John Sellens
GNAC Canada
jsellens@gnac.com

USENIX LISA-NT 99
July, 1999

Introduction and Goals

What is SNMP?

SNMP Basics

Protocol Basics

Some Simple Examples

% snmpget host1 pswd system.sysUpTime.0
system.sysUpTime.0 = Timeticks: (28946675) 3 days, 8:24:26

% snmpget localhost pswd system.sysContact.0
system.sysContact.0 = jsellens@uunet.ca

% snmpset localhost wrpswd \
         system.sysContact.0 s jsellens@gnac.com

system.sysContact.0 = jsellens@gnac.com

% snmpget localhost pswd system.sysContact.0
system.sysContact.0 = jsellens@gnac.com

Some More Simple Examples

% snmpget host1 pswd interfaces.ifTable.ifEntry.ifDescr.5 \
         interfaces.ifTable.ifEntry.ifPhysAddress.5 \
         interfaces.ifTable.ifEntry.ifOperStatus.5 \
         interfaces.ifTable.ifEntry.ifSpeed.5 \
         interfaces.ifTable.ifEntry.ifInOctets.5

interfaces.ifTable.ifEntry.ifDescr.5 = ed0
interfaces.ifTable.ifEntry.ifPhysAddress.5 = 0:60:97:93:4e:5b
interfaces.ifTable.ifEntry.ifOperStatus.5 = up(1)
interfaces.ifTable.ifEntry.ifSpeed.5 = Gauge: 10000000
interfaces.ifTable.ifEntry.ifInOctets.5 = 38675277

Even More Simple Examples

% env PREFIX=.iso.org.dod.internet.private.enterprises.ucdavis \
         snmpget localhost pswd disk.diskPath.3 \
         disk.diskUsed.3 disk.diskAvail.3 disk.diskTotal.3 \
         disk.diskPercent.3

enterprises.ucdavis.disk.diskPath.3 = /tmp
enterprises.ucdavis.disk.diskUsed.3 = 33
enterprises.ucdavis.disk.diskAvail.3 = 28863
enterprises.ucdavis.disk.diskTotal.3 = 31408
enterprises.ucdavis.disk.diskPercent.3 = 8

% snmpwalk localhost public
... lots of output ...

SNMP Variables, MIBs, and OIDs

SNMP Security

Device and OS Specific Information

SNMP Applied: Monitoring

Monitoring: How to Notice Problems?

Monitoring: How to Watch Trends?

daily graph

Monitoring: What?

SNMP Applied: Management

Management: How?

Management: What?

Basic SNMP Tools - 1

Basic SNMP Tools - 2

Basic SNMP Tools - 3

Basic SNMP Tools - 4

Basic SNMP Applications - 1

Basic SNMP Applications - 2

Basic SNMP Applications - 2

Basic SNMP Applications - 2

Summary



John Sellens
1999-07-20