Hi, Does anyone know if it''s possible to set a listening IP on snmpd? On a CentOS 5.2 domU, it listens on 0.0.0.0 (effectively every IP on the machine), root@vps:[/]$ netstat -an | grep 161 udp 0 0 0.0.0.0:161 0.0.0.0:* Yet, on a Debian 4.0 domU, it listens on 127.0.0.1. sh-2.05b# netstat -an |grep 161 udp 0 0 127.0.0.1:161 0.0.0.0:* There''s nothing in /etc/snmp/snmpd.conf that I can see where I bind the listening IP address. -- Kind Regards Rudi Ahlers _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2009-Feb-21 22:50 UTC
Re: [Xen-users] how do I set the listening IP on snmpd?
On Sat, Feb 21, 2009 at 2:05 AM, Rudi Ahlers <rudiahlers@gmail.com> wrote:> Does anyone know if it''s possible to set a listening IP on snmpd?>From "man snmpd.conf"" agentaddress [<transport-specifier>:]<transport-address>[,...] defines a list of listening addresses, on which to receive incoming SNMP requests. See the section LISTENING ADDRESSES in the snmpd(8) manual page for more information about the format of listening addresses. The default behaviour is to listen on UDP port 161 on all IPv4 interfaces. " However startup command line can also influence snmpd''s behavior. On ubuntu /etc/default/snmpd has this line # snmpd options (use syslog, close stdin/out/err). SNMPDOPTS=''-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1'' Removing 127.0.0.1 will make it listen on all interfaces. Regards, Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users