Here it is:myTable OBJECT-TYPE
    SYNTAX          SEQUENCE OF myTableEntry 
    MAX-ACCESS      not-accessible
    STATUS          current
    DESCRIPTION
        "This table contains….."
    ::= { myInfo 4 }


myTableEntry OBJECT-TYPE
    SYNTAX          MyTableEntry
    MAX-ACCESS      not-accessible
    STATUS          current
    DESCRIPTION
        "This entry contains information about ….."
    INDEX           { cvqsChannelIndex } 
    ::= { myTable 1 }


MyTableEntry ::= SEQUENCE {
        Index            Unsigned32,
        myStatus           INTEGER
}


Index OBJECT-TYPE
    SYNTAX          Unsigned32 (1..4294967295)
    MAX-ACCESS      not-accessible
    STATUS          current
    DESCRIPTION
        "An arbitrary integer-value that uniquely identifies this 
        entry." 
    ::= { myTableEntry 1 }




myStatus OBJECT-TYPE
    SYNTAX          INTEGER
    MAX-ACCESS      read-only
    STATUS          current
    DESCRIPTION
        "This object indicates the current status of this entry." 
    ::= { myTableEntry 2 }



ThanksXuan
> Date: Tue, 30 Mar 2010 08:18:27 +0100
> Subject: Re: Help on Index out of range error ‏
> From: d.t.shi...@liverpool.ac.uk
> To: b...@live.com
> CC: net-snmp-users@lists.sourceforge.net
> 
> 2010/3/30 X Z <b...@live.com>:
> >> What does the MIB file look like.
> >>
> >
> >
> > Index OBJECT-TYPE
> >     SYNTAX          Unsigned32 (1..4294967295)
> >     MAX-ACCESS   not-accessible
> >     STATUS          current
> >
> > myStatus OBJECT-TYPE
> >     SYNTAX          INTEGER
> >     MAX-ACCESS      read-only
> >     STATUS          current
> 
> 
> Those are not valid SMI definitions.
> Please give the *FULL* text of the MIB objects,
> not a truncated version that may omit significant details.
> 
> 
> Preferably attach the complete text of the complete MIB
> file, so we can test things for ourselves.
> 
> Dave
                                          
_________________________________________________________________
Hotmail is redefining busy with tools for the New Busy. Get more from your 
inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID27925::T:WLMTAGL:ON:WL:en-US:WM_HMP:032010_2
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to