Re: dynamic indexing..

2007-05-08 Thread Dave Shield
On 08/05/07, Senthil Nathan <[EMAIL PROTECTED]> wrote: > Here, i have a mib table indexed by internal index... > presently,i fixed the index range as 20. But i need the indexing should not > be fixed. So don't fix it. If you've got a variable holding the maximum v

dynamic indexing..

2007-05-07 Thread Senthil Nathan
position count style loop context.So presently,i fixed the index range as 20. But i need the indexing should not be fixed. Here with i have given my code of get{first,next}hooks and my index api also. /* New Definition */ typedef struct alarmHisTable_entry { /* Index values */ long

Re: Indexing...

2007-04-16 Thread Dave Shield
On 16/04/07, Senthil Nathan <[EMAIL PROTECTED]> wrote: > Regarding this position style loop context,the index of the table generated > by me . Pls any one ,help us , how to generate the simple index other than > position style loop context. It's not clear to me exactly what you mean by this. But

Indexing...

2007-04-15 Thread Senthil Nathan
Dear Friends, Greetings to all. I have been using net-snmp 5.3.1 in my project.Regarding my project ,the subagent get the data from other system not its own. I am using mib2c iterator conf for my mib tables.I have used the position count as my loop context Regarding this position style loop c

Re: 0-based or 1-based indexing

2006-06-20 Thread Dave Shield
Thanks for the clarification, David. You are quite correct - I was thinking/talking in terms of the full OID of an entry in a table (i.e. a column instance). And specifically one indexed by a single integer. The final subidentifier of the OID of a MIB definition cannot be 0, regardless of whether

Re: 0-based or 1-based indexing

2006-06-20 Thread David T. Perkins
HI, Let me be stronger in response than Dave Shield. See inline below. On Tue, 20 Jun 2006, Dave Shield wrote: > [EMAIL PROTECTED] wrote: > > But are _all_ OIDs that end in > >0 scalars? Is that just a convention or is it a contraint imposed by > >SNMP or an

Re: 0-based or 1-based indexing

2006-06-20 Thread Dave Shield
[EMAIL PROTECTED] wrote: > But are _all_ OIDs that end in >0 scalars? Is that just a convention or is it a contraint imposed by >SNMP or an unavoidable outcome of how OIDs are generated and handled? > > It's a convention. There's nothing to say that you *can

0-based or 1-based indexing

2006-06-19 Thread cnelson
I know that, for example, ifIndex is 1-based so you have rows in interfaces that are numbered starting with 1. And many OIDs that end in 0 are scalars (e.g., system.sysDescr.0). But are _all_ OIDs that end in 0 scalars? Is that just a convention or is it a contraint imposed by SNMP or an unavoid

Re: indexing rows using table_data helper?

2005-06-10 Thread Vance Shipley
On Fri, Jun 10, 2005 at 11:39:19AM -0400, Vance Shipley wrote: } } Should this result in the OID of each index being registered? Ahh ... yes, it does. Never mind. :) -Vance --- This SF.Net email is sponsored by: NEC IT Guy Games.

indexing rows using table_data helper?

2005-06-10 Thread Vance Shipley
I'm using a table_data helper in my agent. I don't seem to be getting my rows indexed as I get "No Such Instance currently exists at this OID". In my instrumentation code I register the table: netsnmp_register_table_data() Then I add each of the rows: netsnmp_create_table_data_row()

Re: Does net-snmp support inter-table indexing?

2005-03-17 Thread Robert Story
On Thu, 17 Mar 2005 08:13:42 -0600 Bogdan wrote: BA> I mean using as index for a table the index from another table(i.e BA> ifIndex). Ah, ok. Index handling is done in the module handlers, so it is up to the individual handlers to share indexes. There are a few examples, I think. The host resourc

Re: Does net-snmp support inter-table indexing?

2005-03-17 Thread Bogdan Antonovici
inter-table indexing? On 04 Mar 2005 10:59:45 -0600 bogdan wrote:BA> I am new with net-snmp and i would like to know if there is support forBA> inter-table indexing (from what i tried it doesn't seem to be there).Can you explain what you mean by inter-table indexing?-- R

Re: Does net-snmp support inter-table indexing?

2005-03-16 Thread Robert Story
On 04 Mar 2005 10:59:45 -0600 bogdan wrote: BA> I am new with net-snmp and i would like to know if there is support for BA> inter-table indexing (from what i tried it doesn't seem to be there). Can you explain what you mean by inter-table indexing? -- Robert Story; NET-SNMP Jun

Does net-snmp support inter-table indexing?

2005-03-08 Thread bogdan antonovici
I am new with net-snmp and i would like to know if there is support for inter-table indexing (from what i tried it doesn't seem to be there). Thank you Bogdan --- SF email is sponsored by - The IT Product Guide Read honest & candid r

Re: prtStorageRefTable indexing

2005-03-01 Thread Robert Story
On Fri, 25 Feb 2005 10:09:36 -0700 Lisa wrote: LM> I'm implementing the Printer-MIB as an AgentX subagent, but I'm running LM> into a problem trying to implement the prtStorageRefTable. One of its LM> indices is hrStorageIndex from HOST-RESOURCES-MIB. For example, if LM> hrStorageTable uses index '

prtStorageRefTable indexing

2005-02-25 Thread Lisa Morgan
I'm implementing the Printer-MIB as an AgentX subagent, but I'm running into a problem trying to implement the prtStorageRefTable. One of its indices is hrStorageIndex from HOST-RESOURCES-MIB. For example, if hrStorageTable uses index '101' for some RAM that's used by the printer, then prtStorageRe