Dave , I followed the same procedure but still it is removing the line from /var/net-snmp/snmpd.conf . 1. killall snmpd 2. run the net-snmp-config --create-snmpv3-user -ro -A authpass -X privpass -a MD5 -x DES username it is giving me the following errors : adding the following line to /var/net-snmp/snmpd.conf: createUser username MD5 "authpass" DES privpass adding the following line to /tmp/rootfilesystem/usr/local/share/snmp/snmpd.conf: rouser username touch: /tmp/rootfilesystem/usr/local/share/snmp/snmpd.conf: No such file or directy /usr/local/bin/net-snmp-config: /usr/local/bin/net-snmp-config: 661: cannot cret /usr/local/bin/net-snmp-config: shift: 661: can't shift that many
then manually i added the line rouser username in /etc/snmpd.conf . ( Dave : becuase there is no need to net-snmp-config script on the target . it is just a text file we can edit it . ) 3. and when i start the snmpd it replaces the line with NULL . the second problem is : and if user want to create the user remotely then if we stop the snmpd our manager-agent communication breaks and in that case case how he will add the user remotely . Please help me out. Thanks Amit ----- Original Message ---- From: Dave Shield <[EMAIL PROTECTED]> To: Amit Kumar <[EMAIL PROTECTED]> Cc: [email protected] Sent: Wednesday, 30 April, 2008 8:54:08 PM Subject: Re: snmpd.conf problem... 2008/4/30 Amit Kumar <[EMAIL PROTECTED]>: > I am creating the snmpv3 user using net-snmp-config shell script.... > after that i have to restart the snmpd Not quite. You should *stop* snmpd, run net-snmp-config, and *then* start snmpd again. If snmpd is still running when you add the user to /var/net-snmp/snmpd.conf, then it will throw away these changes when you restart the agent. Dave __________________________________________________________ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
