Menu

switchmap.pl GetDirectoryDepth error

Help
Anonymous
2012-08-24
2014-11-26
  • Anonymous

    Anonymous - 2012-08-24

    Hello,

    First off, great software. Thank you. I've been using Switchmap since version
    10.14. on Windows. I decided to move up to the latest version so we can use
    the .csv function. getarp.pl and scanswitch.pl are working fine. When running
    switchmap.pl I get the following error messages:

    Use of uninitialized value $ifName in hash element at
    C:/Inetpub/wwwroot/switchmap/GetIsPortTrunking.pm line 124.

    'C:\Inetpub\wwwroot\switchmap\SwitchMap.css' and
    'C:\Inetpub\wwwroot\switchmap\SwitchMap.css' are identical (not copied) at
    C:\Inetpub\wwwroot\switchmap\SwitchMap.pl line 416

    GetDirectoryDepth called with "C:\Inetpub\wwwroot\switchmap\vlans", which
    doesn't start with $DestinationDirectory, exiting

    I've defined $DestinationDirectory in mySite.pm, so not sure of next steps?

     
  • Pete Siemsen

    Pete Siemsen - 2012-08-24

    That first one - the uninitialized value - you can ignore. I just added a
    check to the current version to make it not emit that error.

    The second error - about SwitchMap.css - is a warning that you can also
    ignore. I can't explain it. The code should prevent it from happening. I
    changed the code a bit in a way that may prevent it from happening, but I
    don't have a Windows box to test against.

    The third error is obviously more significant. What have you defined
    $DestinationDirectory to be?

     
  • Anonymous

    Anonymous - 2012-08-24

    Thank you for the quick reply.

    Within ThisSite.pm these are the defined path variables I have:

    $DestinationDirectory = 'C:/Inetpub/wwwroot/switchmap/';

    $DestinationDirectoryRoot = 'C:/Inetpub/wwwroot/switchmap/';

    $StateFileDirectory = 'C:/Inetpub/wwwroot/switchmap/stateinfo';

    $CgiDir = '/cgi-bin/';

    Thank you

     
    • Pete Siemsen

      Pete Siemsen - 2012-11-16

      Sorry I dropped the ball on this. Are you still interested in getting it working?

       
  • Asim Gurwara

    Asim Gurwara - 2014-05-08

    Hi Pete,
    I need help with the same problem of GetDirectoryDepth error with SwitchMap.pl

    Using SwitchMap ver. 13.1


    C:\Inetpub\wwwroot\switchmap>c:\perl\bin\perl SwitchMap.pl
    GetDirectoryDepth called with "C:\inetpub\switchmap\vlans", which doesn't start
    with c:\inetpub\switchmap, exiting


    My settings are:
    $DestinationDirectory = 'c:\inetpub\switchmap';
    $DestinationDirectoryRoot = '../';

    I have a bit of confusion about the $DestinationDirectory and $DestinationDirectoryRoot variables as well. Windows-Installation.pdf specifies to create it above the wwwroot folder and the switchmap.pl seem to be creating the directory and index.html file in this C:\inetpub\switchmap folder. However, the Windows-Installation.pdf provides the following test url:

    http://localhost/switchmap/index.html

    which underneath the default wwwroot directory! Is this a virtual directory pointing back to the c:\inetpub\switchmap directory?

    Thanks,

    Asim

     

    Last edit: Asim Gurwara 2014-05-08
  • Asim Gurwara

    Asim Gurwara - 2014-05-14

    Update: Resolved

    It is now working after going through some of the other threads in this forum. Basically, we can have the source and statefiles directory anywhere on the system we want as long as it is accessible by the user running the switchmap.pl. However, the output files need to be readable by the Anonymous IIS account and writeable by the user running the Switchmap.pl script.

     
  • shazmi

    shazmi - 2014-11-26
    Post awaiting moderation.

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.