IDA_RepeatVarBindBuild

 

int IDA_RepeatVarBindBuild(idaVarID_t varObjID,

         void *instancep,

         uint instanceLen,
         void *datap,

                            uint dataLen,

                            ubyte varType);

 

Parameters

varObjID

[in] IDA form of MIB variable object identifier. IDAApis.h has #defines for all possible values.

instancep     

[in] Pointer to the instance identifier data. Can be NULL. NULL on IDA_SET, or IDA_GET implies instance 0.

instanceLen  

[in] Len of instance data.

datap           

[in] Pointer to variable data. Used only on SET. Should be NULL for any GET function.

dataLen        

[in] Len of data.

varType        

[in] SNMP variable type. Can be 0. If non-zero, varType is validated at the agent.

Return Value

0 indicates success.

Non-zero return codes are defined in the InSight include file IDAApis.h.

Remarks

This method is an alternative to the IDA_GetVars and IDA_SetVars. This method is called to add specific VarId requests to the IDA request buffer. Once all desired VarIds have been added, the request is sent via the IDA_SessionRequest() method.

This method may be called multiple times to add multiple VarId requests to the request structure.

Example

IDA_InitRequest(IDA_SET, 0);

sprintf(data, "1");

IDA_VarBindBuild(IDAN_ClientSessUserName, NULL, 0, data, strlen(data), SNMP_TYPE_DisplayString);

sprintf(data, "1");

IDA_VarBindBuild(IDAN_ClientSessPassword, NULL , 0, data, strlen(data), SNMP_TYPE_DisplayString);

rc = IDA_SessionRequest(&servID, Req, Rsp, (qsaVarCBProc_t *)&ProcessSetResponse, NULL);

 

See Also

IDA_VarBindBuild , IDA_SessionRequest , IDA_InitRequest

 

 


Converted from CHM to HTML with chm2web Pro 2.85 (unicode)