Beruflich Dokumente
Kultur Dokumente
1
CS6551- Computer Networks
5.5 SNMP
2
CS6551- Computer Networks
5.5 SNMP
3
CS6551- Computer Networks
5.5 SNMP
5.5.2 MIB Groups
Each agent has its own MIB, which is a collection of
objects to be managed.
SNMP objects are located under mib-2 object, identifiers
beginning with 1.3.6.1.2.1
MIB-II (version 2) classifies objects under 12 groups.
4
CS6551- Computer Networks
5.5 SNMP
5.5.2 MIB Groups
• sys (system)-information about the node such as name,
location, lifetime, etc.
• if (interface)-information about interfaces attached to the
node such as physical address, packets sent and received on
each interface, etc.
• at (address translation)-information about ARP table
• Ip-information about IP such as routing table, datagrams
forwarded/dropped, etc
• tcp-information related to TCP such as connection table,
time-out value, number of TCP packets sent / received, etc.
• Udp-information on UDP traffic such as number of UDP
packets sent/received. 5
CS6551- Computer Networks
5.5 SNMP
5.5.3 MIB Variable
MIB variables are of two types namely simple and table.
Simple variables are accessed using group-id
(1.3.6.1.2.1.7) followed by variable-id and 0 (instance
suffix). For example, udpInDatagrams is accessed as
1.3.6.1.2.1.7.1.0
Tables are ordered as column-row rules, i.e., column by
column from top to bottom.
Leaf elements are only accessible in a table type, with
group id followed by table id, leaf element and instance
suffix. For example, udp LocalAddress id is
1.3.6.1.2.1.7.5.1.1.3
6
CS6551- Computer Networks
5.5 SNMP
5.5.3 MIB Variable(Cond..)
Fig:UDP variables
7
CS6551- Computer Networks
5.5 SNMP
5.5.4 Protocol Data Unit(PDU)
SNMP is request/reply protocol that supports various
operations using PDUs:
GET used by manager to retrieve value of agent variable.
GET-NEXT used by manager to retrieve next entries in a agent's
table.
SET used by manager to set value of an agent's variable.
RESPONSE sent from an agent to manager in
response to GET/GET-NEXT that contains value of
variables.
TRAP sent from agent to the manager to report an
event such as reboot.
8
CS6551- Computer Networks
5.5 SNMP
5.5.4 Protocol Data Unit(PDU)
When administrator selects a piece of information,
manager puts identifier for the MIB variable and sends
request message to the agent
Agent maps the identifier, retrieves value of the variable,
and sends encoded value back to the manager.