[AGENT++] What if class derived from MibLeaf contains multiple values.

Jochen Katz katz at agentpp.com
Wed Aug 16 23:35:55 CEST 2006


Hi,

> I have a class derived from MibLeaf  say it's called CCameraMib. The object
> has an oid and the value.
> 
> But Say that CCameraMib class has more values. Like: location, id, and that
> kind of stuff.
> 
> When manager issues GET request, I would like to send all values of that
> Camera MIB. 
> 
>  
> 
> a) Do I have to code all camera info (id, location) in one string and than
> execute get_request()?

you can do that, but it is neither required nor good style...

> b) Or do I have to make one MIB CameraMIb with has MibLeafs of it's values?

This is the right approach. Depending on the values of the camera
MibLeafs and MibTables are used.

>     But if this is the case, how are values returned to manager?   Through
> CameraMib or through it's leafs.?

Through the leafs. The manager can either request one value at a time,
or all values can be requested in one GET (with multiple oids) or
GETBULK request.

Regards,
  Jochen




More information about the AGENTPP mailing list