1847342 Members
2410 Online
110264 Solutions
New Discussion

net-snmp on HP-UX B11.11

 
Nguyen Anh Tien
Honored Contributor

net-snmp on HP-UX B11.11

Hi all experts.
I am trying to install net-snmp-5.1.1 on HP-UX B11.11. configure step seem to be OK (see attached log) but make commmand has some error
[server:/tmp/net-snmp-5.1.1] make
/usr/bin/sed -f sedscript ./EXAMPLE.conf.def > EXAMPLE.conf
making all in /tmp/net-snmp-5.1.1/snmplib
/bin/sh ../libtool --mode=link cc -g -Dhpux11 -rpath /usr/local/lib -version-info 6:1:1 -o libnetsnmp.la
rm -fr .libs/libnetsnmp.la .libs/libnetsnmp.* .libs/libnetsnmp.*
/usr/bin/ld -b +h libnetsnmp.sl.6 +b /usr/local/lib -o .libs/libnetsnmp.sl.6.1 -lc
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
I DO NOT KNOW WHY??? PLS HELP ME ASAP.
THANK FOR ALL
HP is simple
8 REPLIES 8
Ralph Grothe
Honored Contributor

Re: net-snmp on HP-UX B11.11

I can remember having had quite some difficulties during make of Net-SNMP with HP ANSI C myself as well, which were mostly
owe to the fact that the Net-SNMP sources were written as 32bit code.
Thus, one had to be careful to select those compiler switches (and library environment variables) that take care for 32bit builds.

You may have good reasons to build it from sources.
However if you aren't focused on HP ANSI C but can equally well use gcc to later possibly link other apps to the Net-SNMP libs,
I would suggest to first try the HP provided depot which is a gcc build, I suppose.
You shouldn't experience any difficulties with that.
Have a look here, where you could also download the depot.

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1111

If you must cling to your own build register with the Net-SNMP mailing list, or even try a mail directly to the program authors.
They might be willing to respond.
From my experience I know that the Net-SNMP folks are extremly helpful.
I had been exchanging mails for over a week with the HP-UX porting author where he continously sent me hints how to get the thing compiled.
Madness, thy name is system administration
Nguyen Anh Tien
Honored Contributor

Re: net-snmp on HP-UX B11.11

Thank Ralph
I have just try package on HP-UX Internet Express but it seem to have problem.. can you post for me the full procedure need to do after taking swinstall.
thank U so much
tienna
HP is simple
Nguyen Anh Tien
Honored Contributor

Re: net-snmp on HP-UX B11.11

Hi all experts.
pls spend time to help me pls. I am in urgent case.
thank.
HP is simple
Ermin Borovac
Honored Contributor

Re: net-snmp on HP-UX B11.11

Can you tell us a bit more about the problem you are having with Internet Express Net-SNMP package?

If you need to create config file you can try using snmpconf utility that comes with the package.

# /opt/iexpress/net-snmp/bin/snmpconf

I can create the following types of configuration files for you.
Select the file type you wish to create:
(you can create more than one as you run this program)

1: snmpd.conf
2: snmptrapd.conf
3: snmp.conf

Other options: quit

Select File:
Nguyen Anh Tien
Honored Contributor

Re: net-snmp on HP-UX B11.11

