On Mon, 22 Jun 2015 22:02:19 -0700 Jim wrote:
JL> I am migrating a working net-snmpd setup from FreeBSD 8.4 to
JL> FreeBSD 9.3.  The net-snmp versions involved are 5.7.1_7 and
JL> 5.7.3_7, respectively.  By "working," I mean that I can
JL> successfully snmpwalk the old snmp server.
JL> [...]
JL> On the new system, 10.158.10.10, snmpwalk fails, and snmpd
JL> terminates shortly after receiving the UDP packet.
JL> 
JL> First, I start the snmpd agent manually, then as quickly as
JL> possible (about half a second later), I start the snmpwalk
JL> process from a host on an adjacent IP number.  FWIW, I get the
JL> same symptoms if I run snmpwalk from the same host that is
JL> running snmpd.
JL> 
JL> Agent:
JL> 
JL> # time /usr/local/sbin/snmpd -c /usr/local/etc/snmp/snmpd.conf
JL> -Lo -df & [1] 17067
JL> # NET-SNMP version 5.7.3
JL> 
JL> Received 41 byte packet from UDP:
JL> [10.158.10.9]:33811->[10.158.10.10]:161 0000: 30 27 02 01  00
JL> 04 07 73  41 57 6E 33  74 31 A1 19    0'.....foObAR1.. 0016: 02
JL> 04 60 B5  05 1F 02 01  00 02 01 00  30 0B 30
JL> 09    ..`.........0.0. 0032: 06 05 2B 06  01 02 01 05
JL> 00                          ..+......
JL> 
JL> 
JL> real    0m5.959s
JL> user    0m0.038s
JL> sys     0m0.047s

Hmm.. odd. Try adding -D to get debug output, and/or running under
gdb to see where it is crashing.

JL> Notice that snmpd has terminated, and time reports the elapsed
JL> run time.  /usr/local/etc/snmp/snmpd.conf should be a default
JL> config location, but I am specifying it explicitly to be
JL> certain.

Using -c without -C will result in the file being read twice.
Generally that shouldn't be an issue.

Robert

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to