Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to get/generate the engine ID for SNMP v3?

3,367 views
Skip to first unread message

Sumit Mhatre

unread,
Jul 22, 2016, 7:01:19 AM7/22/16
to
Hi all,
       I am using Net-SNMP for generating SNMP traps in my product. So, I am just shipping snmptrap.exe which I invoke with appropriate parameters. Well, I did not face any issue with SNMP v2c.
 But with SNMP v3, I am not getting:

1.  What value should I put for -e option i.e. EngineID ?
2. Or can I set/define it to random number?

Note: I am not running(nor shipping) snmpd as I just want to add trap capability.

Please suggest.

Pushpa Thimmaiah

unread,
Jul 28, 2016, 7:30:11 AM7/28/16
to
Hi Sumit,

. Refer RFC https://www.ietf.org/rfc/rfc2571.txt for engineID format.
-------------------------------------------------
-------------------------------------------------
snmpEngineID has a length of 12 octets.
1st bit: either '0' or '1' . '1' if you follow below mentioned formats
1-4 octets: binary equivalent of the agent's SNMP management private enterprise number
5th octet : Type of next(6-12th) octet ipaddress, mac address, random number.
            Eg: If 5th octet=3 then 6-12th octet is mac-id of the host.

--------------------------------------------------------------------------------------------------

Since SNMP engineID is unique to the host/machine on which snmpapp running ,  its better to get value for 
option'-e' from external code.

Thank you.
Pushpa.T

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Net-snmp-users mailing list
Net-snm...@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Sumit Mhatre

unread,
Jul 29, 2016, 10:25:31 AM7/29/16
to
Thanks Pushpa! I will go through the link.

Regards,
Sumit
0 new messages