perl error on san_verify.pl [CISCO SAN]
Hello friends,
My environment is a stor2rrd from tar on VM with RHEL 7.2, all internal network access are ok, ping, nc -u sw_ip 161 or snmpwalk commands. This host dont have direct access to internet.
it´s fail on san_verify.pl step
============
My stor2rrd.conf on perl and SAN sessions:
# SAN config file
===============
My san-list.cfg
Fail on check connection:
=========================
My environment is a stor2rrd from tar on VM with RHEL 7.2, all internal network access are ok, ping, nc -u sw_ip 161 or snmpwalk commands. This host dont have direct access to internet.
it´s fail on san_verify.pl step
============
My stor2rrd.conf on perl and SAN sessions:
# location of RRDp.pm (check if this file is in that directory)
# It might be also in RRDTOOL dir tree like here : /usr/local/rrdtool-1.2.15/lib/perl
# You can use more path separated by a colon for diferent necessary Perl modules
PERL5LIB=/usr/lib64/perl5/5.16.3:/usr/lib/perl5/vendor_perl/5.16.3:/opt/freeware/lib/perl/5.16.3:/usr/opt/perl5/lib/site_perl/5.16.3:/opt/freeware/lib/perl5/vendor_perl/5.8.8/5.16.3:/usr/lib64/perl5/vendor_perl/5.16.3:/usr/lib64/perl5:/opt/freeware/lib/perl/5.8.8:/opt/freeware/lib/perl/5.8.0:/usr/opt/perl5/lib/site_perl/5.8.2:/usr/lib/perl5/vendor_perl/5.8.5:/usr/share/perl5:/usr/lib/perl5:/usr/opt/perl5/lib/site_perl/5.8.8/aix-thread-multi:/opt/freeware/lib/perl5/vendor_perl/5.8.8/ppc-thread-multi:/usr/lib64/perl5/vendor_perl:/usr/lib/perl5/vendor_perl:/home/stor2rrd/stor2rrd/lib:/var/www/html/stor2rrd/lib:/var/www/html/stor2rrd/lib:/usr/share/perl5/vendor_perl/Net:/usr/lib64/perl5/vendor_perl
# SAN config file
SAN_CFG=/var/www/html/stor2rrd/etc/san-list.cfg
My san-list.cfg
# Define your SNMP port If you using another then default 161
SNMP_PORT=161
#
10.1.14.3:zabbix:CISCO::
Fail on check connection:
=========================
SWITCH: 10.1.14.3
=========================
test snmpwalk:
snmpwalk -v 2c -c zabbix 10.1.14.3:161 1.3.6.1.2.1.1.5
SNMPv2-MIB::sysName.0 = STRING: iotapersei.tecban.com
snmpwalk cmd : ok
san_verify.pl:
Undefined subroutine &SNMP::addMibDirs called at /var/www/html/stor2rrd/bin/san_verify.pl line 138.
Type : CISCO
DestHost : 10.1.14.3
Version SNMP : 2c
Community : zabbix
Community : zabbix
SNMP port : 161
connection failed!!
Check network connectivity and user access
===============
[stor2rrd@poc3pc3601 ~]$ ls -l /var/www/html/stor2rrd/MIBs/
total 1148
-rw-r--r-- 1 stor2rrd apache 4904 Mar 23 09:56 Brocade-REG-MIB.txt
-rw-r--r-- 1 stor2rrd apache 2198 Mar 23 09:56 Brocade-TC.txt
-rw-r--r-- 1 stor2rrd apache 57426 Mar 23 09:56 CISCO-DM-MIB.txt
-rw-r--r-- 1 stor2rrd apache 221693 Mar 23 09:56 CISCO-FC-FE-MIB.txt
-rw-r--r-- 1 stor2rrd apache 118285 Mar 23 09:56 CISCO-IF-EXTENSION-MIB.txt
-rw-r--r-- 1 stor2rrd apache 37778 Mar 23 09:56 CISCO-NS-MIB.txt
-rw-r--r-- 1 stor2rrd apache 16466 Mar 23 09:56 CISCO-SMI.txt
-rw-r--r-- 1 stor2rrd apache 17768 Mar 23 09:56 CISCO-ST-TC.txt
-rw-r--r-- 1 stor2rrd apache 68838 Mar 23 09:56 CISCO-TC.txt
-rw-r--r-- 1 stor2rrd apache 63312 Mar 23 09:56 CISCO-VSAN-MIB.txt
-rw-r--r-- 1 stor2rrd apache 188721 Mar 23 09:56 CISCO-ZS-MIB.txt
-rw-r--r-- 1 stor2rrd apache 59499 Mar 23 09:56 ENTITY-MIB.txt
-rw-r--r-- 1 stor2rrd apache 11052 Mar 23 09:56 FA-EXT-MIB.txt
-rw-r--r-- 1 stor2rrd apache 110703 Mar 23 09:56 FCMGMT_MIB.txt
-rw-r--r-- 1 stor2rrd apache 59117 Mar 23 09:56 FIBRE-CHANNEL-FE-MIB.txt
-rw-r--r-- 1 stor2rrd apache 95161 Mar 23 09:56 SW-MIB.txt
[stor2rrd@poc3pc3601 ~]$ snmpwalk -v 2c -c zabbix 10.1.14.3 1.3.6.1.2.1.1.5
SNMPv2-MIB::sysName.0 = STRING: iotapersei.tecban.com
[stor2rrd@poc3pc3601 ~]$ snmpwalk -v 2c -c zabbix 10.1.14.3 1.3.6.1.2.1.31.1.1.1.11
IF-MIB::ifHCOutUcastPkts.16777216 = Counter64: 28424246
IF-MIB::ifHCOutUcastPkts.16781312 = Counter64: 437824363047
...
==========
==========
Confs on CISCO MDS SAN SW
iotapersei# sh snmp community
Community Group / Access context
_________ ______________ _______
private network-admin
zabbix network-operator
TiGRMON3TBaN10 network-operator
eccuser network-admin
iotapersei# sh snmp user |grep zabb
zabbix no no network-operator
All storages configurations are working good but the SAN there´s no way!
========
Summary:
========
VNX5200_VI_217 SPA ok
VNX5200_VI_217 SPB ok
VNX5400_VI_441 SPA ok
VNX5400_VI_441 SPB ok
UNITY_BKP_VI ok
VMAX003_DV ok
VMAX050_VI ok
VMAX045_VI ok
VMAX027_DV ok
VMAX036_VI ok
SAN: 10.1.14.3 nok
Thank you for your time.
Best regards,
Thiago Nascimento
Comments
-
Hi,
you might not have installed net-snmp-perl package.
rpm -qa | net-snmp-perl
umask 0022
yum install net-snmp-perl
-
Hi Pavel,
On stor2rrd requisites i had some problems to find this rpm so i got it from centos/fedora repository. My stor2rrd machine dont have direct internet access to install extra repos. So i download it from another machine from this publics repos.[root@poc3pc3601 ~]# umask 0022[root@poc3pc3601 ~]# yum install net-snmp-perlLoaded plugins: langpacks, product-id, search-disabled-repos, subscription-managerThis system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.No package net-snmp-perl available.Error: Nothing to do[root@poc3pc3601 ~]# rpm -qa |grep -i snmp |grep perlperl-Net-SNMP-6.0.1-7.el7.noarchperl-SNMP_Session-1.13-5.el7.noarch[root@poc3pc3601 ~]#[root@poc3pc3601 ~]# man rpm[root@poc3pc3601 ~]# rpm -qi perl-Net-SNMP-6.0.1-7.el7.noarchName : perl-Net-SNMPVersion : 6.0.1Release : 7.el7Architecture: noarchInstall Date: Tue 10 Apr 2018 01:34:31 PM BRTGroup : Development/LibrariesSize : 408914License : GPL+ or ArtisticSignature : RSA/SHA256, Sun 16 Feb 2014 04:13:02 PM BRT, Key ID 6a2faea2352c64e5Source RPM : perl-Net-SNMP-6.0.1-7.el7.src.rpmBuild Date : Fri 07 Feb 2014 06:47:28 PM BRSTBuild Host : buildvm-20.phx2.fedoraproject.orgRelocations : (not relocatable)Packager : Fedora ProjectVendor : Fedora ProjectSummary : Object oriented interface to SNMP
-
Hi,
we use this package:
# rpm -qa |grep -i snmp |grep perl
net-snmp-perl-5.7.2-28.el7_4.1.x86_64
-
Thank you Pavel.
I´ll try to remove and install with this package.
anyway i back here to update if have sucess or not.
Regards, -
Hi Pival,
Finally done. Thanks a lot for your help and time!=========================SWITCH: 10.1.14.3=========================test snmpwalk:snmpwalk -v 2c -c zabbix 10.1.14.3:161 1.3.6.1.2.1.1.5SNMPv2-MIB::sysName.0 = STRING: iotapersei.tecban.comsnmpwalk cmd : oksan_verify.pl:Type : CISCODestHost : 10.1.14.3Version SNMP : 2cCommunity : zabbixCommunity : zabbixSNMP port : 161Switch name : iotapersei.tecban.comSTATE : CONNECTED!connection ok
I removed the snmp *.i686 packages and install x86_64.
Regards,
Thiago Nascimento
Howdy, Stranger!
Categories
- 1.6K All Categories
- 41 XORMON NG
- 25 XORMON
- 149 LPAR2RRD
- 13 VMware
- 16 IBM i
- 2 oVirt / RHV
- 4 MS Windows and Hyper-V
- Solaris / OracleVM
- XenServer / Citrix
- Nutanix
- 6 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