Can't locate SNMP.pm in @INC
in SAN
Running the following Redhat release.
$ cat redhat-release
$ cat redhat-release
Red Hat Enterprise Linux Server release 7.6 (Maipo)
When I run the config_check.sh script, I receive the following:
=========================
SWITCH: 10.240.208.100
=========================
UDP connection to "10.240.208.100" on port "161" is ok
san_verify.pl:
Can't locate SNMP.pm in @INC (@INC contains: /usr/app/stor2rrd/stor2rrd/bin /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 /usr/lib64/perl5/vendor_perl /usr/app/stor2rrd/stor2rrd/lib /usr/app/stor2rrd/stor2rrd/bin /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/app/stor2rrd/stor2rrd/bin/SNMP_lib.pm line 5.
BEGIN failed--compilation aborted at /usr/app/stor2rrd/stor2rrd/bin/SNMP_lib.pm line 5.
Compilation failed in require at /usr/app/stor2rrd/stor2rrd/bin/san_verify.pl line 7.
BEGIN failed--compilation aborted at /usr/app/stor2rrd/stor2rrd/bin/san_verify.pl line 7.
connection failed!!
Check network connectivity and user access
I have updated the openssl package and still receive the same results. The switch is a Cisco MDS-9148. The snmpwalk utility confirms connectivity and I can ping this switch. I have searched for the SNMP.pm module and have not found it.
Any ideas?
Comments
-
Hi,you have to install SNMP support modules as per docu:# umask 0022
# yum install net-snmp
# yum install net-snmp-utils
# yum install net-snmp-perl
-
As you can see below, I have two of the three packages installed. The net-snmp-perl does not install.# yum list | grep net-snmpnet-snmp.x86_64 1:5.7.2-43.el7 @rhui-REGION-rhel-server-releasesnet-snmp-agent-libs.x86_64 1:5.7.2-43.el7 @rhui-REGION-rhel-server-releasesnet-snmp-libs.x86_64 1:5.7.2-43.el7 @rhui-REGION-rhel-server-releasesnet-snmp-utils.x86_64 1:5.7.2-43.el7 @rhui-REGION-rhel-server-releasesnet-snmp-agent-libs.i686 1:5.7.2-43.el7 rhui-REGION-rhel-server-releasesnet-snmp-devel.i686 1:5.7.2-43.el7 rhui-REGION-rhel-server-releasesnet-snmp-devel.x86_64 1:5.7.2-43.el7 rhui-REGION-rhel-server-releasesnet-snmp-libs.i686 1:5.7.2-43.el7 rhui-REGION-rhel-server-releases# yum install net-snmp-perlLoaded plugins: amazon-id, product-id, rhui-lb, search-disabled-repos, subscription-managerThis system is not registered with an entitlement server. You can use subscription-manager to register.rhui-REGION-client-config-server-7 | 2.9 kB 00:00:00rhui-REGION-rhel-server-releases | 3.5 kB 00:00:00rhui-REGION-rhel-server-rh-common | 3.8 kB 00:00:00(1/2): rhui-REGION-rhel-server-releases/7Server/x86_64/updateinfo | 3.4 MB 00:00:00(2/2): rhui-REGION-rhel-server-releases/7Server/x86_64/primary_db | 60 MB 00:00:01No package net-snmp-perl available.Error: Nothing to do
This is a VM running in AWS. I am not sure if AWS will allow this package to install. Any further recommendations? -
Hi,read manual, just a line below is writen what probably affecting you as you have RHEL===========================Note you might need to allow optional repositories on RHEL to yum can find it
# subscription-manager repos --list
...
# subscription-manager repos --enable rhel-7-server-optional-rpms
============================
-
I was able to enable the required repository and install the net-snmp-perl package. Thanks for your assistance.
-
your welcome
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