LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-16-2009, 06:27 AM   #1
renuaseri
Member
 
Registered: Mar 2009
Posts: 39

Rep: Reputation: 15
snmp is not working on remote host machine


hi all,

my snmp is working fine on localhost.
but this snmp is not working on remote host machine(ipv4 & ipv6 both).
means when i run "snmpwalk -v2c -c public 2001:468::2 system "
it show "timeout: NO response from 2001:468::2"

my ip addtess is :-2001:468::2(ipv6 only).
my os is ubuntu 8.04.



/etc/snmp/snmpd.conf file is lool like:-
------------------------------------------------------------------------
###########################################################################
#
# snmpd.conf
#
# - created by the snmpconf configuration program
#
###########################################################################
# SECTION: Access Control Setup
#
# This section defines who is allowed to talk to your running
# snmp agent.

# rocommunity: a SNMPv1/SNMPv2c read-only access community name
# arguments: community [default|hostname|network/bits] [oid]

rocommunity public
rocommunity public
rocommunity public



###########################################################################
# SECTION: System Information Setup
#
# This section defines some of the information reported in
# the "system" mib group in the mibII tree.

# syslocation: The [typically physical] location of the system.
# Note that setting this value here means that when trying to
# perform an snmp SET operation to the sysLocation.0 variable will make
# the agent return the "notWritable" error code. IE, including
# this token in the snmpd.conf file will disable write access to
# the variable.
# arguments: location_string

syslocation Unknown (configure /etc/snmp/snmpd.local.conf)

# syscontact: The contact information for the administrator
# Note that setting this value here means that when trying to
# perform an snmp SET operation to the sysContact.0 variable will make
# the agent return the "notWritable" error code. IE, including
# this token in the snmpd.conf file will disable write access to
# the variable.
# arguments: contact_string

syscontact Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)















#
# Unknown directives read in from other files by snmpconf
#
rocommunity6 public
rocommunity6 public
com2sec readonly default public
com2sec local localhost public
com2sec6 localNet 2001:468::2 public
com2sec6 readonly default public
com2sec6 local localhost public

group MyROSystem v1 local
group MyROSystem v2c local
group MyROSystem usm local
group MyROGroup v1 localnet
group MyROGroup v2c localnet
group MyROGroup usm localnet
group MyRWGroup v1 local
group MyRWGroup v2c local
group MyRWGroup usm local
view all included .1 80
view system included .iso.org.dod.internet.mgmt.mib-2.system
access MyROSystem "" any noauth exact system none none
access MyROGroup "" any noauth exact all none none
access MyRWGroup "" any noauth exact all all none


-----------------------------------------------------------------------



-------
 
Old 06-16-2009, 10:09 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,944

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by renuaseri View Post
hi all,

my snmp is working fine on localhost.
but this snmp is not working on remote host machine(ipv4 & ipv6 both).
means when i run "snmpwalk -v2c -c public 2001:468::2 system "
it show "timeout: NO response from 2001:468::2"

my ip addtess is :-2001:468::2(ipv6 only).
my os is ubuntu 8.04.
Do you see any errors in the logs on the remote system? What OS is the remote system running? Can you ping and/or otherwise access the remote machine?

Check the status of the SNMP daemon on the remote machine (usually by "/etc/init.d/snmpd status"), and start it if it's not running. Check the log files, and see if you're getting any errors.
 
Old 06-16-2009, 10:25 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,542
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

A little more information would be great. OS/Distribution for each? Do you have ipv6 setup, you show a IP but does the device show it? Does the remote support ipv6 or just ipv4? Check this for your local by using 'ifconfig -a' to see if you have your IP addresses.

Plus, please place any data or posted information within vbcode tags. You can use the code tag (#) or the quote tag that is to the left of the (code) # tag at the top of your reply window. Your post(s) will be easier to read if you use the code tags.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't SSH to remote machine: Connection closed by remote host Avatar Linux - Networking 34 05-24-2013 10:28 AM
Remote desktop not working, Accessing XP machine via Ubuntu Hardy Heron ka4koe Linux - Networking 1 09-16-2008 09:01 PM
SNMP packet format for host.Allow rj_mayuresh Programming 0 04-08-2008 12:40 AM
snmp + no response from local host aeby Linux - Server 2 08-29-2007 09:29 AM
Resolving <www.some remote host>.... failed: Host not found. koodoo Linux - Newbie 2 06-27-2005 09:48 AM


All times are GMT -5. The time now is 11:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration