DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Sample MIB

Sample MIB

This is an example of a SNMP MIB file corresponding to the phonebook example's DMI MIF file /usr/src/dmi/samples/CI_support/phonebook/phonebook.mif.

   -- Phonebook MIB
   

PHONEBOOK_MIF-MIB DEFINITIONS ::= BEGIN

IMPORTS enterprises FROM RFC1155-SMI InternationalDisplayString FROM HOST-RESOURCES-MIB OBJECT-TYPE FROM RFC-1212 Counter,Gauge, DisplayString FROM RFC1213-MIB Dmi_Date,Dmi_Integer64, dmiEventDateTime,dmiCompId,dmiEventSeverity, dmiEventStateKey,dmiEventAssociatedGroup, dmiEventSystem,dmiEventSubSystem FROM DMTF-DMI;

DmiCounter ::= Counter DmiCounter64 ::= Counter64 DmiGauge ::= Gauge DmiInteger ::= INTEGER DmiOctetstring ::= OCTET STRING DmiDisplaystring ::= DisplayString DmiCompId ::= INTEGER DmiGroupId ::= INTEGER

dmtf OBJECT IDENTIFIER ::= { enterprises 412 } sco OBJECT IDENTIFIER ::= { enterprises 32 } dmtfStdMifs OBJECT IDENTIFIER ::= { dmtf 2 } dmtfDynOids OBJECT IDENTIFIER ::= { dmtf 3 }

SdMTFComponentID ::= SEQUENCE { manufacturerAtt1 DmiDisplaystring, productAtt2 DmiDisplaystring, versionAtt3 DmiDisplaystring, serialNumberAtt4 DmiDisplaystring, installationAtt5 Dmi_Date, verifyAtt6 DmiInteger } dmtfServiceLayerMIF OBJECT IDENTIFIER ::= { dmtfStdMifs 1 }

dMTFComponentIDTable OBJECT-TYPE SYNTAX SEQUENCE OF SdMTFComponentID ACCESS not-accessible STATUS mandatory DESCRIPTION "" ::= { dmtfServiceLayerMIF 1 }

dMTFComponentIDEntry OBJECT-TYPE SYNTAX SdMTFComponentID ACCESS not-accessible STATUS mandatory DESCRIPTION "" INDEX { DmiCompId,DmiGroupId } ::= { dMTFComponentIDTable 1 }

manufacturerAtt1 OBJECT-TYPE SYNTAX DmiDisplaystring ACCESS read-only STATUS mandatory DESCRIPTION "" REFERENCE "'DMTF|ComponentID|001' 1" ::= { dMTFComponentIDEntry 1 }

productAtt2 OBJECT-TYPE SYNTAX DmiDisplaystring ACCESS read-only STATUS mandatory DESCRIPTION "" REFERENCE "'DMTF|ComponentID|001' 2" ::= { dMTFComponentIDEntry 2 }

versionAtt3 OBJECT-TYPE SYNTAX DmiDisplaystring ACCESS read-only STATUS mandatory DESCRIPTION "" REFERENCE "'DMTF|ComponentID|001' 3" ::= { dMTFComponentIDEntry 3 }

serialNumberAtt4 OBJECT-TYPE SYNTAX DmiDisplaystring ACCESS read-only STATUS mandatory DESCRIPTION "" REFERENCE "'DMTF|ComponentID|001' 4" ::= { dMTFComponentIDEntry 4 }

installationAtt5 OBJECT-TYPE SYNTAX Dmi_Date ACCESS read-only STATUS mandatory DESCRIPTION "" REFERENCE "'DMTF|ComponentID|001' 5" ::= { dMTFComponentIDEntry 5 }

verifyAtt6 OBJECT-TYPE SYNTAX DmiInteger ACCESS read-only STATUS mandatory DESCRIPTION "" REFERENCE "'DMTF|ComponentID|001' 6" ::= { dMTFComponentIDEntry 6 }

SsCOPhoneBook ::= SEQUENCE { sCOPhoneBookState INTEGER, telephoneNumberAtt1 DmiInteger, userNameAtt2 DmiDisplaystring, areaAtt3 DmiDisplaystring }

sCOPhoneBookTable OBJECT-TYPE SYNTAX SEQUENCE OF SsCOPhoneBook ACCESS not-accessible STATUS mandatory DESCRIPTION "" ::= { sco 999 1 }

sCOPhoneBookEntry OBJECT-TYPE SYNTAX SsCOPhoneBook ACCESS not-accessible STATUS mandatory DESCRIPTION "" INDEX { DmiCompId,DmiGroupId, telephoneNumberAtt1 } ::= { sCOPhoneBookTable 1 }

sCOPhoneBookState OBJECT-TYPE SYNTAX INTEGER { active(1), notInService(2), notReady(3), createAndGo(4), createAndWait(5), destroy(6) } ACCESS read-write STATUS mandatory REFERENCE "'Caldera|Phone Book|208' 0" ::= { sCOPhoneBookEntry 0 }

telephoneNumberAtt1 OBJECT-TYPE SYNTAX DmiInteger ACCESS read-only STATUS mandatory DESCRIPTION "" REFERENCE "'Caldera|Phone Book|208' 1" ::= { sCOPhoneBookEntry 1 }

userNameAtt2 OBJECT-TYPE SYNTAX DmiDisplaystring ACCESS read-write STATUS mandatory DESCRIPTION "" REFERENCE "'Caldera|Phone Book|208' 2" ::= { sCOPhoneBookEntry 2 }

areaAtt3 OBJECT-TYPE SYNTAX DmiDisplaystring ACCESS read-write STATUS mandatory DESCRIPTION "" REFERENCE "'Caldera|Phone Book|208' 3" ::= { sCOPhoneBookEntry 3 }

sCOPhoneBookEvSys OBJECT-TYPE SYNTAX INTEGER { thePhoneBookSystem(1) } ACCESS not-accessible STATUS mandatory DESCRIPTION "" ::= { sCOPhoneBookTable 6 }

sCOPhoneBookEvSub OBJECT-TYPE SYNTAX INTEGER { none(0) } ACCESS not-accessible STATUS mandatory DESCRIPTION "" ::= { sCOPhoneBookTable 7 }

sCOPhoneBookEvt0 TRAP-TYPE ENTERPRISE sCOPhoneBookTable VARIABLES { dmiEventDateTime, dmiCompId, dmiEventSeverity, dmiEventStateKey, dmiEventAssociatedGroup, sCOPhoneBookEvSys, sCOPhoneBookEvSub } DESCRIPTION "phoneAdded" REFERENCE "'Caldera|Phone Book|208' 0" ::= 0

sCOPhoneBookEvt1 TRAP-TYPE ENTERPRISE sCOPhoneBookTable VARIABLES { dmiEventDateTime, dmiCompId, dmiEventSeverity, dmiEventStateKey, dmiEventAssociatedGroup, sCOPhoneBookEvSys, sCOPhoneBookEvSub } DESCRIPTION "phoneDeleted" REFERENCE "'Caldera|Phone Book|208' 1" ::= 1

sCOPhoneBookEvt2 TRAP-TYPE ENTERPRISE sCOPhoneBookTable VARIABLES { dmiEventDateTime, dmiCompId, dmiEventSeverity, dmiEventStateKey, dmiEventAssociatedGroup, sCOPhoneBookEvSys, sCOPhoneBookEvSub } DESCRIPTION "phoneChanged" REFERENCE "'Caldera|Phone Book|208' 2" ::= 2

END


© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004