On 22/08/06, Li Gan <[EMAIL PROTECTED]> wrote:
> Another question about linkup trap, can I just use only 1 varbind list to
> send all the interfaces generated linkup trap? I mean by using
> "snmp_varlist_add_variable", bind all the interfaces into the same list one
> by one.
Any trap *must* start with the varbinds listed in the MIB definition.
For linkUp, this means { ifIndex, ifAdminStatus, ifOperStatus }
You can then append anything else you want to after this, but there's
no guarantee that the trap receiver will necessarily do anything with
them.
So yes - you *could* report several linkUp events in the same trap,
but you might find that the management system ignored everything bar
the first. It's probably safer to report them individually.
A lot depends on exactly what will be done with the traps when they arrive.
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-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders