2010/4/7 X Z :
> Here are the original c & h files.
The problem lies with the registration of the table.
In particular, how you specified the list of indexes.
You had:
netsnmp_table_helper_add_indexes(table_info, ASN_UNSIGNED, 1);
which should have been
netsnmp_table_helper_add_indexes
2010/4/6 X Z :
> Attached please find the code I used. It's from mib2c.iterator -S 1 option.
This code cannot possibly work.
It registers a routine 'myTable_handler' to process requests,
but there is no such routine in the file.
(You've also omitted to include the header file 'myTable.h')
We can
2010/4/5 X Z :
> Sorry for the typo. I modified the MIB text so that the index and table name
> are easy to read, but I forgot to change this Index name, it should be
> MyIndex.
No - it should be "myIndex".
MIB object names must start with a lower-case letter.
> I got rid of the index out of ra
2010/3/30 X Z :
>> What does the MIB file look like.
>>
>
>
> Index OBJECT-TYPE
> SYNTAX Unsigned32 (1..4294967295)
> MAX-ACCESS not-accessible
> STATUS current
>
> myStatus OBJECT-TYPE
> SYNTAX INTEGER
> MAX-ACCESS read-only
> STATUS
2010/3/30 X Z :
> I implemented a table using iterator, and I can do snmpwalk on the table.
> But snmpget gave the Index out of range error. Table index starts from 1.
What is the exact command you used?
What does the MIB file look like.
> Here is related the code piece, can anyone point out wh
Hi,
I implemented a table using iterator, and I can do snmpwalk on the table. But
snmpget gave the Index out of range error. Table index starts from 1. Here is
related the code piece, can anyone point out where I did wrong?
int myTable_load(netsnmp_cache * cache, void *vmagic)
{
struct myTab