Re: Unable to access snmpd from anywhere but localhost
Pushpa Thimmaiah <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CAASqVJXMp+j8qHRWJNqUdXAUGqcpdqJDsUvMD=28VoDs5HFLYg@mail.gmail.com> |
Hi, Does querying alpha (10.0.0.224 ) from remote device using SNMPv2c community works ? On Tue, Jan 10, 2017 at 6:14 PM, Ed Greenberg <[email protected]> wrote: > This is on Centos 7 with > > Installed Packages > net-snmp.x86_64 1:5.7.2-24.el7_2.1 @base > > I have this package on two servers on the same subnet. > > On 10.0.0.224 (let's call it 'alpha', because that's it's hostname) I run: > > [root@alpha ~]# net-snmp-create-v3-user > Enter a SNMPv3 user name to create: > nagios > Enter authentication pass-phrase: > foobarski > Enter encryption pass-phrase: > [press return to reuse the authentication pass-phrase] > > adding the following line to /var/lib/net-snmp/snmpd.conf: > createUser nagios MD5 "foobarski" DES > adding the following line to /etc/snmp/snmpd.conf: > rwuser nagios > [root@alpha ~]# > > Then I start snmpd with > > [root@alpha ~]# snmpd -LEd -f -d -a > NET-SNMP version 5.7.2 > > This should log to standard error, anything debug or better, without > detaching. > > From 10.0.0.244 I run > > snmpget -v3 -u nagios -a MD5 -A foobarski -l authPriv -x DES -X > foobarski 10.0.0.224 system.sysUpTime.0 > > Over in another window on Alpha I am running tcpdump and I see the > packets coming in. > 07:36:49.913605 IP 10.0.0.244.38890 > alpha.snmp: F=r U= E= C= > GetRequest(14) > 07:36:50.914888 IP 10.0.0.244.38890 > alpha.snmp: F=r U= E= C= > GetRequest(14) > 07:36:51.916270 IP 10.0.0.244.38890 > alpha.snmp: F=r U= E= C= > GetRequest(14) > 07:36:52.917526 IP 10.0.0.244.38890 > alpha.snmp: F=r U= E= C= > GetRequest(14) > 07:36:53.918674 IP 10.0.0.244.38890 > alpha.snmp: F=r U= E= C= > GetRequest(14) > 07:36:54.919985 IP 10.0.0.244.38890 > alpha.snmp: F=r U= E= C= > GetRequest(14) > ^C > > snmpd stands mute. It does not log to stderror, beyond logging it's > signon, and it does not respond to the packets. > > The config files were exactly as delivered, but for what > net-snmp-create-v3-user added. > > Later, I added agentAddress udp:161 with no change. > > I'm stumped. > > In my last job I had over 100 servers that had been set up according to > this process. They were, however, all centos 6 running 1:5.5-57.el6_8.1 > > Did something change? > > Many thanks, > > > Ed Greenberg > > > > ------------------------------------------------------------ > ------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > _______________________________________________ > 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 > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ 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