problem about how to write my private mib
"Evan.xu徐松?" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <192A14EBF68DF04CB0078B5CBDECC8FFBC6D40@dpecex01.dpec.deltagroup.com> |
Dear Sir or Madam:
I have some problem in wirting my private mib. I had tried to wirte a testing mib and used mib2c to creat .c and .h code.Sadly, it failed! So I write this mail to get help! The following is my mib!Please help me,Thank you!
Best wishes!
evan.xu
--------------------------------------------------------------------------------------------
MYMIB DEFINITIONS ::= BEGIN
IMPORTS
MODULE-IDENTITY, OBJECT-TYPE, Counter32, Gauge32, Counter64,
Integer32, TimeTicks, mib-2,
NOTIFICATION-TYPE FROM SNMPv2-SMI
TEXTUAL-CONVENTION, DisplayString,
PhysAddress, TruthValue, RowStatus,
TimeStamp, AutonomousType, TestAndIncr FROM SNMPv2-TC
MODULE-COMPLIANCE, OBJECT-GROUP,
IANAifType FROM IANAifType-MIB;
evan OBJECT IDENTIFIER ::= {enterprises 576}
daemongon OBJECT IDENTIFIER ::= {evan 1}
workdays OBJECT-TYPE
SYNTAX INTEGER
ACCESS read-only
STATUS mandatory
DESCRIPTION
"how many days are required to work in a week! "
::={daemongon 1}
workdayTable OBJECT-TYPE
SYNTAX SEQUENCE OF WorkdayEntry
ACCESS not-accessible
STATUS mandatory
DESCRIPTION
"these days are required to work for food!I have to work in these days"
::={daemongon 2}
WorkdayEntry OBJECT-TYPE
SYNTAX WorkdayEntry
ACCESS not-accessible
STATUS mandatory
DESCRIPTION
"these days are required to work for food!"
INDEX {dayIndex}
::= {workdayTable 1}
WorkdayEntry::=SEQUENCE{
dayIndex INTEGER,
breakfast DisplayString,
lunch DisplayString,
supper DisplayString,
working DisplayString
}
dayIndex OBJECT-TYPE
SYNTAX INTEGER(1..5)
ACCESS read-only
STATUS mandatory
DESCRPTION
"An index that uniquely identifies an entry in the workdayTable"
::= {WorkdayEntry 1}
breakfast OBJECT-TYPE
SYNTAX DisplayString (SIZE (1..31))
ACCESS read-write
STATUS mandatory
DESCRIPTION
"what I eat for breakfast!"
::={WorkdayEntry 2}
lunch OBJECT-TYPE
SYNTAX DisplayString (SIZE(1..31))
ACCESS read-write
STATUS mandatory
DESCRIPTION
"what I eat for lunch!"
::={WorkdayEntry 3}
supper OBJECT-TYPE
SYNTAX DisplayString (SIZE(1..31))
ACCESS read-write
STATUS mandatory
DESCRIPTION
"what I eat for supper!"
::={WorkdayEntry 4}
working OBJECT-TYPE
SYNTAX Integer32
ACCESS read-only
STATUS mandatory
DESCRIPTION
"how long I working in a workday!"
::={WorkdayEntry 5}
END
*************************************************************************************************************************
This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
[Delta Electronics (Jiang Su) Ltd]
*************************************************************************************************************************