This is a discussion on Re: snmpd.conf problem... within the SNMP Coders forums, part of the Networking and Network Related category; =A0=A0=A0=A0=A0=A0=A0=A0 it is working fine=A0now...but i got some other er= rors ......
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
=A0=A0=A0=A0=A0=A0=A0=A0 it is working fine=A0now...but i got some other er=
rors ...please find the same. when=A0I start the agent we have to give the name of both configuration fil= es /etc/snmpd.conf , /var/net-snmp/snmpd.conf=A0 ? = =A0 /usr/local/sbin/snmpd -c /var/net-snmp/snmpd.conf,/etc/snmpd.conf = =A0 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 0x6e6= 57461646d696e00 NULL .1.3.6.1.6.3.10.1.1.2 0xb3b1ea6a70f6f27c14101b0da01ea= 70c .1.3.6.1.6.3.10.1.2.2 0xb3b1ea6a70f6f27c14101b0da01ea70c "" but when i do snmpget i am getting the following error : [root@localhost ~]# snmpget -v 3 -u netadmin -l authNoPriv -a MD5 -A netadm= npassword 172.20.1.64 sysUpTime.0 snmpget: Timeout (Sub-id not found: (top) -> sysUpTime) [root@localhost ~]# snmptranslate -Le sysUpTime sysUpTime: Unknown Object Identifier (Sub-id not found: (top) -> sysUpTime) [root@localhost ~]# snmptranslate -IR sysUpTime SNMPv2-MIB::sysUpTime [root@localhost ~]# = Thanks = Amit =A0 ----- Original Message ---- From: Dave Shield <D.T.Shield@liverpool.ac.uk> To: Amit Kumar <nc_usa27566@yahoo.com> Cc: net-snmp-coders@lists.sourceforge.net Sent: Sunday, 4 May, 2008 1:46:00 PM Subject: Re: snmpd.conf problem... 2008/5/4 Amit Kumar <nc_usa27566@yahoo.com>: >=A0 =A0 =A0 =A0 =A0 I followed the same procedure but still it is removing= the line from /var/net-snmp/snmpd.conf . >=A0 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 =A0 =A0 ps -ef | grep snmp =A0 =A0 =A0 =A0 =A0 =A0 to check that the agent is indeed stopped. >=A0 2. run the net-snmp-config --create-snmpv3-user ..... >=A0 =A0 =A0 it is giving me the=A0 following errors : >=A0 adding the following line to /var/net-snmp/snmpd.conf: > >=A0 =A0 createUser username MD5 "authpass" DES privpass And does it? What is the actual contents of this file now? >=A0 adding the following line to /tmp/rootfilesystem/usr/local/share/snmp/= snmpd.conf: >=A0 =A0 rouser username >=A0 touch: /tmp/rootfilesystem/usr/local/share/snmp/snmpd.conf: No such fi= le or directy >=A0 /usr/local/bin/net-snmp-config: /usr/local/bin/net-snmp-config: 661: c= annot cret >=A0 /usr/local/bin/net-snmp-config: shift: 661: can't shift that many Hmmm... >=A0 then manually i added the line rouser username in /etc/snmpd.conf . What are the contents of this file? >=A0 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? >=A0 the second problem is : >=A0 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;198757....sun.com/java= one _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/...et-snmp-coders |
![]() |
| Thread Tools | |
| Display Modes | |
|
|