On 14/07/06, Manuel Cano Muñoz <[EMAIL PROTECTED]> wrote:
> There is little difference in the following statements,
>
> static oid nstAgentSubagentObject2_oid[] =
> { 1, 3, 6, 1, 4, 1, 8072, 2, 4, 1, 1, 3, 0 };
> static oid nstAgentSubagentObject3_oid[] =
> { 1, 3, 6, 1, 4, 1, 8072, 2, 4, 1, 1, 4 }; /* <- The last `0' is missing
> expressly */
That's correct.
The second is the OID of the scalar MIB object, and covers both the
(sole) valid instance, and any other (invalid) instances.
The first is the OID of the valid instance only - it doesn't try to handle
the invalid instances as well.
> but I couldn't figure out why the first did run with
> netsnmp_register_int_instance
Because this is working with individual instances, while
> netsnmp_register_watched_scalar
works with the full scalar object (both valid and invalid instances).
Dave
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users