Discussion:
Unable to access snmpd from anywhere but localhost
Ed Greenberg
2017-01-10 12:44:54 UTC
Permalink
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:

[***@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
[***@alpha ~]#

Then I start snmpd with

[***@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
Pushpa Thimmaiah
2017-01-19 07:15:06 UTC
Permalink
Hi,

Does querying alpha (10.0.0.224 ) from remote device using SNMPv2c
community works ?
Post by Ed Greenberg
This is on Centos 7 with
Installed Packages
I have this package on two servers on the same subnet.
nagios
foobarski
[press return to reuse the authentication pass-phrase]
createUser nagios MD5 "foobarski" DES
rwuser nagios
Then I start snmpd with
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
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Loading...