SAN discovery with SNMP on AIX and YUM repo
I’ve tried to place Stor2rrd on AIX with RPM repository using YUM provided by IBM. It worked well. But there is problem with SNMP and SAN devices.
I need snmpwalk command but when installing one from YUM (snmp-utils) and with provided snmp-perl - not work with built-in Perl (version mismatch). Using packages from perzl.org broke different dependencies in system.
Do you have any tips in such setup?
Comments
-
Hi,do not use AIX unless it is really necessary, support of Perl packages is a nightmare ...I just tried it on our AIX with yum and it really does not work# rpm -qa| grep -i snmpnet-snmp-5.8-2.ppcnet-snmp-utils-5.8-2.ppcnet-snmp-perl-5.8-2.ppc# ./bin/config_check.sh 10.22.199.14===================SWITCH: x.x.x.x=========================UDP connection to "x.x.x.x" on port "161" is ok
san_verify.pl:default_store.c: loadable library and perl binaries are mismatched (got handshake key 8380080, needed 8700080)connection failed!!Check network connectivity and user accessI do not think there is any tip around which makes it work in that configuration
-
Still no solution for this, no workaround or smth ?
I have exactly the same problem , when installing rrdtool from YUM repos provided by IBM, everything is working fine , except SAN (default_store.c: loadable library and perl binaries are mismatched (got handshake key 9600080, needed 8700080)).
All stor2rrd documentation says "use /usr/bin/perl in your stor2rrd.cfg" but in newest AIX 7.2 perl.rte is v5.28.1 ,
and perl installed together with rrdtool via YUM is v5.34.1.
-
Hi Piotr,
convince AIX support to include SNMP packges into Linux toolbox.
There is no general solution unles we make some dirty workarounds in the code + you would have to install very old openssl (not sure how it could coexist with the one you have there), might be there there is no solution at all ...
-
Hi,
net-snmp packages are included in AIX_Toolbox and I have them installed also using YUM.
yum list installed net-snmp*
Installed Packages
net-snmp.ppc 5.8-3 @AIX_Toolbox
net-snmp-perl.ppc 5.8-3 @AIX_Toolbox
net-snmp-utils.ppc 5.8-3 @AIX_Toolbox
-
Hi,
ahh, your right, forgot, but it does not help us, something must be wrong with this package, it does not work whatever perl I use, different errors, no way ...
# /usr/bin/perl -v | head -2
This is perl 5, version 28, subversion 1 (v5.28.1) built for aix-thread-multi
# /opt/freeware/bin/perl -v | head -2
This is perl 5, version 30, subversion 3 (v5.30.3) built for ppc-aix-thread-multi-64all
# rpm -qa| grep snmp
net-snmp-utils-5.8-3.ppc
net-snmp-5.8-3.ppc
net-snmp-perl-5.8-3.ppc
# ls -la /opt/freeware/lib/perl5/5.34/vendor_perl
total 192
drwxr-xr-x 5 root system 256 Sep 6 16:38 .
drwxr-xr-x 3 root system 256 Jun 20 13:14 ..
drwxr-xr-x 2 root system 256 Sep 6 16:38 Bundle
drwxr-xr-x 3 root system 256 Sep 6 16:38 NetSNMP
-r--r--r-- 1 root system 5497 May 27 2019 RRDp.pm
-r--r--r-- 1 root system 6023 May 27 2019 RRDs.pm
-r--r--r-- 1 root system 80070 Jul 16 2018 SNMP.pm
drwxr-xr-x 6 root system 256 Sep 6 16:38 auto
# export PERL5LIB=/opt/freeware/lib/perl5/5.34/vendor_perl
# /usr/bin/perl -e 'use SNMP;'
default_store.c: loadable library and perl binaries are mismatched (got handshake key 9600080, needed 8700080)
# /opt/freeware/bin/perl -e 'use SNMP;'
-e: Perl lib version (5.28.1) doesn't match executable '/opt/freeware/bin/perl' version (5.30.3) at /usr/opt/perl5/lib/5.28.1/aix-thread-multi/Config.pm line 62.
Compilation failed in require at /usr/opt/perl5/lib/5.28.1/aix-thread-multi/DynaLoader.pm line 22.
BEGIN failed--compilation aborted at /usr/opt/perl5/lib/5.28.1/aix-thread-multi/DynaLoader.pm line 22.
Compilation failed in require at /opt/freeware/lib/perl5/5.34/vendor_perl/NetSNMP/default_store.pm line 8.
Compilation failed in require at /opt/freeware/lib/perl5/5.34/vendor_perl/SNMP.pm line 19.
BEGIN failed--compilation aborted at /opt/freeware/lib/perl5/5.34/vendor_perl/SNMP.pm line 19.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
# /opt/freeware/bin/perl -e 'use SNMP;'
Can't load '/opt/freeware/lib/perl5/5.34/vendor_perl/auto/NetSNMP/default_store/default_store.so' for module NetSNMP::default_store: Could not load module /opt/freeware/lib/perl5/5.34/vendor_perl/auto/NetSNMP/default_store/default_store.so.
System error: Exec format error at /opt/freeware/lib64/perl5/5.30/DynaLoader.pm line 193.
at /opt/freeware/lib/perl5/5.34/vendor_perl/SNMP.pm line 19.
Compilation failed in require at /opt/freeware/lib/perl5/5.34/vendor_perl/SNMP.pm line 19.
BEGIN failed--compilation aborted at /opt/freeware/lib/perl5/5.34/vendor_perl/SNMP.pm line 19.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
# /opt/freeware/bin/perl_32bit -e 'use SNMP;'
default_store.c: loadable library and perl binaries are mismatched (got handshake key 9600080, needed 8380080)
# /usr/bin/perl64 -e 'use SNMP;'
Can't load '/opt/freeware/lib/perl5/5.34/vendor_perl/auto/NetSNMP/default_store/default_store.so' for module NetSNMP::default_store: Could not load module /opt/freeware/lib/perl5/5.34/vendor_perl/auto/NetSNMP/default_store/default_store.so.
System error: Exec format error at /usr/opt/perl5/lib64/5.28.1/aix-thread-multi-64all/DynaLoader.pm line 193.
at /opt/freeware/lib/perl5/5.34/vendor_perl/SNMP.pm line 19.
Compilation failed in require at /opt/freeware/lib/perl5/5.34/vendor_perl/SNMP.pm line 19.
BEGIN failed--compilation aborted at /opt/freeware/lib/perl5/5.34/vendor_perl/SNMP.pm line 19.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
Howdy, Stranger!
Categories
- 1.6K All Categories
- 43 XORMON NG
- 25 XORMON
- 152 LPAR2RRD
- 13 VMware
- 16 IBM i
- 2 oVirt / RHV
- 4 MS Windows and Hyper-V
- Solaris / OracleVM
- XenServer / Citrix
- Nutanix
- 7 Database
- 2 Cloud
- 10 Kubernetes / OpenShift / Docker
- 122 STOR2RRD
- 19 SAN
- 7 LAN
- 17 IBM
- 3 EMC
- 12 Hitachi
- 5 NetApp
- 15 HPE
- Lenovo
- 1 Huawei
- 1 Dell
- Fujitsu
- 2 DataCore
- INFINIDAT
- 3 Pure Storage
- Oracle