> Is the "send_v2trap()" API capable of sending V1 traps? 

Yes.

The calls documented in 'snmp_trap_api(5)' refer to how traps are
*specified*, rather than the form in which they are sent out.
The agent will convert SMNPv1 format traps into SNMPv2 style (or
vice versa) as appropriate.

The format in which the traps are sent is purely determined by
the configuration directives used.  A "trapsink" setting will
result in an SNMPv1 trap (regardless of whether it's triggered
by 'send_easy_trap' or 'send_v2trap').  Similarly, "trap2sink"
will result in an SNMPv2 trap (either way).

> Also, is there anyway to set "enterprise OID" value on v1 trap
> instead of the two choices: SYSTEM_MIB or NOTIFICATION_MIB?

Use 'send_enterprise_trap_vars' - the first two parameters
are the same as those used for 'send_easy_trap'.
The third and fourth parameters can be used to specify the
enterprise OID

Dave


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to