[AGENT++] Pdu::set_vblist returns PDU too big

dmaljur at elma.hr dmaljur at elma.hr
Tue Feb 13 15:41:40 CET 2007


Hello, I'm using this codo to set vb list for sending trap
Vb *vbList = new Vb[trapCount];
    Vb *pVb = vbList;

    for (int c=0;c<trapCount;c++)
        {
         CString strSelOid = LIST_TrapList.GetItemText(c,2);
         CString strSelVal = LIST_TrapList.GetItemText(c,3);
         
         gData->AppendLog("strSelOid (%d) = %s",c,strSelOid.GetBuffer());
         gData->AppendLog("strSelVal (%d) = %s",c,strSelVal.GetBuffer());
         
         selectedOid = strSelOid.GetBuffer();
         vbList[c].set_oid(strSelOid.GetBuffer());
         vbList[c].set_value(strSelVal.GetBuffer());
        }
         
    int iErr = pdu.set_vblist(pVb,trapCount);  
    printf("pdu.set_vbList ierr = %s (%d)\n",Snmp::error_msg(iErr),iErr);
 

And the return value is allways (1 - PDU too Big) what does it means, why can't I set vb list?
When this trap is fired, only the first vb (vbList[0]) is sent. and the rest aren't.
The version is set to 1 and I'm using CTarget to fire ColdStart traps.
P.S.
I also tried to use   pdu.set_vblist(&vbList[0],trapCount)  and   pdu.set_vblist(vbLisr,trapCount).

Regards.


ELMA Kurtalj d.o.o.
Vitezićeva 1a
10000 Zagreb, Hrvatska
Tel: 01/3035555
Faks: 01/3035599

E-mail:
elma at elma.hr
pitanje at elma.hr
primjedbe at elma.hr
prodaja at elma.hr
inzinjering at elma.hr
servis at elma.hr
shop at elma.hr
skladiste at elma.hr

ELMA Kurtalj ltd.
Viteziceva 1a
10000 Zagreb, Croatia
Tel: ++385-1-3035555
Fax: ++385-1-3035599 

E-mail:
elma at elma.hr
questions at elma.hr
complaints at elma.hr
sales at elma.hr
servicing at elma.hr
shop at elma.hr
warehouse at elma.hr


More information about the AGENTPP mailing list