Professional Documents
Culture Documents
Management Information Base
Management Information Base
(MIB)
The MIB can be thought of as a virtual information store, holding managed objects whose values collectively reflect the current state of the network Managed objects are specified using the OBJECT-TYPE SMI construct and gathered into MIB modules using the MODULE-IDENTITY construct as just discussed.
The MIB contains the name object identifier (a numeric value) data type and indication of whether the value associated with the object can be read from and/or written to
MIB
Each managed object in a MIB has a unique identifier. The identifier includes the object's type (such as counter, string, gauge, or address) the object's access level (such as read or read/write) size restrictions and range information.
4
SNMP
Management Information Base (MIB) Structure of Management Information. MIB Object Definition.
Each resource to be managed is represented by an object. Collections of these objects is MIB. Each object is a data variable that represents one aspect of the managed agent. e.g.: these aspects may be the TCP,IP,UDP connections done . MIB is a text file that describes the managed object using syntax of ASN.1(Abstract Syntax Notation).
INTEGER OBJECT STRING OBJECT IDENTIFIER Gauge Counter Time Ticks IP Address Opaque Network Address
8
2.APPLICATION-WIDE TYPES:
MIB Structure
Each Type of object is associated with an identifier called Object Identifier(OID). Identifier serves to name the object and also a value is associated with the type of the object. An OID is represented by a sequence of integers separated by decimal points. Set of defined objects has a Tree Structure.
Example: When a SNMP manager requests for the object, it will send first an OID to the SNMP agent requesting the information about the object. The OID : 1.3.6.1.2.1.6.4 iso.org.dod.internet.mgmt.mib-2.tcp.tcpMaxConn 1 3 6 1 2 1 6 4
12
tcpMaxConn OBJECT-TYPE SYNTAX INTEGER ACCESS read-only STATUS mandatory DESCRIPTION The limit on the total number of TCP connections the entity can support. In entities where the tcp(mib-2 6) maximum number of connection is dynamic, this object should contain the value 1. ::= {tcp 4}
tcpRtoAlgorithm(1)
tcpRtoMin(2)
tcpRtoMax(3)
tcpMaxConn(4)
13
The MIB
Located on each network device Contains statistics about each managed object:
Actual pieces of hardware Configuration parameters Performance statistics
More than 200 standard MIB modules Large number of vendor-specific (private) modules Identification and classification system
Part of the ASN.1 (Abstract Syntax Notation One) object definition language Naming is achieved in hierarchical (tree) manner where each branch point is given both a name and a number Using these two parameters, each object, being a point in the tree, is identifiable through the path from the root to its place in the tree. MIB modules are found under the MIB-2 branches.
There are modules for TCP, IP, UDP, etc, as well as for system, interface and address translation.
Analysis of the data is needed in order to form a policy or to take actions against exceptional conditions. People are often needed able to think creatively, as well as analytically foresee problems and act in advance. Automated management takes care of the network basically all the time this network is operational. cannot take preemptive actions unless more complicated algorithms are needed to achieve successful automation.
Organization of a MIB
MIB module specified via SMI MODULE-IDENTITY
MODULE
OBJECT TYPE:
1.3.6.1.2.1.7.1
ISO ISO-ident. Org. US DoD Internet udpInDatagrams UDP MIB2 management
Object ID
1.3.6.1.2.1.7.1
Name
Type
Comments
total # datagrams delivered at this node
udpInDatagrams Counter32
1.3.6.1.2.1.7.2 udpNoPorts
Counter32
1.3.6.1.2.1.7.3 udpInErrors
Counter32
# datagrams sent one entry for each port in use by an application, gives port # and IP address
MIB examples
They are installed with the SNMP service in the %systemroot%\system32 directory
DHCP.MIB Microsoft-defined MIB that contains object types for monitoring the network traffic between remote hosts and DHCP servers HOSTMIB.MIB Contains object types for monitoring and managing host resources
MIB examples
LMMIB2.MIB Covers workstation and server services MIB_II.MIB Contains the Management Information Base (MIB-II), which provides a simple, workable architecture and system for managing TCP/IP-based internets WINS.MIB Microsoft-defined MIB for the Windows Internet Name Service (WINS)
SNMP-MIB Browser
23
24
SNMP PDUs (1) Get - Select Go Get - RHS has values. - OID Value
25
SNMP PDUs (2) GetNext -Selected OID is: .1.3.6.1.2.1.1.5 -Returned value: (.1.3.6.1.2.1.1.6) or DSG, OReilly Institute, F.35
26
SNMP (3) Get SubTree -Position of MIB: .1.3.6.1.2.1.1 (a.k.a. system) -RHS values: Returns all values below system.
27
SNMP (4) Walk -MIB Location: .1.3.6.1.2.1 (a.k.a. mib-2) - Returns *ALL* values under mib-2
28
Tables - MIB Location: .1.3.6.1.2.1.2.2 (or interfaces) - Select ifTable, Go, then Table View. - Refresh/Poll
29