pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: net-snmp-5.3.1nb2 works in i386 but sometimes fails in amd64



This test is with /pub/pkgsrc/current/pkgsrc.tar.gz
dated 2007.03.03 and contains net-snmp ver 5.4

host64# dmesg | head
NetBSD 3.1 (GENERIC) #0: Mon Oct 30 21:47:28 UTC 2006

builds%b1.netbsd.org@localhost:/home/builds/ab/netbsd-3-1-RELEASE/amd64/200610302053Z-obj/home/builds/ab/netbsd-3-1-RELEASE/src/sys/arch/amd64/compile/GENERIC
total memory = 1023 MB
avail memory = 970 MB
mainbus0 (root)
mainbus0: Intel MP Specification (Version 1.4) (INTEL    Lindenhurst )
cpu0 at mainbus0: apid 0 (boot processor)
cpu0:                   Intel(R) Xeon(TM) CPU 3.00GHz, 3000.23 MHz

host64# pkg_delete '*'
host64# mv /usr/pkgsrc /usr/oldpkgsrc

host64# vi /etc/mk.conf
PREFER_NATIVE=openssl
PKG_OPTIONS.net-snmp=ssl inet6

host64# ftp ftp://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc.tar.gz

host64# cd /usr; tar xzf /root/current/pkgsrc.tar.gz
host64# cd /usr/pkgsrc/net/net-snmp
host64# make package
[...]
host64# cp /usr/pkg/share/examples/rc.d/snmpd /etc/rc.d/snmpd
host64# cp /usr/pkg/share/examples/net-snmp/EXAMPLE.conf /usr/pkg/etc/snmp/snmpd.conf

host64# vi /usr/pkg/etc/snmp/snmpd.conf
com2sec local     localhost       private
com2sec mynetwork 192.168.2.0/24  public

host64# /etc/rc.d/snmpd start
Starting snmpd.

host64# tail /var/log/messages
Mar  4 09:00:10 host64 syslogd: restart
Mar  4 14:00:28 host64 snmpd[12112]: NET-SNMP version 5.4

host64# rehash
host64# snmpwalk -v 1 -c private localhost .iso > /tmp/result
Timeout: No Response from localhost

host64# wc /tmp/result
    1022    4273   57189 /tmp/result

host64# /etc/rc.d/snmpd status
snmpd is not running.

host64# tail /var/log/messages
Mar  4 14:00:28 host64 snmpd[12112]: NET-SNMP version 5.4
Mar  4 14:02:42 host64 snmpd[12112]: Connection from UDP: [127.0.0.1]:65508
Mar  4 14:02:42 host64 last message repeated 352 times
Mar  4 14:02:42 host64 snmpd[12112]: truncating unsigned value to 32 bits (11)
Mar  4 14:02:42 host64 snmpd[12112]: Connection from UDP: [127.0.0.1]:65508
Mar  4 14:02:42 host64 last message repeated 656 times
Mar  4 14:02:42 host64 snmpd[12112]: truncating integer value > 32 bits
Mar  4 14:02:42 host64 snmpd[12112]: Connection from UDP: [127.0.0.1]:65508
Mar  4 14:02:42 host64 last message repeated 3 times
Mar  4 14:02:42 host64 snmpd[12112]: truncating integer value > 32 bits
Mar  4 14:02:42 host64 snmpd[12112]: Connection from UDP: [127.0.0.1]:65508
Mar  4 14:02:42 host64 snmpd[12112]: truncating integer value > 32 bits
Mar  4 14:02:42 host64 snmpd[12112]: Connection from UDP: [127.0.0.1]:65508
Mar  4 14:02:42 host64 snmpd[12112]: Connection from UDP: [127.0.0.1]:65508
Mar  4 14:02:42 host64 snmpd[12112]: truncating integer value > 32 bits
Mar  4 14:02:42 host64 snmpd[12112]: Connection from UDP: [127.0.0.1]:65508
Mar  4 14:02:42 host64 snmpd[12112]: truncating integer value > 32 bits
Mar  4 14:02:42 host64 snmpd[12112]: Connection from UDP: [127.0.0.1]:65508
Mar  4 14:02:42 host64 snmpd[12112]: Connection from UDP: [127.0.0.1]:65508
Mar  4 14:02:42 host64 snmpd[12112]: truncating integer value > 32 bits
Mar  4 14:02:42 host64 snmpd[12112]: Connection from UDP: [127.0.0.1]:65508
Mar  4 14:02:42 host64 snmpd[12112]: truncating integer value > 32 bits
Mar  4 14:02:42 host64 snmpd[12112]: Connection from UDP: [127.0.0.1]:65508
Mar  4 14:02:42 host64 snmpd[12112]: Connection from UDP: [127.0.0.1]:65508

host64# cat -n /tmp/result
   351  TCP-MIB::tcpConnRemPort.0.0.0.0.199.0.0.0.0.0 = INTEGER: 0
   352  TCP-MIB::tcpInErrs.0 = Counter32: 0
-> 353  TCP-MIB::tcpOutRsts.0 = Counter32: 4294967291
   354  UDP-MIB::udpNoPorts.0 = Counter32: 12
   355  UDP-MIB::udpInErrors.0 = Counter32: 0

  1007  UCD-SNMP-MIB::ssCpuIdle.0 = INTEGER: 0
  1008  UCD-SNMP-MIB::ssCpuRawUser.0 = Counter32: 1173038558
  1009  UCD-SNMP-MIB::ssCpuRawNice.0 = Counter32: 670006
->1010  UCD-SNMP-MIB::ssCpuRawSystem.0 = Counter32: 14917919
  1011  UCD-SNMP-MIB::ssCpuRawIdle.0 = Counter32: 1173038558
  1012  UCD-SNMP-MIB::ssCpuRawWait.0 = Counter32: 0
  1013  UCD-SNMP-MIB::ssCpuRawKernel.0 = Counter32: 4
->1014  UCD-SNMP-MIB::ssCpuRawInterrupt.0 = Counter32: 14917915
->1015  UCD-SNMP-MIB::ssIORawSent.0 = Counter32: 5283840
  1016  UCD-SNMP-MIB::ssIORawReceived.0 = Counter32: 4219265
->1017  UCD-SNMP-MIB::ssRawInterrupts.0 = Counter32: 36331322
->1018  UCD-SNMP-MIB::ssRawContexts.0 = Counter32: 36381218
  1019  UCD-SNMP-MIB::ssCpuRawSoftIRQ.0 = Counter32: 0
->1020  UCD-SNMP-MIB::ssRawSwapIn.0 = Counter32: 14982303
->1021  UCD-SNMP-MIB::ssRawSwapOut.0 = Counter32: 1024
  1022  UCD-DLMOD-MIB::dlmodNextIndex.0 = INTEGER: 1

Does somebody can help me?

Thanks in advance
Heron Gallegos
Saltillo Coahuila Mexico




Home | Main Index | Thread Index | Old Index