Snmp set doubt

<[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,
   I am implementing snmpset the index is a string index I used
following command to generate the .c and .h files
./mib2c -c mib2c.iterate.conf Vlan-MIB::VlanTable

The command is is
./snmpset -v 2c -c private localhost Vlan-MIB::Vlantype.\'lr\' i  1

But in the case MODE_SET_RESERVE1 I am printing the value of the index
but I am getting null 

for (request = requests; request; request = request->next) {
            table_info = netsnmp_extract_table_info(request);
             printf("Vlan name is %s", table_info->indexes->val.string);

Same is working if the index is integer.

Regards,
Sasikumar.B 


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