[Page Précédente][Page Suivante]

MIB [Sommaire]

PRIVATE MIB



Les MIBs privées des sociétés trouvent leur place sous le noeud Enterprises dans l'arbre de nommage :



Prenons pour exemple la MIB privée de la société Teklogix:

Son OID est 1.3.6.1.4.1.752 : iso.org.dod.internet.private.enterprises.teklogix
 
TlxSystem						(1)
  tlxSysTerminal					(1.1)
    tlx7025						(1.1.1)
    tlx8045						    (2)
    tlx8050						    (3)

 tlxSyscontroller					(1.1.2)
    tlxTEKPC						    (1)
    tlx9020						    (2)
    tlx9130						    (3)
    tlx9200						    (4)


TlxMib							(2)

  tlxConf			  			(2.1)

    tlxConfSystem					(2.1.1)

      tlxConfSysSerial		0			(2.1.1.1)
      tlxConfSysNHost		1			      (2)
      tlxConfSysNBase		0			      (3)
      tlxConfSysNRRMG		1			      (4)
      tlxConfSysNTerm		32			      (5)

    tlxConfHostTable					(2.1.2)

      tlxConfHostEntry					(2.1.2.1)

        tlxConfHostNumber	1			(2.1.2.1.1)
  ex.   tlxConfHostPort		EAEther				(2)
  ci-   tlxConfHostPortSpeed	9600			  	(3)
dessous "tlxConfHostName"	HP			        (4)
        tlxConfHostProto	tcpip			        (5)
        tlxConfHostEmulation	ansi			        (6)
        tlxConfHostTrmMap1	1			        (7)
        tlxConfHostTrmMap2	32			        (8)


        ...
        
        
        
Exemple:
Pour avoir la valeur de tlxConfHostPortSpeed, il faut interroger :
1.3.6.1.4.1.752.2.1.2.1.3 qui correspond à :
iso.org.dod.internet.private. enterprises.teklogix.tlxMib.tlxConf.tlxConfHostTable.
tlxConfHostEntry.tlxConfHostPortSpeed 
Dans notre cas : 9600 (bauds)

Pour voir l'application de la syntaxe ASN1, on montre la description du début de cette MIB (après accord).


TLX-NIB DEFINITIONS ::= BEGIN

teklogix OBJECT IDENTIFIER ::= { enterprises 752 }

tlxSystem OBJECT IDENTIFIER ::= { teklogix 1 }
tlxMib OBJECT IDENTIFIER ::= { teklogix 2 } .

-- Teklogix Hardware Object Identifiers

   -- This branch contains object identifiers for
   -- Teklogix system components.

      tlxsysTerminal OBJECT IDENTIFIER ::= { tlxsystem 1 }

   tlx7025 OBJECT IDENTIFIER ::= { tlxsysTerminal 7025 }
   tlx8045 OBJECT IDENTIFIER : := { tlxsysTerminal 8045 }
   tlx8050 OBJECT IDENTIFIER ::= { tlxsysTerminal 8050 }

   tlxsyscontroller OBJECT IDENTIFIER ::= { tlxsystem 2 }

   tlxTEKPC OBJECT IDENTIFIER ::= { tlxsyscontroller 1 }
   tlx9020 OBJECT IDENTIFIER ::= { tlxsyscontroller 9020 }
   tlx9200 OBJECT IDENTIFIER ::= { tlxsyscontroller 9200 }
   tlx9130 OBJECT IDENTIFIER ::= { tlxsyscontroller 9130 }
-- tlx9300 OBJECT IDENTIFIER ::= { tlxsyscontroller 9300 }

-- Teklogix MIB Data Objects
   -- This is the branch where the network managment objects
   -- are found. There are two main sub-trees:
   -- tlxConf contains Configuration data.
   -- tlxStatus contains Status and Statistics data.

   -- Configuration Data
   -- The configuration data obtainable via SNMP corresponds
   -- in general to the configuration data set in the Network
   -- Controller's non-volatile memory with the "conf' utility program.
   -- For more information on the interpretation of the following
   -- items, see the appropriate equipment manual.

tlxconf OBJECT IDENTIFIER : := { tlxMib 1 }

-- System Configuration Data

tlxConfSystem OBJECT-TYPE -- controller info
   SYNTAX TLXConfSystem
   ACCESS read-Only
   STATUS mandatory
   DESCRIPTION
      "A Table of the basic configuration information
       for the Network Controller"
   ::= { tlxConf 1 }

TLXConfSystem ::= SEQUENCE {
   tlxconfSysserial INTEGER, -- box serrial number
   tlxconfSysNHost INTEGER, -- number of hosts
   tlxconfSysNBase INTEGER, -- number of Base connections
   tlxconfSysNRRMG INTEGER, -- number of RAM Groups
   tlxconfSysNTerm INTEGER -- number of terminals
}

          ...

Remarques :
A priori, la station d'administration désirant gérer un agent qui utilise une MIB privé devra compiler cette MIB de manière à intégrer ces variables dans la base de la station gérante afin d'assurer la compatibilité de l'information.
Le compilateur de MIB est un programme d'interprétation qui accepte en entrée une MIB (stockée dans un fichier en syntaxe ASN1) et crée en sortie une MIB exploitable par la station d'administration.
[Page Précédente][Page Suivante]