On 3 March 2011 21:34, Prakash Masanagi <[email protected]> wrote: > Traps are sent using engine id of the trap sender. So I am not sure if your > suggestion will work.
Fair comment. But the basic principle still holds. Try adding a "createUser" line for this user in the persistent snmpd.conf file, and then restart the agent. This should then be replaced with an equivalent "usmUser" line, which will then be used for generating the traps. > But I want to configure snmpd process on trap sender machine (10.4.120.145) > to send the traps. > To do this, if I add the following line to /etc/snmp/snmpd.conf , then it > works great > trapsess -v3 -u netadmin -l authNoPriv -a MD5 -A netadminpassword > 10.4.120.141 > But I do not want to keep this line in /etc/snmp/snmpd.conf always because > it has plain text passwords. > What is the good to solve this. See above. > Basically, I want to tell snmpd to send the trap to a particular machine > with a particular snmpv3 user without keeping the user's auth and priv > password in plain text in any config file. Use 'createUser' in the *persistent* file (/var/net-snmp/snmpd.conf), and restart the agent (to replace this will a 'usmUser' line) That then doesn't include the passwords. Dave ------------------------------------------------------------------------------ What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d _______________________________________________ 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
