it is working fine now...but i got some other errors ...please find 
the same.
when I start the agent we have to give the name of both configuration files 
/etc/snmpd.conf , /var/net-snmp/snmpd.conf  ? 
 
/usr/local/sbin/snmpd -c /var/net-snmp/snmpd.conf,/etc/snmpd.conf 
 
i killed the snmpd and added the line :
net-snmp-config --create-snmpv3-user -ro -a "netadminpassword" netadmin
after this the following line is gets stored in /var/net-snmp/snmpd.conf
usmUser 1 3 0x80001f88802d0eb45600000000386d438b 0x6e657461646d696e00 
0x6e657461646d696e00 NULL .1.3.6.1.6.3.10.1.1.2  
0xb3b1ea6a70f6f27c14101b0da01ea70c .1.3.6.1.6.3.10.1.2.2 
0xb3b1ea6a70f6f27c14101b0da01ea70c ""
but when i do snmpget i am getting the following error :
[EMAIL PROTECTED] ~]# snmpget -v 3 -u netadmin -l authNoPriv -a MD5 -A 
netadmnpassword 172.20.1.64 sysUpTime.0
snmpget: Timeout (Sub-id not found: (top) -> sysUpTime)
[EMAIL PROTECTED] ~]# snmptranslate -Le sysUpTime
sysUpTime: Unknown Object Identifier (Sub-id not found: (top) -> sysUpTime)
[EMAIL PROTECTED] ~]# snmptranslate -IR sysUpTime
SNMPv2-MIB::sysUpTime
[EMAIL PROTECTED] ~]# 

Thanks 
Amit
 

----- Original Message ----
From: Dave Shield <[EMAIL PROTECTED]>
To: Amit Kumar <[EMAIL PROTECTED]>
Cc: [email protected]
Sent: Sunday, 4 May, 2008 1:46:00 PM
Subject: Re: snmpd.conf problem...

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



      __________________________________________________________
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

Reply via email to