Re: NET SNMP TEXT COMMANDS

2010-03-05 Thread Ajeet Gupta
Hello Dave, I m getting foloowing problem while installing net-snmp 5.4.2.1 from tar ball on fedora core 10 machine. - ./configure runs fine.. - Net-SNMP configuration summary: ---

Is storing pointers to table rows safe?

2010-03-05 Thread Philip Mason
Hello all, I'm using the table_dataset helper to create an agent with some tables and I store the pointers to the table rows after I create them so I can update the values later using "netsnmp_set_row_column". I'm seeing a problem where sometimes in table_dataset_clone_row memdup creates a new tab

Subagent PDU register and derigster dynamically

2010-03-05 Thread Pavan mangala
hi, I am using net SNMP 5.5 version. one of the project i am working on has requirement like net snmp subagent(agentx) register and unregistered PDU with context names dynamically with out disturbing the running subagent. is it possible with current net SNMP version. if it is possible let me know

Re: NET SNMP Sub agent Row of multiple indexes

2010-03-05 Thread Dave Shield
On 5 March 2010 10:59, Ashish vashishtha wrote: > Now in the handler function of the table how i can get the two indices ? Use the field 'row->indexes' This contains a varbind *list* containing the parsed index values extracted from the incoming request. > in this row i am unable to find the tw

Re: NET SNMP Sub agent Row of multiple indexes

2010-03-05 Thread Ashish vashishtha
yes you are right. before calling netsnmp_table_data_add_row() i am calling netsnmp_table_row_add_index twice. netsnmp_table_row *row; row = netsnmp_create_table_data_row(); netsnmp_table_row_add_index(row, ASN_GAUGE,&nIndex,sizeof(nIndex)); netsnmp_table_row_add_in

Re: NET SNMP Sub agent Row of multiple indexes

2010-03-05 Thread Dave Shield
On 5 March 2010 09:55, Ashish vashishtha wrote: > for adding the row to the table i am using netsnmp_table_row_add_index > function. > > netsnmp_table_row_add_index(row,ASN_GAUGE,&Index,sizeof(Index)) No. netsnmp_table_row_add_index() is used to define the indexing for this row of the table

NET SNMP Sub agent Row of multiple indexes

2010-03-05 Thread Ashish vashishtha
Hello , how we can create a row having multiple index of type ASN_GAUGE in mib2c.create-dataset.conf approch. i have a table that contains two index of type ASN_GAUGE. for adding the row to the table i am using netsnmp_table_row_add_index function. netsnmp_table_row_add_index(row,ASN_GAUGE,&I