1) /etc/init.d/snmpd restart
Stopping snmpd: [ OK
]
Starting snmpd: [ OK
]

2) $snmpget -v 1 -c public localhost sysUpTime.0
Output: Timeout: No Response from localhost.

3) cat /etc/snmp/snmpd.conf
-------------------------------/etc/snmp/snmpd.conf Start
------------------------------------------

My Output:


#
# exec .1.3.6.1.4.1.2021.51 ps /bin/ps
# exec .1.3.6.1.4.1.2021.52 top /usr/local/bin/top
# exec .1.3.6.1.4.1.2021.53 mailq /usr/bin/mailq

#
------------------------------------------------------------------------
-----


################################################## ######################
#######
# Pass through control.
#

# Usage:
# pass MIBOID EXEC-COMMAND
#
# This will pass total control of the mib underneath the MIBOID
# portion of the mib to the EXEC-COMMAND.
#
# Note: You'll have to change the path of the passtest script to your
# source directory or install it in the given location.
#
# Example: (see the script for details)
# (commented out here since it requires that you place the
# script in the right location. (its not installed by
default))

# pass .1.3.6.1.4.1.2021.255 /bin/sh /usr/local/local/passtest

# % snmpwalk -v 1 localhost -c public .1.3.6.1.4.1.2021.255
# enterprises.ucdavis.255.1 = "life the universe and everything"
# enterprises.ucdavis.255.2.1 = 42
# enterprises.ucdavis.255.2.2 = OID: 42.42.42
# enterprises.ucdavis.255.3 = Timeticks: (363136200) 42 days, 0:42:42
# enterprises.ucdavis.255.4 = IpAddress: 127.0.0.1
# enterprises.ucdavis.255.5 = 42
# enterprises.ucdavis.255.6 = Gauge: 42
#
# % snmpget -v 1 localhost public .1.3.6.1.4.1.2021.255.5
# enterprises.ucdavis.255.5 = 42
#
# % snmpset -v 1 localhost public .1.3.6.1.4.1.2021.255.1 s "New string"
# enterprises.ucdavis.255.1 = "New string"
#

# For specific usage information, see the man/snmpd.conf.5 manual page
# as well as the local/passtest script used in the above example.

# Added for support of bcm5820 cards.
pass .1.3.6.1.4.1.4413.4.1 /usr/bin/ucd5820stat

################################################## ######################
#######
# Further Information
#
# See the snmpd.conf manual page, and the output of "snmpd -H".





rocommunity public

-------------------------------/etc/snmp/snmpd.conf end
------------------------------------------



4) $grep snmp /etc/hosts*
Output: No output

5) $ grep snmp /var/log/messages
Output:

