In installed Switchmap v 14.0 in Windows (Server2012 R2, IIS 8). I installed activePERL and the 3 modules, including Net-SNMP. When running any of the test scripts with -d 5, I can open SNMP sessions but cannot retrieve data. The error identifies incorrect communtiy string, but community string is correct and session is open. When running switchmap.pl -d 5, it reports that it can't locate SNMP/Info.PM and that I may need to install SNMP::Info. I verified that Net-SNMP is installed and also reinstalled the package. Still no luck.
I saw another discussion in February on the same topic but no answer was provided. Is there a solution to this issue?
Last edit: Scott Langley 2016-05-17
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I had this problem as well when I tried to install ver14 back in Feb. Previously I tried invane to add the SNMP:Info package to my perl install because I did not find it in the default install.
I have now tried to install it again in a new environment and it gives me the same problem.
c:\inetpub\wwwroot\switchmap>c:\perl64\bin\perl SwitchMap.pl -d 5
Can't locate SNMP/Info.pm in @INC (you may need to install the SNMP::Info module
) (@INC contains: C:/inetpub/wwwroot/switchmap c:/Perl64/site/lib c:/Perl64/lib
.) at C:/inetpub/wwwroot/switchmap/Switch.pm line 4.
BEGIN failed--compilation aborted at C:/inetpub/wwwroot/switchmap/Switch.pm line
4.
Compilation failed in require at SwitchMap.pl line 241.
BEGIN failed--compilation aborted at SwitchMap.pl line 241.
Line 241 is "use Switch;"
I am going to try using v13 for now but not sure if that would support Brocade switches?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In installed Switchmap v 14.0 in Windows (Server2012 R2, IIS 8). I installed activePERL and the 3 modules, including Net-SNMP. When running any of the test scripts with -d 5, I can open SNMP sessions but cannot retrieve data. The error identifies incorrect communtiy string, but community string is correct and session is open. When running switchmap.pl -d 5, it reports that it can't locate SNMP/Info.PM and that I may need to install SNMP::Info. I verified that Net-SNMP is installed and also reinstalled the package. Still no luck.
I saw another discussion in February on the same topic but no answer was provided. Is there a solution to this issue?
Last edit: Scott Langley 2016-05-17
I had this problem as well when I tried to install ver14 back in Feb. Previously I tried invane to add the SNMP:Info package to my perl install because I did not find it in the default install.
I have now tried to install it again in a new environment and it gives me the same problem.
c:\inetpub\wwwroot\switchmap>c:\perl64\bin\perl SwitchMap.pl -d 5
Can't locate SNMP/Info.pm in @INC (you may need to install the SNMP::Info module
) (@INC contains: C:/inetpub/wwwroot/switchmap c:/Perl64/site/lib c:/Perl64/lib
.) at C:/inetpub/wwwroot/switchmap/Switch.pm line 4.
BEGIN failed--compilation aborted at C:/inetpub/wwwroot/switchmap/Switch.pm line
4.
Compilation failed in require at SwitchMap.pl line 241.
BEGIN failed--compilation aborted at SwitchMap.pl line 241.
Line 241 is "use Switch;"
I am going to try using v13 for now but not sure if that would support Brocade switches?
I want this solution too, please answer with this quesiton
I had the same problem.
Solution: Open file Switch.pm and change use SNMP::Info 3.30; to use Net::SNMP 3.30;. This will fix the issue "Can't locate SNMP/Info.pm in @INC"
BTW, I'm using ActivePerl v5.20.2 and v5.24.1 to test.
Last edit: TamT 2017-03-01
Changing to Net::SNMP did not work, the Error appears only later. My Main problem is the missing netsnmp.lib to get SNMP::Info working