Re: can i use the random index number for a simple table.

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2009/2/17 venkatgiri <[email protected]>:
> can i use random index number for a simple table.

The usual term is "arbitrary" rather than "random".
It's helpful to an administrator if the index for a given
row is consistent and (ideally) predictable.

But yes - you can use arbitrary index values.


> index OBJECT-TYPE
> SYNTAX  Unsigned32
> MAX_ACCESS   read-only

The access for an index object should really be "not-accessible".
If you walk a table, you're probably interested in the main columns
(x, y, z) rather than the index values.
   And the index is included in the OID of all the other cells in
the table anyway.


> can i have index value as,
> index = 1
> index = 9
> index = 10

Yes.



> if it is allowed to use, then how my snmp agent will respond to the
> SNMPWALK?

A GetNext request on the object 'x' would return 'x.1'   (i.e. index 1)
A GetNext request on 'x.1' would return 'x.9'
A GetNext request on 'x.9' would return 'x.10'
A GetNext request on 'x.10' would return 'y.1'
    (wrapping around to the next column)

Dave

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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.