Can snmp support nested tables?main-table, parallel table processing VS main-table, sub-table(nested table) processing

"飞飞" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
I want to know which one is better,or right.Here is my code:
 1.main-table,parallel table processing
  
  mappingTable OBJECT-TYPE                           
         SYNTAX              SEQUENCE OF MappingEntry   
         MAX-ACCESS          read-only                                   
         STATUS              current                                             
         DESCRIPTION         "Property tables for each Mapping interface  
                             in the system."                                                
         ::= { mapping 1 }                          
                                                             
     mappingEntry OBJECT-TYPE                           
         SYNTAX              MappingEntry               
         MAX-ACCESS          read-only                       
         STATUS              current                         
         DESCRIPTION         "Mapping interface properties."   
         INDEX               {                               
                              inituuID   
                             }                               
         ::= { mappingTable 1 } 
   MappingEntry ::= SEQUENCE {
   inituuID
   Counter64,
   lunCount
   Counter32  
   }  
     inituuID  OBJECT-TYPE
         SYNTAX       Counter64
         MAX-ACCESS   read-only
         STATUS       current
         DESCRIPTION     
                      "Host/HG Unique Number."
         ::= { mappingEntry 1 }
     lunCount  OBJECT-TYPE
         SYNTAX       Counter32
         MAX-ACCESS   read-only
         STATUS       current
         DESCRIPTION     
                      "Numbers of LUN(Max 128)."
         ::= { mappingEntry 2 }     
                    
 inituuIDTable OBJECT-TYPE                           
         SYNTAX              SEQUENCE OF InituuIDEntry   
         MAX-ACCESS          read-only                                   
         STATUS              current                                             
         DESCRIPTION         "Property tables for each InituuID interface  
                             in the system."                                                
         ::= { mapping 2 }                          
                                                             
     inituuIDEntry OBJECT-TYPE                           
         SYNTAX              InituuIDEntry               
         MAX-ACCESS          read-only                       
         STATUS              current                         
         DESCRIPTION         "InituuID interface properties."   
         INDEX               {                               
                              lun   
                             }                               
         ::= { inituuIDTable 1 } 
   InituuIDEntry ::= SEQUENCE {
   lun
   INTEGER,
   lvnuuID
   Counter64 
   } 
     lun  OBJECT-TYPE
         SYNTAX       INTEGER
         MAX-ACCESS   read-only
         STATUS       current
         DESCRIPTION     
                      "LUN Number."
         ::= { inituuIDEntry 1 }
     lvnuuID  OBJECT-TYPE
         SYNTAX       Counter64
         MAX-ACCESS   read-only
         STATUS       current
         DESCRIPTION     
                      "LV N Unique Number."
         ::= { inituuIDEntry 2 } 
  
 2.main-table,sub-table(nested table) processing
  
 lun&uuID OBJECT IDENTIFIER ::= { mappingEntry  3 } 
  
  lun&uuIDTable OBJECT-TYPE                           
         SYNTAX              SEQUENCE OF Lun&uuIDEntry   
         MAX-ACCESS          read-only                                   
         STATUS              current                                             
         DESCRIPTION         "Property tables for each lun&uuID interface  
                             in the system."                                                
         ::= { lun&uuID 1 }                          
                                                             
     lun&uuIDEntry OBJECT-TYPE                           
         SYNTAX              Lun&uuIDEntry               
         MAX-ACCESS          read-only                       
         STATUS              current                         
         DESCRIPTION         "lun&uuID interface properties."   
         INDEX               {                               
                              lun   
                             }                               
         ::= { lun&uuIDTable 1 }
       Lun&uuIDEntry    ::= SEQUENCE {



 lun
 INTERGE.
 uuID
 Counter64
   }

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev

_______________________________________________
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.