After a relative easy configure and make on a hpux
11.11 platform snmpd runs and sends packets back.
Started with /usr/local/sbin/snmpd -V -f -Le -d -I
smux. However, trying a snmpwalk shows a reciver
address of [0.0.0.0]:0 and results in sending a reply
to [0.0.0.0]:0. 

It looks like it goes wrong with reading the senders
ip number.

A snmpwalk, from the same build as snmpd, shows the
same behaviour. It works but shows [0.0.0.0]:0 as the
address the reply comes from.

OUTPUT from snmpwalk -d -v2c -c public fcsw01

Sending 57 bytes to UDP: [10.205.8.30]:161
0000: 30 37 02 01  01 04 06 70  75 62 6C 69  63 A1 2A
02    07.....public.*.
0016: 04 26 82 FE  3B 02 01 00  02 01 00 30  1C 30 1A
06    .&..;......0.0..
0032: 16 2B 06 01  02 01 5C 01  03 02 01 0C  07 64 65
66    .+....\......def
0048: 61 75 6C 74  C0 67 01 05  00                    
     ault.g...


Received 61 bytes from UDP: [0.0.0.0]:0
0000: 30 3B 02 01  01 04 06 70  75 62 6C 69  63 A2 2E
02    0;.....public...
0016: 04 26 82 FE  3B 02 01 00  02 01 00 30  20 30 1E
06    .&..;......0 0..
0032: 16 2B 06 01  02 01 5C 01  03 02 01 0C  07 64 65
66    .+....\......def
0048: 61 75 6C 74  C0 68 01 44  04 00 00 00  00       
     ault.h.D.....

I wonder if this is an issue when compiling for a 64
bit system.


Build info

./configure --with-libs=-lnm --with-mib-modules="smux
ucd-snmp/diskio"

with 

gcc -v
Using built-in specs.
Target: hppa64-hp-hpux11.11
Configured with:
/tmp/gcc-4.1.1.tar.gz/gcc-4.1.1/configure
--host=hppa64-hp-hpux11.11
--target=hppa64-hp-hpux11.11
--build=hppa64-hp-hpux11.11
--prefix=/opt/hp-gcc64-4.1.1 --enable-languages=c,c++
--with-gnu-as --without-gnu-ld
--with-ld=/usr/ccs/bin/ld --enable-threads=posix
Thread model: posix
gcc version 4.1.1

gmake -v
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying
conditions.
There is NO warranty; not even for MERCHANTABILITY or
FITNESS FOR A
PARTICULAR PURPOSE.

This program built for hppa2.0w-hp-hpux11.11

ldd /usr/local/sbin/snmpd
        libnetsnmpmibs.sl.15 =>
/usr/local/lib/libnetsnmpmibs.sl.15
        libnetsnmpagent.sl.15 =>       
/usr/local/lib/libnetsnmpagent.sl.15
        libnetsnmphelpers.sl.15 =>     
/usr/local/lib/libnetsnmphelpers.sl.15
        libnetsnmp.sl.15 =>    
/usr/local/lib/libnetsnmp.sl.15
        libdl.1 =>      /lib/pa20_64/libdl.1
        libcrypto.sl.0 =>      
/lib/pa20_64/libcrypto.sl.0
        libm.2 =>       /lib/pa20_64/libm.2
        libnm.sl =>     /lib/pa20_64/libnm.sl
        libc.2 =>       /lib/pa20_64/libc.2
        libgcc_s.sl =>  /opt/hp-gcc64/lib/libgcc_s.sl
        libgcc_s.sl =>  /opt/hp-gcc64/lib/libgcc_s.sl
        libgcc_s.sl =>  /opt/hp-gcc64/lib/libgcc_s.sl
        libgcc_s.sl =>  /opt/hp-gcc64/lib/libgcc_s.sl
        libdl.1 =>      /lib/pa20_64/libdl.1
        libc.2 =>       /lib/pa20_64/libc.2
        libdl.1 =>      /usr/lib/pa20_64/libdl.1
        libc.2 =>       /usr/lib/pa20_64/libc.2


snmpd output /usr/local/sbin/snmpd   -V -f -Le -d -I
smux
/usr/local/share/snmp/snmpd.conf: line 1: Warning:
Unknown token: syslocation.
/usr/local/share/snmp/snmpd.conf: line 2: Warning:
Unknown token: syscontact.
/usr/local/share/snmp/snmpd.conf: line 3: Warning:
Unknown token: rocommunity.
Turning on AgentX master support.
/usr/local/share/snmp/snmpd.conf: line 8: Warning:
Unknown token: defVersion.
/usr/local/share/snmp/snmpd.conf: line 9: Warning:
Unknown token: doDebugging.
NET-SNMP version 5.4

Received 40 bytes from UDP: [0.0.0.0]:0
0000: 30 26 02 01  01 04 06 70  75 62 6C 69  63 A1 19
02    0&.....public...
0016: 04 7E 02 1D  36 02 01 00  02 01 00 30  0B 30 09
06    .~..6......0.0..
0032: 05 2B 06 01  02 01 05 00                        
     .+......

Received SNMP packet(s) from UDP: [0.0.0.0]:0
  GETNEXT message
    -- SNMPv2-SMI::mib-2
Sending 40 bytes to UDP: [0.0.0.0]:0
0000: 30 26 02 01  01 04 06 70  75 62 6C 69  63 A2 19
02    0&.....public...
0016: 04 7E 02 1D  36 02 01 00  02 01 00 30  0B 30 09
06    .~..6......0.0..
0032: 05 2B 06 01  02 01 82 00                        
     .+......


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to