[AGENT++] Problem in answering get_request vith multiple VBs

Dario maljur dmaljur at elma.hr
Wed May 30 08:34:56 CEST 2007


Hello.

The problem is next. I am sending get_request to the agent with oids that
specify 1 row in the table.

Like this

[code]

 vb.set_oid(col1);

 pdu+=vb;

 vb.set_oid(col2);

 pdu+=vb;

 .

[/code]

 

 But in overloaded get_request in my mib table, when getting vbCount it gets
correct number of vbs, but the oids are all the same.

 [code]

 Pdux *pdu = req->get_pdu();

 int count = pdu->get_vb_count();

 

 Vb *vbList = new Vb[count];

 pdu->get_vblist(vbList,count);

 for (int c=0;c<count;c++)

      {

       Printf("vb[%d] = %s\n",c,vbList[c].get_printable_oid());

      }

[/code]

Output would be: 

vb[0].oid = 1.3.6.1.4.1.ent.8.1.1.1

vb[1].oid = 1.3.6.1.4.1.ent.8.1.1.1

vb[2].oid = 1.3.6.1.4.1.ent.8.1.1.1

vb[3].oid = 1.3.6.1.4.1.ent.8.1.1.1

vb[4].oid = 1.3.6.1.4.1.ent.8.1.1.1

 

but the request input was

vb[0].oid = 1.3.6.1.4.1.ent.8.1.1.1

vb[1].oid = 1.3.6.1.4.1.ent.8.1.2.1

vb[2].oid = 1.3.6.1.4.1.ent.8.1.3.1

vb[3].oid = 1.3.6.1.4.1.ent.8.1.4.1

vb[4].oid = 1.3.6.1.4.1.ent.8.1.5.1

 

Why is this happening, and how can i get correct oid values?

 

 

 




ELMA Kurtalj d.o.o. (ELMA Kurtalj ltd.)
Vitezićeva 1a, 10000 Zagreb, Hrvatska (Viteziceva 1a, 10000 Zagreb, Croatia)
Tel: 01/3035555, Faks: 01/3035599 (Tel: ++385-1-3035555, Fax: ++385-1-3035599 )

Www:
www.elma.hr; shop.elma.hr

E-mail:
elma at elma.hr (elma at elma.hr)
pitanje at elma.hr (questions at elma.hr)
primjedbe at elma.hr (complaints at elma.hr)
prodaja at elma.hr (sales at elma.hr)
servis at elma.hr (servicing at elma.hr)
shop at elma.hr (shop at elma.hr)
skladiste at elma.hr (warehouse at elma.hr)



More information about the AGENTPP mailing list