Janne, Please provide more detail, or perhaps an example of your proposed traps. I read your question differently from Bill.
On Thu, Dec 2, 2021 at 1:17 PM Bill Fenner <[email protected]> wrote: > On Wed, Dec 1, 2021 at 7:44 AM Janne Paalijarvi <[email protected]> > wrote: > >> Is it considered ok to put sequence OID elements to trap contents? >> > > If I understand the question right, you're asking about including objects > belonging to a table? Many trap definitions do this; when constructing the > trap, you have to be careful to include the full OID of the instance you're > replying with (e.g., ifIndex.42, not just ifIndex, even though the OBJECTS > in the linkUp NOTIFICATION-TYPE just says "ifindex"). Meaning, given > > linkUp NOTIFICATION-TYPE > > OBJECTS { ifIndex, ifAdminStatus, ifOperStatus } > > you should construct the trap with, e.g., > > ifIndex.42 = 42 ifAdminStatus.42 = up ifOperStatus.42 = down > > (using those arguments to the "snmptrap" command should create a > well-formed varbind list for a linkUp trap.) > > Bill > > _______________________________________________ > 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 >
_______________________________________________ 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
