need help on netsnmp_table_row_add_index()

rakesh zingade <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

I have generated code using mib2c.create-dataset.conf for my
GetCurrentAlmTable.
The table has 3 columns and 1 index of type ASN_OBJECT_ID, I have used
netsnmp_table_row_add_index() function to add index of type ASN_OBJECT_ID.

sample code:
                        static oid      LOSAlarm_oid[] = {1, 3, 6, 1, 4,
1,100,101,1};
                        size_t          LOSAlarm_oid_len =
OID_LENGTH(LOSAlarm_oid);

                         /*some code for table_set*/

                        netsnmp_table_set_add_indexes(table_set,
ASN_OBJECT_ID,0)

                        /* some code for handler registration */

                        row = netsnmp_create_table_data_row();
                        netsnmp_table_row_add_index(row, ASN_OBJECT_ID,
LOSAlarm_oid, LOSAlarm_oid_len);

but when I performed talk walk it showed index as
ALM-MIB::AlmState.2.1.3 = INTEGER: 50
ALM-MIB::AlmValue.2.1.3 = STRING: "LossOfSignal"
ALM-MIB::AlmLogTime.2.1.3 = Timeticks: (808464433) 93 days, 13:44:04.33

why its not showing full index value as '1, 3, 6, 1, 4, 1,100,101,1'??
and it also shows "AlmState.2" does 2 indicates size of index??

please help...

thanks and regards....
-- 
Rakesh P. Zingade
+919420626099

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

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