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

Pushpa Thimmaiah <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAASqVJXADotswg_UwFCfr6WPQ7nDBNAXTcS4pCVnNKhooqJm2w@mail.gmail.com>
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


On Fri, Jul 22, 2016 at 4:24 PM, Sumit Mhatre <[email protected]>
wrote:

> 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.
>
>
> ------------------------------------------------------------------------------
> 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
> [email protected]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>
>

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

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.