On Thu, 10 Nov 2016 12:49:25 +0000 Pavan wrote:
PT> 1.       Send multiple (more than 1, for example 5) Snmpv3
PT> traps to a given 'trapsess'

I think you mean send multiple traps in a single PDU.

PT> 1.       Is this the intended or correct usage from an 'snmpd'
PT> point of view ?

No. The standard is one PDU per trap/inform/notification.

PT> 2.       Is it possible for the SNMP manager from NetSNMP to
PT> handle such a message with 5 (in this case) traps with in a
PT> single usage.

By default snmptrapd will treat any PDU formatted in this way as a
single trap with lots of varbinds. You can create a custom handler
that could parse out additional 'traps' and act on them, but I
believe it would still be logged as a single trap.

PT> 3.       I could not find any SNMP standard for this use case
PT> scenario, please guide if possible with any RFC. ( idea here is
PT> to refer any RFC that says send only one trap OID in one PDU, a
PT> standard violation can be prevented )

The relevant section is:

4.2.6.  The SNMPv2-Trap-PDU

   [...]   The first
   two variable bindings in the variable binding list of an SNMPv2-
   Trap-PDU are sysUpTime.0 [RFC3418] and snmpTrapOID.0 [RFC3418]
   respectively.  If the OBJECTS clause is present in the invocation of
   the corresponding NOTIFICATION-TYPE macro, then each corresponding
   variable, as instantiated by this notification, is copied, in order,
   to the variable-bindings field.  If any additional variables are
   being included (at the option of the generating SNMP entity), then
   each is copied to the variable-bindings field

So while there is nothing in the protocol to prevent you from
adding additional snmpTrapOID.0 instances in a PDU, I do not know
of any implementation that would try and extract multiple 'traps'
from a single PDU by searching for additional snmptTrapOID.0
instances. Net-SNMP would simply list any additonal trap oids and
any other additional varbinds with the trap identified by the
snmpTrapOID.0 given in the second variable binding of the PDU.

Robert

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to