Hi Ermin.
I have installed Internet Express Net-SNMP package successfully (only issue swlist -s /cdrom and choose net-snmp. after installation
I checked
#swlist -l product|grep net-snmp and result as below
Net-SNMP A.02.00-5.0.9 Simple Network Monitoring protocol
but I donot know how to continue with it (how to config, how to start net-snmp agent with its configuration) Pls show me what should to do next
I intend to use mrtg and Opmanager5.5 (www.opmanager.com)
to get snmp infor from HP-UX11i. Now
HP is simple
Ermin Borovac
Honored Contributor

Re: net-snmp on HP-UX B11.11

HP-UX includes SNMP daemon which is enable and running by default. If you really want to run net-snmp SNMP daemon you should disable HP-UX snmpd or run net-snmp snmpd on a different port. Default SNMP port is 161 UDP.

Sample configuration file is in /opt/iexpress/net-snmp/etc/EXAMPLE.conf. You should copy it to /opt/iexpress/net-snmp/etc/snmp/snmpd.conf. Change at least the following lines.

com2sec local localhost COMMUNITY
com2sec mynetwork NETWORK/16 COMMUNITY

to

com2sec local localhost
com2sec mynetwork /

Start the daemon in test mode as (assumes port 9999 is not used).

# /opt/iexpress/net-snmp/sbin/snmpd -df -Lo udp:9999

Now you should be able to test access to it with snmpwalk.

# /opt/iexpress/net-snmp/bin/snmpwalk -v 1 -c :9999

Lots more information is available at www.net-snmp.org.

Nguyen Anh Tien
Honored Contributor

Re: net-snmp on HP-UX B11.11

Thank Ermin
My server still have a problem
After setting conf file (as attached file) i issue
[server:/] /opt/iexpress/net-snmp/sbin/snmpd -df -L udp:161
/opt/iexpress/net-
snmp/share/snmp/snmpd.conf: line 21: Error: bad source address
/opt/iexpress/net-snmp/share/snmp/snmpd.conf: line 45: Warning: Unknown token: proc.
/opt/iexpress/net-snmp/share/snmp/snmpd.conf: line 60: Warning: Unknown token: disk.
/opt/iexpress/net-snmp/share/snmp/snmpd.conf: line 74: Warning: Unknown token: load.
net-snmp: 1 error(s) in config file(s)

Sending 95 bytes to 10.0.98.31
0000: 30 5D 02 01 01 04 06 70 75 62 6C 69 63 A6 50 02 0].....public.P.
0016: 04 38 3D 2B 46 02 01 00 02 01 00 30 42 30 0D 06 .8=+F......0B0..
0032: 08 2B 06 01 02 01 01 03 00 43 01 18 30 17 06 0A .+.......C..0...
0048: 2B 06 01 06 03 01 01 04 01 00 06 09 2B 06 01 06 +...........+...
0064: 03 01 01 05 01 30 18 06 0A 2B 06 01 06 03 01 01 .....0...+......
0080: 04 03 00 06 0A 2B 06 01 04 01 BF 08 03 02 0E .....+.........


Sending 95 bytes to 10.0.95.21
0000: 30 5D 02 01 01 04 06 70 75 62 6C 69 63 A6 50 02 0].....public.P.
0016: 04 38 3D 2B 46 02 01 00 02 01 00 30 42 30 0D 06 .8=+F......0B0..
0032: 08 2B 06 01 02 01 01 03 00 43 01 18 30 17 06 0A .+.......C..0...
0048: 2B 06 01 06 03 01 01 04 01 00 06 09 2B 06 01 06 +...........+...
0064: 03 01 01 05 01 30 18 06 0A 2B 06 01 06 03 01 01 .....0...+......
0080: 04 03 00 06 0A 2B 06 01 04 01 BF 08 03 02 0E .....+.........

NET-SNMP version 5.0.9

Received 43 bytes from 10.0.98.31
0000: 30 29 02 01 01 04 06 70 75 62 6C 69 63 A1 1C 02 0).....public...
0016: 02 34 69 02 01 00 02 01 00 30 10 30 0E 06 0A 2B .4i......0.0...+
0032: 06 01 02 01 19 03 03 01 02 05 00 ...........

Received SNMP packet(s) from 10.0.98.31
GETNEXT message
-- SNMPv2-SMI::mib-2.25.3.3.1.2

# /opt/iexpress/net-snmp/bin/snmpwalk -v 1 -c public localhost:161
Timeout: No Response from localhost:161
WHy it say timeout????
thank you in advance


HP is simple
Ermin Borovac
Honored Contributor

Re: net-snmp on HP-UX B11.11

You can download version 5.1.2 of net-snmp from the link Ralph posted earlier. I think new version should help with errors about unrecognized keywords (proc, disk, load).

rwcommunity public all

This line has incorrect syntax. It should read

rwcommunity: community [default|hostname|network/bits] [oid]

So in the simplest case it would be

rwcommunity public

Please note that setting community strings (especially read-write community) to 'public' is extremely bad for security.

Lastly, if UDP port 161 is default, so you don't need to specify it on command line for snmpd and/or snmpwalk.