Jeyachitra Ramshankar wrote:
I am using net-snmp manager to receive informs.
It is generating  the engineId by its own.
I want to set the engineId to a specific value.
How to configure the same?

What version are you running? The snmpd.conf(5) manual page in 5.2.2.pre3 documents the following settings:

- ---snip ---
engineID STRING
  The snmpd agent needs to be configured with a unique engineID to
  be able to respond to SNMPv3 messages.  With this  configuration
  file line, the engineID will be configured from STRING.

engineIDType 1|2|3
  Defines  that the engineID should be built from the IPv4 address
  (1), IPv6 address (2) or MAC address (3). Beware that you  might
  run into trouble on IP address changes!

engineIDNic interface
   Defines  the  interface  (e.g.  "eth1")  that  should be used to
   determine the MAC address in case of "engineIDType  3".  Default
   is eth0.

If  neither  an  engineID,  engineIDType  or  engineIDNic  directive is
present, the value of the engineID is built from 2 fairly  random  ele-
ments:  a  random  number  and the current time in seconds. This is the
recommended approach.
- --- snap ---

Also I want to print the generated engineId. Where , in which file should I edit to print the engineId.

It is automatically written into the persistent configuration file (/var/net-snmp/snmpd.conf by default on Un*x) as "oldEngineId <value in hex>".


+Thomas

--
Thomas Anders (thomas.anders at blue-cable.de)


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to