Apr 22 14:52:06 ofrdev-india-infra snmpd[19152]:
mibII/mta_sendmail.cpen_sendmailst: could not guess version of
statistics file "/var/log/mail/statistics"
Apr 22 14:52:06 ofrdev-india-infra snmpd[19152]: Creating directory:
/var/net-snmp
Apr 22 14:52:06 ofrdev-india-infra snmpd[19152]: NET-SNMP version 5.3.1
Apr 22 14:54:19 ofrdev-india-infra snmpd[19152]: Received TERM or STOP
signal... shutting down...
Apr 22 14:54:19 ofrdev-india-infra snmpd[19248]:
mibII/mta_sendmail.cpen_sendmailst: could not guess version of
statistics file "/var/log/mail/statistics"
Apr 22 14:54:19 ofrdev-india-infra snmpd[19248]: NET-SNMP version 5.3.1
Apr 22 14:54:24 ofrdev-india-infra snmpd[19248]: Received TERM or STOP
signal... shutting down...
Apr 22 14:54:24 ofrdev-india-infra snmpd[19263]:
mibII/mta_sendmail.cpen_sendmailst: could not guess version of
statistics file "/var/log/mail/statistics"
Apr 22 14:54:24 ofrdev-india-infra snmpd[19263]: NET-SNMP version 5.3.1
Apr 22 15:25:08 ofrdev-india-infra snmpd[19263]: Received TERM or STOP
signal... shutting down...
Apr 22 15:25:11 ofrdev-india-infra snmpd[20400]:
mibII/mta_sendmail.cpen_sendmailst: could not guess version of
statistics file "/var/log/mail/statistics"
Apr 22 15:25:12 ofrdev-india-infra snmpd[20400]: NET-SNMP version 5.3.1
Apr 22 15:41:22 ofrdev-india-infra snmptrapd[21647]: Warning: no access
control information configured. This receiver will *NOT* accept any
incoming notifications.
Apr 22 15:41:22 ofrdev-india-infra snmptrapd[21648]: NET-SNMP version
5.3.1
Apr 22 16:14:27 ofrdev-india-infra snmpd[20400]: Connection from UDP:
[127.0.0.1]:16434 REFUSED
Apr 22 16:15:01 ofrdev-india-infra snmpd[20400]: Received TERM or STOP
signal... shutting down...
Apr 22 16:15:08 ofrdev-india-infra snmpd[15267]:
mibII/mta_sendmail.cpen_sendmailst: could not guess version of
statistics file "/var/log/mail/statistics"
Apr 22 16:15:08 ofrdev-india-infra snmpd[15267]: NET-SNMP version 5.3.1
Apr 22 16:15:15 ofrdev-india-infra snmpd[15267]: Connection from UDP:
[127.0.0.1]:16434 REFUSED
Apr 22 16:17:05 ofrdev-india-infra snmpd[15267]: Received TERM or STOP
signal... shutting down...
Apr 22 16:17:05 ofrdev-india-infra snmpd[15448]:
mibII/mta_sendmail.cpen_sendmailst: could not guess version of
statistics file "/var/log/mail/statistics"
Apr 22 16:17:05 ofrdev-india-infra snmpd[15448]: NET-SNMP version 5.3.1
Apr 22 16:17:16 ofrdev-india-infra snmpd[15448]: Connection from UDP:
[127.0.0.1]:16434 REFUSED
Apr 22 16:32:33 ofrdev-india-infra snmpd[15448]: Received TERM or STOP
signal... shutting down...
Apr 22 16:32:33 ofrdev-india-infra snmpd[16261]:
mibII/mta_sendmail.cpen_sendmailst: could not guess version of
statistics file "/var/log/mail/statistics"
Apr 22 16:32:33 ofrdev-india-infra snmpd[16261]: NET-SNMP version 5.3.1
Apr 22 16:33:11 ofrdev-india-infra snmpd[16261]: Connection from UDP:
[127.0.0.1]:16434 REFUSED
Apr 22 16:44:53 ofrdev-india-infra snmpd[16261]: Received TERM or STOP
signal... shutting down...
Apr 22 16:44:53 ofrdev-india-infra snmpd[17139]:
mibII/mta_sendmail.cpen_sendmailst: could not guess version of
statistics file "/var/log/mail/statistics"
Apr 22 16:44:53 ofrdev-india-infra snmpd[17139]: NET-SNMP version 5.3.1
Apr 22 16:58:10 ofrdev-india-infra snmpd[17139]: Received TERM or STOP
signal... shutting down...
Apr 22 16:58:10 ofrdev-india-infra snmpd[17668]:
mibII/mta_sendmail.cpen_sendmailst: could not guess version of
statistics file "/var/log/mail/statistics"
Apr 22 16:58:10 ofrdev-india-infra snmpd[17668]: NET-SNMP version 5.3.1
Apr 22 17:09:15 ofrdev-india-infra snmpd[17668]: Connection from UDP:
[127.0.0.1]:16434 REFUSED
Apr 23 11:08:16 ofrdev-india-infra snmpd[17668]: Connection from UDP:
[127.0.0.1]:16437 REFUSED
Apr 24 06:37:20 ofrdev-india-infra snmpd[17668]: Received TERM or STOP
signal... shutting down...
Apr 24 06:37:22 ofrdev-india-infra snmpd[25371]:
mibII/mta_sendmail.cpen_sendmailst: could not guess version of
statistics file "/var/log/mail/statistics"
Apr 24 06:37:23 ofrdev-india-infra snmpd[25371]: Warning: no access
control information configured. It's unlikely this agent can serve any
useful purpose in this state. Run "snmpconf -g basic_setup" to help
you configure the snmpd.conf file for this agent.
Apr 24 06:37:23 ofrdev-india-infra snmpd[25371]: NET-SNMP version 5.3.1
Apr 24 06:37:56 ofrdev-india-infra snmpd[25371]: Connection from UDP:
[127.0.0.1]:16445 REFUSED
Apr 24 06:38:49 ofrdev-india-infra snmpd[25371]: Received TERM or STOP
signal... shutting down...
Apr 24 06:38:50 ofrdev-india-infra snmpd[25451]:
mibII/mta_sendmail.cpen_sendmailst: could not guess version of
statistics file "/var/log/mail/statistics"
Apr 24 06:38:50 ofrdev-india-infra snmpd[25451]: NET-SNMP version 5.3.1
Apr 24 06:51:28 ofrdev-india-infra snmpd[25451]: Connection from UDP:
[127.0.0.1]:16445 REFUSED
Apr 24 06:57:47 ofrdev-india-infra snmpd[25451]: Received TERM or STOP
signal... shutting down...
Apr 24 06:57:51 ofrdev-india-infra snmpd[27069]:
mibII/mta_sendmail.cpen_sendmailst: could not guess version of
statistics file "/var/log/mail/statistics"
Apr 24 06:57:52 ofrdev-india-infra snmpd[27069]: NET-SNMP version 5.3.1
Apr 24 07:01:30 ofrdev-india-infra snmpd[27069]: Connection from UDP:
[127.0.0.1]:16445 REFUSED
Apr 24 09:55:02 ofrdev-india-infra snmpd[27069]: Connection from UDP:
[127.0.0.1]:16446 REFUSED
Apr 24 12:30:04 ofrdev-india-infra snmpd[27069]: Connection from UDP:
[127.0.0.1]:16448 REFUSED
Apr 24 13:37:40 ofrdev-india-infra snmpd[27069]: Received TERM or STOP
signal... shutting down...
Apr 24 13:37:40 ofrdev-india-infra snmptrapd[21648]: 2008-04-24 13:37:40
NET-SNMP version 5.3.1 Stopped.
Apr 24 13:37:40 ofrdev-india-infra snmptrapd[21648]: Stopping snmptrapd
Apr 24 14:40:38 ofrdev-india-infra snmpd[3957]:
mibII/mta_sendmail.cpen_sendmailst: could not guess version of
statistics file "/var/log/mail/statistics"
Apr 24 14:40:39 ofrdev-india-infra snmpd[3957]: NET-SNMP version 5.3.1
Apr 24 14:40:42 ofrdev-india-infra snmpd[3957]: Received TERM or STOP
signal... shutting down...
Apr 24 14:40:42 ofrdev-india-infra snmpd[3972]:
mibII/mta_sendmail.cpen_sendmailst: could not guess version of
statistics file "/var/log/mail/statistics"
Apr 24 14:40:42 ofrdev-india-infra snmpd[3972]: NET-SNMP version 5.3.1
Apr 24 14:41:28 ofrdev-india-infra snmpd[3972]: Received TERM or STOP
signal... shutting down...
Apr 24 14:41:29 ofrdev-india-infra snmpd[4220]:
mibII/mta_sendmail.cpen_sendmailst: could not guess version of
statistics file "/var/log/mail/statistics"
Apr 24 14:41:29 ofrdev-india-infra snmpd[4220]: NET-SNMP version 5.3.1
Apr 24 14:44:27 ofrdev-india-infra snmpd[4220]: Received TERM or STOP
signal... shutting down...
Apr 24 14:44:27 ofrdev-india-infra snmpd[4330]:
mibII/mta_sendmail.cpen_sendmailst: could not guess version of
statistics file "/var/log/mail/statistics"
Apr 24 14:44:27 ofrdev-india-infra snmpd[4330]: NET-SNMP version 5.3.1
Apr 24 14:45:06 ofrdev-india-infra snmpd[4330]: Connection from UDP:
[127.0.0.1]:16457 REFUSED
Apr 24 14:50:05 ofrdev-india-infra snmpd[4330]: Connection from UDP:
[127.0.0.1]:16458 REFUSED
Apr 24 15:04:52 ofrdev-india-infra snmpd[4330]: Received TERM or STOP
signal... shutting down...
Apr 24 15:21:37 ofrdev-india-infra snmpd[7694]:
mibII/mta_sendmail.cpen_sendmailst: could not guess version of
statistics file "/var/log/mail/statistics"
Apr 24 15:21:37 ofrdev-india-infra snmpd[7694]: NET-SNMP version 5.3.1
Apr 24 15:21:44 ofrdev-india-infra snmpd[7694]: Received TERM or STOP
signal... shutting down...
Apr 24 15:21:44 ofrdev-india-infra snmpd[7709]:
mibII/mta_sendmail.cpen_sendmailst: could not guess version of
statistics file "/var/log/mail/statistics"
Apr 24 15:21:44 ofrdev-india-infra snmpd[7709]: NET-SNMP version 5.3.1
Apr 24 15:22:35 ofrdev-india-infra snmpd[7709]: Connection from UDP:
[127.0.0.1]:16458 REFUSED
Apr 24 15:24:47 ofrdev-india-infra snmpd[7709]: Received TERM or STOP
signal... shutting down...
Apr 24 15:24:47 ofrdev-india-infra snmpd[7821]:
mibII/mta_sendmail.cpen_sendmailst: could not guess version of
statistics file "/var/log/mail/statistics"
Apr 24 15:24:47 ofrdev-india-infra snmpd[7821]: NET-SNMP version 5.3.1
Apr 24 15:24:48 ofrdev-india-infra snmpd[7821]: Received TERM or STOP
signal... shutting down...
Apr 24 15:24:49 ofrdev-india-infra snmpd[7836]:
mibII/mta_sendmail.cpen_sendmailst: could not guess version of
statistics file "/var/log/mail/statistics"
Apr 24 15:24:49 ofrdev-india-infra snmpd[7836]: NET-SNMP version 5.3.1
Apr 24 15:24:55 ofrdev-india-infra snmpd[7836]: Connection from UDP:
[127.0.0.1]:16458 REFUSED
Apr 24 15:25:09 ofrdev-india-infra snmpd[7836]: Connection from UDP:
[127.0.0.1]:16459 REFUSED
Apr 24 15:30:06 ofrdev-india-infra snmpd[7836]: Connection from UDP:
[127.0.0.1]:16460 REFUSED
Apr 24 15:52:02 ofrdev-india-infra snmpd[7836]: Connection from UDP:
[127.0.0.1]:16461 REFUSED
Apr 24 15:58:55 ofrdev-india-infra snmpd[7836]: Received TERM or STOP
signal... shutting down...
Apr 24 15:58:55 ofrdev-india-infra snmpd[10705]:
mibII/mta_sendmail.cpen_sendmailst: could not guess version of
statistics file "/var/log/mail/statistics"
Apr 24 15:58:55 ofrdev-india-infra snmpd[10705]: NET-SNMP version 5.3.1
Apr 24 16:00:05 ofrdev-india-infra snmpd[10705]: Connection from UDP:
[127.0.0.1]:16461 REFUSED
Apr 24 16:05:05 ofrdev-india-infra snmpd[10705]: Connection from UDP:
[127.0.0.1]:16463 REFUSED
Apr 24 16:18:37 ofrdev-india-infra snmpd[10705]: Received TERM or STOP
signal... shutting down...
Apr 24 16:18:37 ofrdev-india-infra snmpd[12361]:
mibII/mta_sendmail.cpen_sendmailst: could not guess version of
statistics file "/var/log/mail/statistics"
Apr 24 16:18:37 ofrdev-india-infra snmpd[12361]: NET-SNMP version 5.3.1
Apr 24 16:19:08 ofrdev-india-infra snmpd[12361]: Connection from UDP:
[127.0.0.1]:16463 REFUSED



Thanks & Regards,
ElayaRaja

-----Original Message-----
From: dave.shield@googlemail.com [mailto:dave.shield@googlemail.com] On
Behalf Of Dave Shield
Sent: Thursday, April 24, 2008 7:36 PM
To: Sathasivam, Elayaraja
Cc: Net-snmp-users@lists.sourceforge.net
Subject: Re: How to uninstall

2008/4/24 Sathasivam, Elayaraja :
> $ snmpwalk -v 1 -c public localhost versiontag
> Again the same result " Timeout: No Response from localhost "


Please try the following:

/etc/init.d/snmpd restart
snmpget -v 1 -c public localhost sysUpTime.0


Does that give a response or not?

What is the output of
cat /etc/snmp/snmpd.conf
grep snmp /etc/hosts*
grep snmp /var/log/messages
?

Dave






This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is
intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to
read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message
in error, please notify the sender immediately and delete all copies of this message.


-------------------------------------------------------------------------
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...un.com/javaone
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users