Professional Documents
Culture Documents
SNMP
SNMP
ITE 3304
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
Mostly GET is used for monitoring
■
Tree hierarchy
●
Query for ”Object Identifiers” (OIDs)
■
Concept of MIBs (Management Information Base)
●
Standard and vendor-specific (Enterprise)
What is SNMP ?
■
UDP protocol, port 161
■
Different versions
●
Originally, 1988
●
v1 – RFC1155, RFC1156, RFC1157
Original specification
●
v2 – RFC1901 ... RFC1908 + RFC2578
Extends v1, new data types, better retrieval methods (GETBULK)
Really is version v2c (without security model)
●
v3 – RFC3411 ... RFC3418
■
Typically we use SNMPv2
■
Terminology:
●
Manager (the monitoring ”client”)
●
Agent (running on the equipment/server)
What is SNMP ?
■
Typical queries
●
Bytes In/Out on an interface, errors
●
CPU load
●
Uptime
●
Temperature
●
...
■
For hosts (servers or workstations)
●
Diskspace
●
Installed software
●
Running processes
●
...
■
Windows and UNIX have SNMP
How does it work ?
■
Basic commands
●
GET (manager -> agent)
Query for a value
●
GET-NEXT (manager -> agent)
Get next value (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, ...)
MIB
■
Examples
●
snmpstatus -c pacn0g2k9 -v1
192.168.1.221
●
snmpget -c pacn0g2k9 -v1
192.168.1.223
.iso.org.dod.internet.mgmt.mib-
2.interfaces.ifNumber.0
SNMP Query Format
• http://www.snmplink.org