LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 08-21-2007, 04:41 PM   #1
noir911
Member
 
Registered: Apr 2004
Posts: 682

Rep: Reputation: Disabled
[Enterprise Server 10] SNMP listen on ethernet address


It's currently listening on the loopback address and I just can't seem to bind it to the IP address. There's no firewall, nothing is listening on that iport at the moment.

In my /etc/snmpd.conf I put "agentaddress udp:199@172.16.20.30" or "agentaddress 172.16.20.30". For the first one /var/log/net-snmpd.log tells me "Error opening specified endpoint "udp:199@172.16.20.30"
Server Exiting with code 1. For the second one, the log files tells me nothing but netstat(1) doesn't show anything is listening. My /etc/snmpd.conf is very simple -

rocommunity 172.16.20.44
syslocation hostname
syscontact SystemAdmin (sysadmin@hostname.com)

Any help would be much appreciated. Thanks.
 
Old 08-31-2007, 09:20 AM   #2
cutegoat
LQ Newbie
 
Registered: Aug 2007
Location: Kocaeli / Turkey
Distribution: SuSE
Posts: 6

Rep: Reputation: 0
You must specify only the port info at agentaddress entry. And also you must enter a community name at rocommunity line.

So your snmpd.conf file seems like this



rocommunity MyComm 192.168.11.11 #SNMP data will be sent only to box with IP 192.168.11.11 if it is a member of MyComm community, not to any other computer

agentaddress udp:199 #No other info required

syslocation hostname
syscontact SystemAdmin (sysadmin@hostname.com)


After submitting the changes you must restart the snmp daemon

# /etc/init.d/snmpd restart


You can verify the configuration at computer with IP 192.168.11.11 with snmpwalk tool like

# snmpwalk -c MyComm -v 1 ip.of.snmp.host

I hope this helps you..

Last edited by cutegoat; 08-31-2007 at 09:21 AM.
 
  


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
ethernet card with redhat enterprise freddyincali Linux - Hardware 3 08-18-2005 02:56 AM
why my DNS server needs listen-on-v6 { any; }; ? cccc Linux - Networking 0 08-21-2004 07:07 PM
could not listen on UDP socket: address in use peaceofcrap2001 Linux - Networking 2 07-10-2004 12:18 PM
snmp (ucd-snmp, net-snmp) markus1982 Linux - Software 1 11-21-2002 10:45 AM
SAMBA - How to config to listen to an ip address instead of 0.0.0.0 ForumKid Linux - Networking 2 01-18-2002 05:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 09:03 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
Open Source Consulting | Domain Registration