1 / 39

Chapter 7 Overview

Chapter 7 Overview. Structure of management info (SMI) Definition of mib-2 objects Use of MIB browser MIB compiler MIB editor. Intro. In Chapter 6, we looked at SMI tree Here, interested in mib-2 branch On mib-2 branch There is an almost endless number of things that could be monitored

tamah
Download Presentation

Chapter 7 Overview

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  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) 1

  2. Intro • In Chapter 6, we looked at SMI tree • Here, interested in mib-2 branch • On mib-2 branch • There is an almost endless number of things that could be monitored • But don’t want performance to suffer • Therefore, mib-2 is limited Chapter 7  Management Information Base (MIB) 2

  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 Chapter 7  Management Information Base (MIB) 3

  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” • Currently only NIST and DoD Chapter 7  Management Information Base (MIB) 4

  5. dod (6) • Under dod (6), there is only internet (1) • Under internet (1) • directory (1) for DoD services • management (2) for nodes defined in RFCs (administered by IANA) • experimental (3) administered by IANA • private (4), enterprise (1) for proprietary MIBs Chapter 7  Management Information Base (MIB) 5

  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 • Subset used is minimum required • Consistent with SNMP approach (keep it simple) • More details on ASN.1 in Appendix B • Lots of other sources of info available • ASN.1 is like a programming language Chapter 7  Management Information Base (MIB) 6

  7. MIB Objects • Object-Type Macro • 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 • Exceptions are… • …ReferPart and DefValPart Chapter 7  Management Information Base (MIB) 7

  8. sysDescr Object • sysDescr includes • SYNTAX • ACCESS • STATUS • DESCRIPTION • value Chapter 7  Management Information Base (MIB) 8

  9. sysDescr Object • Anything following “” is a comment • system 1 is node 1 under “system” in SMI tree • system is at • 1.3.6.1.2.1.1 • So, system 1 is at • 1.3.6.1.2.1.1.1 Chapter 7  Management Information Base (MIB) 9

  10. sysName • What info does sysName provide? • Node’s domain name • Where does sysName live in SMI tree? • Recall, system is at • 1.3.6.1.2.1.1 • So system 5 is at • 1.3.6.1.2.1.1.5 Chapter 7  Management Information Base (MIB) 10

  11. ipAddrTable • Let’s consider a more complex object definition • Consider ipAddrTable • 4 columns • 1 row for each interface Chapter 7  Management Information Base (MIB) 11

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

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

  14. ipAddrEntry • Use ipAddrTable • Note • Sequence element is a row • Value is ipAddrTable 1, i.e., mib-2.4.20.1 Chapter 7  Management Information Base (MIB) 14

  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 Chapter 7  Management Information Base (MIB) 15

  16. NMS Presentation of mib-2 • Meterware view of mib-2 • Note 10 original groups • system thru snmp • 13 extensions • rmon, etc. Chapter 7  Management Information Base (MIB) 16

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

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

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

  20. WS1 ipAddrTable • ipAdNetMask mask for addresses • ipAdEntBcastAdd • Indicates broadcast address • ipAdEntReasmmax Size • Max size of reassembled datagram Chapter 7  Management Information Base (MIB) 20

  21. Index Object • NMS might not know index object • Then how can NMS construct table? • To get ipAdEntNetMask column… • GetNextRequest(ipAdEntNetMask) to get ipAdEntNetMask.1 • GetNextRequest(ipAsEntNetMask.1) to get ipAdEntNetMask.2 • GetNextRequest(ipAsEntNetMask.2) to get ipAdEntBcastAddr.1, and so on… Chapter 7  Management Information Base (MIB) 21

  22. Meterware Network View • Summary view Chapter 7  Management Information Base (MIB) 22

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

  24. Set Command • Check ifAdminStatus of Switch2 • All 27 ports are “administratively up” • Only ports 3 and 25 are connected • Port 3 connected to SERVER • Port 25 connected to 10Base2 cable Chapter 7  Management Information Base (MIB) 24

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

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

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

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

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

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

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

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

  33. Compile Cisco MIB • Compile ESSWITCH-MIB-MY2 Chapter 7  Management Information Base (MIB) 33

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

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

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

  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) 37

  38. MIB Editor • We have seen how to construct MIB objects as text files and compile • There are MIB editors • User-friendly editor to make correct source code • May be part of NMS or standalone Chapter 7  Management Information Base (MIB) 38

  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 Chapter 7  Management Information Base (MIB) 39

More Related