2008/5/4 Amit Kumar <[EMAIL PROTECTED]>:
>          I followed the same procedure but still it is removing the line from 
> /var/net-snmp/snmpd.conf .
>  1. killall snmpd

What is in the file /var/net-snmp/snmpd.conf after having done this?
I'd also suggest you run the command
    ps -ef | grep snmp
             to check that the agent is indeed stopped.


>  2. run the net-snmp-config --create-snmpv3-user .....
>      it is giving me the  following errors :
>  adding the following line to /var/net-snmp/snmpd.conf:
>
>    createUser username MD5 "authpass" DES privpass

And does it?
What is the actual contents of this file now?


>  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

Hmmm...


>  then manually i added the line rouser username in /etc/snmpd.conf .

What are the contents of this file?


>  3. and when i start the snmpd it replaces the line with NULL .

Which file are you talking about here?
What are the exact contents?



>  the second problem is :
>  and if user want to create the user remotely

Then they should use the "snmpusm" command.

net-snmp-config is used for adding an entry locally
(e.g. if there isn't already a suitable SNMPv3 user to act as a template).
snmpusm is used for adding an entry remotely
(but requires suitable write access for an existing SNMPv3 user
 with similar authentication characteristics).

See the man page for details.

Dave

-------------------------------------------------------------------------
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

Reply via email to