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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2012-08-24
Thank you for the quick reply.
Within ThisSite.pm these are the defined path variables I have:
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:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
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?
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
Sorry I dropped the ball on this. Are you still interested in getting it working?
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
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.