[erlang-questions] snmp trap double oid problem

Dominik Pawlak dominik_pawlak@REDACTED
Mon Jul 27 16:10:10 CEST 2015


Hello,
Could you please give a link to where that restriction is stated?

I'm using something like this in 17.1 :

in MIB:
testMIBFirstTrap NOTIFICATION-TYPE
     OBJECTS {
         sysContact,
         sysName
         }
     STATUS  current
     DESCRIPTION
         "First trap."
     ::= { testMIBTraps 1 }

in code:
snmpa:send_notification(snmp_master_agent, testMIBFirstTrap, 
no_receiver, NotifyName, [])

Regards,
Dominik

On 24.07.2015 12:29, Madhukar Sah wrote:
> Hi,
>
>      In case of sending a trap in erlang-snmp, a person is required to 
> define two oid's in the MIB. This restriction exists only in erlang. 
> In other agents like net-snmp only a single oid is used to represent 
> the trap.
>     Is it possible to have a single OID for trap in erlang as well.
>
>
> Regards,
> Madhukar Sah
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list