Silly me! For the snmpd.conf file I generated it's not: rocommunity public .1.3.6.1.2.1.1
but rather: rocommunity whatever And the snmpget -c command works fine. But when I use the snmpd.conf file my coworkder generated (in original email) using community 'whatever' also, I get the timeout. Dave, I have spent most of the day alternating these two conf file and starting and restarting snmpd and the results are the same - the snmpget times out using my coworkers snmpd.conf but works fine using mine. But for the one I generated ( using 'rocommunity whatever' also), it works fine. In each case I am starting the agent on Solaris 9 using the following startup script: ======================================================================== =============== stty erase PATH=$PATH:/opt/emc/dist/local/usr/bin PATH=$PATH:/opt/emc/dist/local/usr/sbin PATH=$PATH:/usr/local/bin export PATH MIBDIRS=/opt/emc/dist/local/usr/share/snmp/mibs export MIBDIRS snmpd& echo "Simple Test" /opt/emc/dist/local/usr/bin/snmpget -v 1 -c whatever localhost SNMPv2-MIB::sysUp Time.0 mount lsca2055:/opt/SUNWspro /opt/SUNWspro PATH=$PATH:/opt/SUNWspro/bin export PATH LD_LIBRARY_PATH=/opt/emc/dist/local/usr/lib export LD_LIBRARY_PATH ======================================================================== ================ FYI, the results of this startup are as follows: # . ./startup 1513 Simple Test DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (176) 0:00:01.76 Now mounting nfs mount: mount: /opt/SUNWspro: Device busy # -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: Friday, December 21, 2007 4:16 PM To: Smith, Randy Cc: [email protected] Subject: Re: Timeout: No Response from localhost. On 21/12/2007, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > fyi, the conf file pasted earlier is one that a coworker devised on AIX > using the snnpconf. However, interestingly, when I use the following > snmpd.conf that I generated myself on Solaris, the 'snmpget -c ....' > works fine. Using which community? "public" or "private"? Because I wouldn't expect the entry rocommunity public .1.3.6.1.2.1.1 to work (since it's missing the network source field, which should come before the OID) > Also, following the 'good' snmpd.conf file, Dave you will > see the output from the snmpd -f -Le -Dread_config -d' using the > snmpd.conf file that my coworker generated. Hmmm.... That output looks OK at first sight. Do you see the packet dump output when you make the query? Can you confirm that the two "snmpget" requests are effectively identical (run from the same host, with exactly the same parameters, apart from the community string)? i.e. /opt/emc/dist/local/usr/bin/snmpget -v 1 -c private localhost SNMPv2-MIB::sysUpTime.0 (with the working config) and /opt/emc/dist/local/usr/bin/snmpget -v 1 -c whatever localhost SNMPv2-MIB::sysUpTime.0 (with the broken config) How are you starting the two agents? What's the exact command you use in each case? Dave ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ 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
