MIB desgin problem.

Noppadol Sotanakul <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
 

Hello,

 

   Could you please help me verify this part of MIB if it is valid or not? In fact, there is a 'ccc' table in 'abc' table but instead of using 'INDEX' for a-table-within-a-table approach, I design it like this 

 

 

 abcTable   OBJECT-TYPE
   SYNTAX   SEQUENCE OF AbcEntry
   ACCESS   not-accessible
   STATUS   optional
   DESCRIPTION
      "A list of abc"
   ::= { nnn 1 }
    
 abcEntry   OBJECT-TYPE
   SYNTAX   AbcEntry
   ACCESS   not-accessible
   STATUS   optional
   DESCRIPTION
       "..."
   INDEX { instance }
   ::= { abcTable 1 }

 

 AbcEntry ::= SEQUENCE {
 instance   OCTET STRING,
      abc   OBJECT IDENTIFIER
 }
   
 instance   OBJECT-TYPE
   SYNTAX   OCTET STRING
   ACCESS   read-only
   STATUS   optional
   DESCRIPTION
       "..."
   ::= { abcEntry 1 }

 

 abc OBJECT IDENTIFIER ::= { abcEntry 2 }

 

      aaa   OBJECT-TYPE
   SYNTAX   OCTET STRING
   ACCESS   read-only
   STATUS   optional
   DESCRIPTION
       "..."
   ::= { abc 1 }

 

      bbb   OBJECT-TYPE
   SYNTAX   OCTET STRING
   ACCESS   read-only
   STATUS   optional
   DESCRIPTION
       "..."
   ::= { abc 2 }

 

 cccTable   OBJECT-TYPE
   SYNTAX   SEQUENCE OF CccEntry
   ACCESS   not-accessible
   STATUS   optional
   DESCRIPTION
       "A list of ccc"
   ::= { abc 20 }

 

 cccEntry   OBJECT-TYPE
   SYNTAX   CccEntry
   ACCESS   not-accessible
   STATUS   optional
   DESCRIPTION
       "..."
   INDEX { name }

   ::= { cccTable 1 }

 

 CccEntry ::= SEQUENCE {
     name   OCTET STRING,
       id   Integer32,
    state   OCTET STRING
}

 

     name   OBJECT-TYPE
   SYNTAX   OCTET STRING
   ACCESS   read-write
   STATUS   optional
   DESCRIPTION
       "Name"
   ::= { cccEntry 1 }

 

       id   OBJECT-TYPE
   SYNTAX   Integer32
   ACCESS   read-only
   STATUS   optional
   DESCRIPTION
       "id"
   ::= { cccEntry 2 }

  

    state   OBJECT-TYPE
   SYNTAX   OCTET STRING
   ACCESS   read-only
   STATUS   optional
   DESCRIPTION
       "state"
   ::= { cccEntry 3 }

 

END

 

I'm not quite sure if this design is correct or not, please help...

 

Thank you very much.

 

Best regards,

Noppadon.

_________________________________________________________________
Windows Live™ SkyDrive™: Get 25 GB of free online storage.  
http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_skydrive_042009

------------------------------------------------------------------------------
Crystal Reports &#45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty&#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.