Menu

Can't Locate SNMP/Info.PM

2016-05-17
2017-10-23
  • Scott Langley

    Scott Langley - 2016-05-17

    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
  • Asim Gurwara

    Asim Gurwara - 2016-05-19

    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?

     
  • Chheang Chhayheng

    I want this solution too, please answer with this quesiton

     
  • TamT

    TamT - 2017-03-01

    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
  • Christian Krausse

    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

     

Log in to post a comment.