Index in Table .... request for explanation

"m.zeeshan" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Dear User/Coders,

Explanation-1:

I have following MIB for table .......


--------------------------------------
peerTable OBJECT-TYPE
    SYNTAX      SEQUENCE OF PeerTableEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
	"This table merely contains a set of data which is otherwise."
    ::= { tableHSS 1 }

peerTableEntry OBJECT-TYPE
    SYNTAX      PeerTableEntry
    MAX-ACCESS  not-accessible
    STATUS      current
    DESCRIPTION
	"A row describing a given working group"
    INDEX   { peerIdentity }
    ::= {peerTable 1 }

PeerTableEntry ::= SEQUENCE {
	peerIdentity	OCTET STRING,
	peerRole	OCTET STRING,
	peerIPAddress	OCTET STRING,
    	peerPort	Integer32
}


peerIdentity OBJECT-TYPE
    SYNTAX      OCTET STRING (SIZE(1..32))
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
	"The name of the IETF Working Group this table describes."
    ::= { peerTableEntry 1 }

peerRole OBJECT-TYPE
    SYNTAX      OCTET STRING
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
	"One of the names of the chairs for the IETF working group."
    ::= { peerTableEntry 2 }

peerIPAddress OBJECT-TYPE
    SYNTAX      OCTET STRING
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
	"The other name, if one exists, of the chairs for the IETF
	working group."
    ::= { peerTableEntry 3 }


peerPort OBJECT-TYPE
    SYNTAX      Integer32
    MAX-ACCESS  read-write
    STATUS      current
    DESCRIPTION
	"The mode number for the current operation being performed."
    ::= { peerTableEntry 4 }

------------------------------------------------------------





Explanation-2:

I have generated code using the following command...mib2c -c

mib2c.create-dataset.conf peerTable








Explanation-3:

I have added the initial values in the table using same directions and
sample code given in the "nsTransactionTable" example ............





QUIRES:

1. i am unable to walk the initial values, when i do so with the
following command, the the next said error is returned.

snmpwalk -v 3 -u wes -n "" -l authNoPriv -a MD5 -A passphras localhost
peerTable

CM-HSS-IMS-MIB::peerTable = No Such Object available on this agent at
this OID

While if i set new values with the snmpset command then later i can use
walk to see the new added values with set command.

2. the thing i m surely missing is the neat understanding of Indexed
and/or the purpose of like "snmpv3" tag at the end of each
nsTransactionTable entry ........ like following...

CM-HSS-IMS-MIB::peerRole."snmpv3" = STRING: "sh-client"

why we need this last tag ...... of ....  ."snmpv3"

3. i surely am unable to understand indexes and the above tag, through
out the process of writing mib as well as coding for use..... 


I think i have taken enough time of ur, was just trying to explain the
situation exactly, please help me with that.


Regards,

-zeeshan






------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
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.