I have downloaded and installed Switchmap per the directions for Windows installation. There is still a error in the "Thissite.pm file
"%LocalSwitchTrunkPorts = (
'switch1' => [ "ge-0/1/0", "ge-0/1/1" ],
'switch2' => [ "xe-0/0/1" ],"
In the actual file the trailing (") on line switch2 is missing I added my own to fix it but just wanted to give the heads up.
So back to MY issues I'm having.
I have completed the testing with the:
GetArp.pl <-- Ran without errors
ScanSwitch.pl <-- Ran without errors
Switchmap.pl <-- Ran without errors(I think)
I am not an Perl expert to say the lease but I was able to muddle my way through the instructions, So it appears the the switchmap.pl runs but it does NOT create the folders or the index.html files in the locations. Manually created the switches, vlan and ports director to help. I have run the switchmap.pl -d 7 command I can see that the script is running (see output below):
2015/04/30 13:45:10 PopulateEtherChannels::FillEtherChannels: ParentChildTuple = 0/972
2015/04/30 13:45:10 PopulateEtherChannels::FillEtherChannels: ParentChildTuple = 645/0
2015/04/30 13:45:10 PopulateEtherChannels::FillEtherChannels: ParentChildTuple = 0/571
2015/04/30 13:45:10 PopulateEtherChannels::FillEtherChannels: ParentChildTuple = 657/0
2015/04/30 13:45:10 PopulateEtherChannels::FillEtherChannels: ParentChildTuple = 0/31
2015/04/30 13:45:10 PopulateEtherChannels::FillEtherChannels: ParentChildTuple = 693/0
2015/04/30 13:45:10 PopulateEtherChannels::FillEtherChannels: ParentChildTuple = 550/0
2015/04/30 13:45:10 PopulateEtherChannels::FillEtherChannels: ParentChildTuple = 724/0
2015/04/30 13:45:10 PopulateEtherChannels::FillEtherChannels: ParentChildTuple = 181/0
2015/04/30 13:45:10 PopulateEtherChannels::FillEtherChannels: ParentChildTuple = 0/958
2015/04/30 13:45:10 PopulateEtherChannels::FillEtherChannels: ParentChildTuple = 239/0
2015/04/30 13:45:10 PopulateEtherChannels::FillEtherChannels: returning
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: called
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: ParentIfIndex = 894
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: NumberChildren = 4
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: ParentIfIndex = 891
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: NumberChildren = 2
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: ParentIfIndex = 1070
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: NumberChildren = 2
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: ParentIfIndex = 895
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: NumberChildren = 2
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: ParentIfIndex = 890
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: NumberChildren = 2
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: ParentIfIndex = 892
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: NumberChildren = 2
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: ParentIfIndex = 889
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: NumberChildren = 2
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: ParentIfIndex = 893
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: NumberChildren = 2
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: returning
2015/04/30 13:45:10 PopulateEtherChannels::PopulateEtherChannels: returning
2015/04/30 13:45:10 Switch::PopulateSwitch: returning success
2015/04/30 13:45:10 main::CreateSwitches: returning 4 switches
2015/04/30 13:45:10 main::CreateVlans: called
2015/04/30 13:45:10 Vlan:🆕 called to create an object for Vlan 10
2015/04/30 13:45:10 Vlan:🆕 returning
2015/04/30 13:45:10 Vlan:🆕 called to create an object for Vlan 180
2015/04/30 13:45:10 Vlan:🆕 returning
2015/04/30 13:45:10 Vlan:🆕 called to create an object for Vlan 187
2015/04/30 13:45:10 Vlan:🆕 returning
2015/04/30 13:45:10 Vlan:🆕 called to create an object for Vlan 183
2015/04/30 13:45:10 Vlan:🆕 returning
2015/04/30 13:45:10 Vlan:🆕 called to create an object for Vlan 405
2015/04/30 13:45:10 Vlan:🆕 returning
2015/04/30 13:45:10 Vlan:🆕 called to create an object for Vlan 1
2015/04/30 13:45:10 Vlan:🆕 returning
2015/04/30 13:45:10 Vlan:🆕 called to create an object for Vlan 101
2015/04/30 13:45:10 Vlan:🆕 returning
2015/04/30 13:45:10 Vlan:🆕 called to create an object for Vlan 111
2015/04/30 13:45:10 Vlan:🆕 returning
2015/04/30 13:45:10 Vlan:🆕 called to create an object for Vlan 0
2015/04/30 13:45:10 Vlan:🆕 returning
2015/04/30 13:45:10 main::CreateVlans: returning, created 9 VLANs
2015/04/30 13:45:10 main::: creating output files...
2015/04/30 13:45:10 main::WriteMainIndexFile: called, writing main C:\inetpub\switchmap\index.html
2015/04/30 13:45:10 main::WriteMainIndexFile: writing C:\inetpub\switchmap\index.html
2015/04/30 13:45:10 main::WriteMainIndexFile: returning
2015/04/30 13:45:10 main::WriteCssFile: called
2015/04/30 13:45:10 main::WriteCssFile: copying SwitchMap.css to c:\inetpub\switchmap
2015/04/30 13:45:10 main::WriteCssFile: returning
2015/04/30 13:45:10 WriteVlansDirectory::WriteVlansDirectory: called
2015/04/30 13:45:10 SwitchUtils::SetupDirectory: called to setup C:\inetpub\switchmap\vlans
2015/04/30 13:45:10 SwitchUtils::SetupDirectory: deleted 0 files from C:\inetpub\switchmap\vlans
GetDirectoryDepth called with "C:\inetpub\switchmap\vlans", which doesn't start with c:\inetpub\switchmap, exiting
So based off the tail of the script logs can anyone tell me what I may need to do?
Thanks,
Gregory Jackson
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Cool! What a stupid problem. It has to do with library routines that
manipulate file paths so that the code can run on Unix systems and Windows
systems, which have different file path syntax. This bug only hits Windows
users, and only ones who happen to enter directory paths into ThisSite.pm
with the drive specifiers in lowercase. The user shouldn't expect any
problem, because Windows lets you use lowercase or uppercase elsewhere.
I'll fix the code so it allows uppercase or lowercase. Sorry about that -)
Okay so I have completed all of the task finally now I'm working on the search functionality anyone have a good readme I can use to get my search f(x)s working?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
So I have everything "almost" working some minor errors her and there but with the help of google I'm able to get through a lot of the issue. Some of the oustanding issue I am having:
No vlan information on the swithcports all switchport that are dynamically assigned through 802.1x are showing in Vlan 1.
I am not getting the color background tables all white cells in all of my HTML docs
I'm not getting tables in my statistics html.
No search capability ((but we're working on that)
I have also used the updates provide by https://github.com/dotysan/switchmap to update to the latest files. If that is not recommended please let me know I can resinstall if I must.
Thanks.
Greg
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have downloaded and installed Switchmap per the directions for Windows installation. There is still a error in the "Thissite.pm file
"%LocalSwitchTrunkPorts = (
'switch1' => [ "ge-0/1/0", "ge-0/1/1" ],
'switch2' => [ "xe-0/0/1" ],"
In the actual file the trailing (") on line switch2 is missing I added my own to fix it but just wanted to give the heads up.
So back to MY issues I'm having.
I have completed the testing with the:
GetArp.pl <-- Ran without errors
ScanSwitch.pl <-- Ran without errors
Switchmap.pl <-- Ran without errors(I think)
I am not an Perl expert to say the lease but I was able to muddle my way through the instructions, So it appears the the switchmap.pl runs but it does NOT create the folders or the index.html files in the locations. Manually created the switches, vlan and ports director to help. I have run the switchmap.pl -d 7 command I can see that the script is running (see output below):
2015/04/30 13:45:10 PopulateEtherChannels::FillEtherChannels: ParentChildTuple = 0/972
2015/04/30 13:45:10 PopulateEtherChannels::FillEtherChannels: ParentChildTuple = 645/0
2015/04/30 13:45:10 PopulateEtherChannels::FillEtherChannels: ParentChildTuple = 0/571
2015/04/30 13:45:10 PopulateEtherChannels::FillEtherChannels: ParentChildTuple = 657/0
2015/04/30 13:45:10 PopulateEtherChannels::FillEtherChannels: ParentChildTuple = 0/31
2015/04/30 13:45:10 PopulateEtherChannels::FillEtherChannels: ParentChildTuple = 693/0
2015/04/30 13:45:10 PopulateEtherChannels::FillEtherChannels: ParentChildTuple = 550/0
2015/04/30 13:45:10 PopulateEtherChannels::FillEtherChannels: ParentChildTuple = 724/0
2015/04/30 13:45:10 PopulateEtherChannels::FillEtherChannels: ParentChildTuple = 181/0
2015/04/30 13:45:10 PopulateEtherChannels::FillEtherChannels: ParentChildTuple = 0/958
2015/04/30 13:45:10 PopulateEtherChannels::FillEtherChannels: ParentChildTuple = 239/0
2015/04/30 13:45:10 PopulateEtherChannels::FillEtherChannels: returning
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: called
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: ParentIfIndex = 894
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: NumberChildren = 4
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: ParentIfIndex = 891
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: NumberChildren = 2
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: ParentIfIndex = 1070
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: NumberChildren = 2
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: ParentIfIndex = 895
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: NumberChildren = 2
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: ParentIfIndex = 890
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: NumberChildren = 2
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: ParentIfIndex = 892
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: NumberChildren = 2
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: ParentIfIndex = 889
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: NumberChildren = 2
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: ParentIfIndex = 893
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: NumberChildren = 2
2015/04/30 13:45:10 PopulateEtherChannels::CleanupEtherChannels: returning
2015/04/30 13:45:10 PopulateEtherChannels::PopulateEtherChannels: returning
2015/04/30 13:45:10 Switch::PopulateSwitch: returning success
2015/04/30 13:45:10 main::CreateSwitches: returning 4 switches
2015/04/30 13:45:10 main::CreateVlans: called
2015/04/30 13:45:10 Vlan:🆕 called to create an object for Vlan 10
2015/04/30 13:45:10 Vlan:🆕 returning
2015/04/30 13:45:10 Vlan:🆕 called to create an object for Vlan 180
2015/04/30 13:45:10 Vlan:🆕 returning
2015/04/30 13:45:10 Vlan:🆕 called to create an object for Vlan 187
2015/04/30 13:45:10 Vlan:🆕 returning
2015/04/30 13:45:10 Vlan:🆕 called to create an object for Vlan 183
2015/04/30 13:45:10 Vlan:🆕 returning
2015/04/30 13:45:10 Vlan:🆕 called to create an object for Vlan 405
2015/04/30 13:45:10 Vlan:🆕 returning
2015/04/30 13:45:10 Vlan:🆕 called to create an object for Vlan 1
2015/04/30 13:45:10 Vlan:🆕 returning
2015/04/30 13:45:10 Vlan:🆕 called to create an object for Vlan 101
2015/04/30 13:45:10 Vlan:🆕 returning
2015/04/30 13:45:10 Vlan:🆕 called to create an object for Vlan 111
2015/04/30 13:45:10 Vlan:🆕 returning
2015/04/30 13:45:10 Vlan:🆕 called to create an object for Vlan 0
2015/04/30 13:45:10 Vlan:🆕 returning
2015/04/30 13:45:10 main::CreateVlans: returning, created 9 VLANs
2015/04/30 13:45:10 main::: creating output files...
2015/04/30 13:45:10 main::WriteMainIndexFile: called, writing main C:\inetpub\switchmap\index.html
2015/04/30 13:45:10 main::WriteMainIndexFile: writing C:\inetpub\switchmap\index.html
2015/04/30 13:45:10 main::WriteMainIndexFile: returning
2015/04/30 13:45:10 main::WriteCssFile: called
2015/04/30 13:45:10 main::WriteCssFile: copying SwitchMap.css to c:\inetpub\switchmap
2015/04/30 13:45:10 main::WriteCssFile: returning
2015/04/30 13:45:10 WriteVlansDirectory::WriteVlansDirectory: called
2015/04/30 13:45:10 SwitchUtils::SetupDirectory: called to setup C:\inetpub\switchmap\vlans
2015/04/30 13:45:10 SwitchUtils::SetupDirectory: deleted 0 files from C:\inetpub\switchmap\vlans
GetDirectoryDepth called with "C:\inetpub\switchmap\vlans", which doesn't start with c:\inetpub\switchmap, exiting
So based off the tail of the script logs can anyone tell me what I may need to do?
Thanks,
Gregory Jackson
(Not sure if this got posted, sorry for the repeat if it did)
In your ThisSite.pm file, where you define $DestinationDirectory, is the leading "C" lowercase? If so, please make it uppercase and try again.
That did the trick thank you very much..
Cool! What a stupid problem. It has to do with library routines that
manipulate file paths so that the code can run on Unix systems and Windows
systems, which have different file path syntax. This bug only hits Windows
users, and only ones who happen to enter directory paths into ThisSite.pm
with the drive specifiers in lowercase. The user shouldn't expect any
problem, because Windows lets you use lowercase or uppercase elsewhere.
I'll fix the code so it allows uppercase or lowercase. Sorry about that -)
On Fri, May 1, 2015 at 3:36 PM, Gregory Jackson rabalam@users.sf.net
wrote:
So now I have a few more questions?
My switch names are not being displayed. In the Thissite.pm file I select (1) for display sysname but no luck.
The http://localhost/switchmap/index.html URL is not working. Looked in the directories and the files are there.
Searchportlist URl is not working.
Okay so I have completed all of the task finally now I'm working on the search functionality anyone have a good readme I can use to get my search f(x)s working?
Take a look at the README file, step 11.
So I have everything "almost" working some minor errors her and there but with the help of google I'm able to get through a lot of the issue. Some of the oustanding issue I am having:
No vlan information on the swithcports all switchport that are dynamically assigned through 802.1x are showing in Vlan 1.
I am not getting the color background tables all white cells in all of my HTML docs
I'm not getting tables in my statistics html.
No search capability ((but we're working on that)
I have also used the updates provide by https://github.com/dotysan/switchmap to update to the latest files. If that is not recommended please let me know I can resinstall if I must.
Thanks.
Greg