I have installed it in my test box and I hit a problem with auto-discovery due to missing libssl.so library for nmap. Issue is very easy to fix using common Linux troubleshooting approach. First what versions I'm using:
[root@oem-server ~]# cat /etc/oracle-release Oracle Linux Server release 6.1 [root@oem-server ~]# openssl version OpenSSL 1.0.0-fips 29 Mar 2010 [root@oem-server ~]# yum list | grep -e "^openssl" openssl.x86_64 1.0.0-20.el6_2.5 @ol6_latest openssl.i686 1.0.0-20.el6_2.5 ol6_latest openssl-devel.i686 1.0.0-20.el6_2.5 ol6_latest openssl-devel.x86_64 1.0.0-20.el6_2.5 ol6_latest openssl-perl.x86_64 1.0.0-20.el6_2.5 ol6_latest openssl-static.x86_64 1.0.0-20.el6_2.5 ol6_latest openssl098e.i686 0.9.8e-17.0.1.el6_2.2 ol6_latest openssl098e.x86_64 0.9.8e-17.0.1.el6_2.2 ol6_latest
Now what kind of issue I had
[root@oem-server ~]# /u01/Middleware/agent/agent_inst/discovery/nmap/bin/nmap /u01/Middleware/agent/agent_inst/discovery/nmap/bin/nmap: error while loading shared libraries: libssl.so.4: cannot open shared object file: No such file or directory
How I fixed it
[oracle@oem-server ~]$ ldd /u01/Middleware/agent/agent_inst/discovery/nmap/bin/nmap linux-vdso.so.1 => (0x00007fff447ff000) libssl.so.4 => not found libcrypto.so.4 => not found libdl.so.2 => /lib64/libdl.so.2 (0x0000003d40800000) libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x0000003d43c00000) libm.so.6 => /lib64/libm.so.6 (0x0000003d41000000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003d43400000) libc.so.6 => /lib64/libc.so.6 (0x0000003d40400000) /lib64/ld-linux-x86-64.so.2 (0x0000003d40000000) [root@oem-server ~]# ln -s /usr/lib64/libssl.so.10 /usr/lib64/libssl.so.4 [root@oem-server ~]# ln -s /usr/lib64/libcrypto.so.10 /usr/lib64/libcrypto.so.4 [oracle@oem-server ~]$ ldd /u01/Middleware/agent/agent_inst/discovery/nmap/bin/nmap linux-vdso.so.1 => (0x00007fffb0686000) libssl.so.4 => /usr/lib64/libssl.so.4 (0x00007fd6b1c0a000) libcrypto.so.4 => /usr/lib64/libcrypto.so.4 (0x00007fd6b1870000) libdl.so.2 => /lib64/libdl.so.2 (0x0000003d40800000) libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x0000003d43c00000) libm.so.6 => /lib64/libm.so.6 (0x0000003d41000000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003d43400000) libc.so.6 => /lib64/libc.so.6 (0x0000003d40400000) libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x0000003d48c00000) libkrb5.so.3 => /lib64/libkrb5.so.3 (0x0000003d46c00000) libcom_err.so.2 => /lib64/libcom_err.so.2 (0x0000003d44000000) libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x0000003d47800000) libz.so.1 => /lib64/libz.so.1 (0x0000003d41400000) /lib64/ld-linux-x86-64.so.2 (0x0000003d40000000) libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x0000003d46800000) libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x0000003d47000000) libresolv.so.2 => /lib64/libresolv.so.2 (0x0000003d42400000) libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003d40c00000) libselinux.so.1 => /lib64/libselinux.so.1 (0x0000003d41c00000)
Now it is working
[oracle@oem-server ~]$ /u01/Middleware/agent/agent_inst/discovery/nmap/bin/nmap -v Starting Nmap 5.51.3 ( http://nmap.org ) at 2012-07-08 19:19 IST Unable to find nmap-services! Resorting to /etc/services Read data files from: /etc WARNING: No targets were specified, so 0 hosts scanned. Nmap done: 0 IP addresses (0 hosts up) scanned in 0.03 seconds [oracle@oem-server ~]$
After that I checked MOS and Grid Control 12c is certified with OEL 6 so this errors was not expected but then I realized that I didn't read know issues for Oracle® Enterprise Manager Cloud Control Support Notes for Linux x86 and x86-64 and I found it in point called "Host Discovery Job Displays Error While Loading Shared Libraries". Official solution is a little bit more complicated and required downloading openssl sources and compiling it. Anyway I found article above using Google and I couldn't find it on entry documentation page.
regards,
Marcin
regards,
Marcin
2 comments:
Thanks a lot. Your post saved me a lot of time and worry. I was stumped there for a while.
Cheers.
Thanks very much - that was just what I needed for the migration from 5 to 6 .... Dave
Post a Comment