Chapter 7 Management Information Base (MIB) 1 Chapter 7 Overview Structure of management info (SMI) Definition of mib-2 objects Use of MIB browser MIB compiler MIB editor
Chapter 7 Management Information Base (MIB) 2 Intro In Chapter 6, we looked at SMI tree o Here, interested in mib-2 branch On mib-2 branch o There is an almost endless number of things that could be monitored o But don’t want performance to suffer o Therefore, mib-2 is limited
Chapter 7 Management Information Base (MIB) 3 SMI We’re interested in nodes under iso (1) Internet is under DoD (DoD funded ARPA) Internet node now administered by IAB All mib-2 objects under iso.org.dod.internet.mgmt.mib-2, or, equivalently,
Chapter 7 Management Information Base (MIB) 4 iso (1) standard (0) has a node for each approved “international standard” registration-authority (1) is reserved for OSI registration authorities member-body (2) has node for each country in ISO/IEC identified-organization (3) has node for “any organization that can justify it” o Currently only NIST and DoD
Chapter 7 Management Information Base (MIB) 5 dod (6) Under dod (6), there is only internet (1) Under internet (1) o directory (1) for DoD services o management (2) for nodes defined in RFCs (administered by IANA) o experimental (3) administered by IANA o private (4), enterprise (1) for proprietary MIBs
Chapter 7 Management Information Base (MIB) 6 management (2) mib-2 (1) contains MIB II objects mib-2 is the focus of this chapter MIB objects specified with subset of ASN.1 o Subset used is minimum required o Consistent with SNMP approach (keep it simple) More details on ASN.1 in Appendix B o Lots of other sources of info available o ASN.1 is like a programming language
Chapter 7 Management Information Base (MIB) 7 MIB Objects Object-Type Macro o Written in ASN.1 Acts as a template for constructing MIB objects Each line is a clause Almost all mib-2 objects created from these clauses o Exceptions are… o …ReferPart and DefValPart
Chapter 7 Management Information Base (MIB) 8 sysDescr Object sysDescr includes o SYNTAX o ACCESS o STATUS o DESCRIPTION o value
Chapter 7 Management Information Base (MIB) 9 sysDescr Object Anything following “ ” is a comment system 1 is node 1 under “system” in SMI tree system is at o So, system 1 is at o
Chapter 7 Management Information Base (MIB) 10 sysName What info does sysName provide? o Node’s domain name Where does sysName live in SMI tree? Recall, system is at o So system 5 is at o
Chapter 7 Management Information Base (MIB) 11 ipAddrTable Let’s consider a more complex object definition Consider ipAddrTable o 4 columns o 1 row for each interface
Chapter 7 Management Information Base (MIB) 12 ipAddrTable Each entry (row) in table has object identifier ipAddrEntry, mib o E.g., object identifier of object in column ipAdEntNetMask is mib Index object is ipAdEntAddr (from 1 to N) o ipAdEntBcastAddr for interface 2 is at mib o ipAdEntNetMask for interface 4 is at mib
Chapter 7 Management Information Base (MIB) 13 ipAddrTable Uses template on previous slide
Chapter 7 Management Information Base (MIB) 14 ipAddrEntry Use ipAddrTable Note o Sequence element is a row o Value is ipAddrTable 1, i.e., mib
Chapter 7 Management Information Base (MIB) 15 NMS Presentation of iso Meterware view of iso branch SNMP can only access leaf node Note that IP address of WS1 is
Chapter 7 Management Information Base (MIB) 16 NMS Presentation of mib-2 Meterware view of mib-2 Note 10 original groups o system thru snmp 13 extensions o rmon, etc.
Chapter 7 Management Information Base (MIB) 17 NMS View of ipAddrTable Meterware view of ipAdderTable
Chapter 7 Management Information Base (MIB) 18 NMS View of ipAddrTable Meterware view of value in ipAdderTable Note that ipAdEntAddr is index object
Chapter 7 Management Information Base (MIB) 19 WS1 ipAddrTable ipAdEntAddr o is loopback address on WS1 o is IP address of NIC ipAdEntIfIndex o 1 identifies interface in ifTable o 2 identifies in ifTable
Chapter 7 Management Information Base (MIB) 20 WS1 ipAddrTable ipAdNetMask mask for addresses ipAdEntBcastAdd o Indicates broadcast address ipAdEntReasmmax Size o Max size of reassembled datagram
Chapter 7 Management Information Base (MIB) 21 Index Object NMS might not know index object Then how can NMS construct table? To get ipAdEntNetMask column… o GetNextRequest(ipAdEntNetMask) to get ipAdEntNetMask.1 o GetNextRequest(ipAsEntNetMask.1) to get ipAdEntNetMask.2 o GetNextRequest(ipAsEntNetMask.2) to get ipAdEntBcastAddr.1, and so on…
Chapter 7 Management Information Base (MIB) 22 Meterware Network View Summary view
Chapter 7 Management Information Base (MIB) 23 Meterware Network View MIB browser for Switch 2
Chapter 7 Management Information Base (MIB) 24 Set Command Check ifAdminStatus of Switch2 o All 27 ports are “administratively up” o Only ports 3 and 25 are connected o Port 3 connected to SERVER o Port 25 connected to 10Base2 cable
Chapter 7 Management Information Base (MIB) 25 Set Command Note that Port 3 of Switch2 connects to SERVER = port 3
Chapter 7 Management Information Base (MIB) 26 Set Command Ping SERVER ( ) from WS1
Chapter 7 Management Information Base (MIB) 27 Set Command Set ifAdminStatus of port 3 on switch2 to “down”
Chapter 7 Management Information Base (MIB) 28 Set Command Meterware shows port 3 is down o 1 == up o 2 == down
Chapter 7 Management Information Base (MIB) 29 Set Command Again, ping SERVER from WS1
Chapter 7 Management Information Base (MIB) 30 Enterprise MIBs hp is node for Hewlett Packard What, no Cisco node?
Chapter 7 Management Information Base (MIB) 31 Cisco Catalyst MIB
Chapter 7 Management Information Base (MIB) 32 Compile Cisco MIB Compile ESSWITCH-MIB-MY
Chapter 7 Management Information Base (MIB) 33 Compile Cisco MIB Compile ESSWITCH-MIB-MY2
Chapter 7 Management Information Base (MIB) 34 Enterprise Node Why “grandjunction” ?
Chapter 7 Management Information Base (MIB) 35 Grandjunction node Children of “series 2000”
Chapter 7 Management Information Base (MIB) 36 sysInfo node Select sysInfoNumberOfSwitchPorts… What should we find?
Chapter 7 Management Information Base (MIB) 37 sysInfo node What does this tell us? Switch has 27 ports Why not just count ports? Allows for remote mgmt!
Chapter 7 Management Information Base (MIB) 38 MIB Editor We have seen how to construct MIB objects as text files and compile There are MIB editors o User-friendly editor to make correct source code o May be part of NMS or standalone
Chapter 7 Management Information Base (MIB) 39 Chapter 7 Summary Formal definition of MIB objects Syntax of ASN.1 Simple and constructed mib-2 objects Meterware screen shots Compiled a MIB module MIB editor