Discussion:
How to get/generate the engine ID for SNMP v3?
(too old to reply)
Sumit Mhatre
2016-07-22 10:54:42 UTC
Permalink
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
2016-07-28 11:25:24 UTC
Permalink
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
Post by Sumit Mhatre
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.
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.
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Sumit Mhatre
2016-07-29 14:23:35 UTC
Permalink
Thanks Pushpa! I will go through the link.

Regards,
Sumit
Post by Pushpa Thimmaiah
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
Post by Sumit Mhatre
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.
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.
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Loading...