Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 7  Management Information Base (MIB) 1 Chapter 7 Overview  Structure of management info (SMI)  Definition of mib-2 objects  Use of MIB browser.

Similar presentations


Presentation on theme: "Chapter 7  Management Information Base (MIB) 1 Chapter 7 Overview  Structure of management info (SMI)  Definition of mib-2 objects  Use of MIB browser."— Presentation transcript:

1

2 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

3 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

4 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, 1.3.6.1.2.1

5 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

6 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

7 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

8 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

9 Chapter 7  Management Information Base (MIB) 8 sysDescr Object  sysDescr includes o SYNTAX o ACCESS o STATUS o DESCRIPTION o value

10 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 1.3.6.1.2.1.1  So, system 1 is at o 1.3.6.1.2.1.1.1

11 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 1.3.6.1.2.1.1  So system 5 is at o 1.3.6.1.2.1.1.5

12 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

13 Chapter 7  Management Information Base (MIB) 12 ipAddrTable  Each entry (row) in table has object identifier ipAddrEntry, mib-2.4.20.1 o E.g., object identifier of object in column ipAdEntNetMask is mib-2.4.20.1.3  Index object is ipAdEntAddr (from 1 to N) o ipAdEntBcastAddr for interface 2 is at  mib-2.4.20.1.4.2 o ipAdEntNetMask for interface 4 is at  mib-2.4.20.1.3.4

14 Chapter 7  Management Information Base (MIB) 13 ipAddrTable  Uses template on previous slide

15 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-2.4.20.1

16 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 192.192.192.223

17 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.

18 Chapter 7  Management Information Base (MIB) 17 NMS View of ipAddrTable  Meterware view of ipAdderTable

19 Chapter 7  Management Information Base (MIB) 18 NMS View of ipAddrTable  Meterware view of value in ipAdderTable  Note that ipAdEntAddr is index object

20 Chapter 7  Management Information Base (MIB) 19 WS1 ipAddrTable  ipAdEntAddr o 127.0.0.1 is loopback address on WS1 o 192.192.192.233 is IP address of NIC  ipAdEntIfIndex o 1 identifies interface 127.0.0.1 in ifTable o 2 identifies 192.192.192.233 in ifTable

21 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

22 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…

23 Chapter 7  Management Information Base (MIB) 22 Meterware Network View  Summary view

24 Chapter 7  Management Information Base (MIB) 23 Meterware Network View  MIB browser for Switch 2

25 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

26 Chapter 7  Management Information Base (MIB) 25 Set Command  Note that Port 3 of Switch2 connects to SERVER = port 3

27 Chapter 7  Management Information Base (MIB) 26 Set Command  Ping SERVER (192.192.192.242) from WS1

28 Chapter 7  Management Information Base (MIB) 27 Set Command  Set ifAdminStatus of port 3 on switch2 to “down”

29 Chapter 7  Management Information Base (MIB) 28 Set Command  Meterware shows port 3 is down o 1 == up o 2 == down

30 Chapter 7  Management Information Base (MIB) 29 Set Command  Again, ping SERVER from WS1

31 Chapter 7  Management Information Base (MIB) 30 Enterprise MIBs  hp is node for Hewlett Packard  What, no Cisco node?

32 Chapter 7  Management Information Base (MIB) 31 Cisco Catalyst MIB

33 Chapter 7  Management Information Base (MIB) 32 Compile Cisco MIB  Compile ESSWITCH-MIB-MY2 1 2 3

34 Chapter 7  Management Information Base (MIB) 33 Compile Cisco MIB  Compile ESSWITCH-MIB-MY2

35 Chapter 7  Management Information Base (MIB) 34 Enterprise Node  Why “grandjunction” ?

36 Chapter 7  Management Information Base (MIB) 35 Grandjunction node  Children of “series 2000”

37 Chapter 7  Management Information Base (MIB) 36 sysInfo node  Select sysInfoNumberOfSwitchPorts…  What should we find?

38 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!

39 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

40 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


Download ppt "Chapter 7  Management Information Base (MIB) 1 Chapter 7 Overview  Structure of management info (SMI)  Definition of mib-2 objects  Use of MIB browser."

Similar presentations


Ads by Google