I have been running switchmap for about six months and was wondering about a feature request. I have four sites that I run switchmap on. Because switchmap does not care where you are located, I end up with a really long list of routers/switches. I was wondering if it would be possible to change how switchmap polls so you could have a localswitches# variable where "#" could be some number say 1-4 for me so the output is on four different pages. This would allow me to separate my sites so the techs at each site could look through their section only and presentation to my director would look a little more easy. Any chance this could be added in as a next version request?
Mike
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have done this for years. I posted about this before but it is easy to do with java etc. I will set you up with half baked but fully funtional solution.
check out gheek.net and look under docs or scripts.
-lance
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You will have multiple folders under your web direction on web server. For example lets say your directory is "/var/www/html/" for your document root and "/var/www/cgi-bin/" for your cgi-bin root. If you have say 3 sites you need to keep track of.
Site A, Site B, and Site C.
You will now have some directories like so in your document root and the following files in your cgi-bin folder.
"/var/www/html/switchmap/"
"/var/www/html/switchmap/Site_A/"
"/var/www/html/switchmap/Site_B/"
"/var/www/html/switchmap/Site_C/"
"/var/www/cgi-bin/Site_A.pl" (aka FindOffice.pl for Site_A)
"/var/www/cgi-bin/Site_B.pl" (aka FindOffice.pl for Site_B)
"/var/www/cgi-bin/Site_C.pl" (aka FindOffice.pl for Site_C)
I have created a sample files ("Site_A.pl" and "SearchPortlist.html") and placed them on "switchmap.com". They are respectively "http://www.switchmap.com/examples/Site_A.pl" and "http://www.switchmap.com/examples/SearchPortlist.html". They may not be perfect as I just created them quickly. You will need to do this for each site you have.
Look for anything that has "Site_A" "Site A" or "CHANGE ME" and modify those accordingly. Site A/Site_A will be modified to what ever the different location you have.
The "CHANGE ME" line says what it needs to be (aka "CHANGE ME TO YOUR HTML DOCUMENT ROOT"). That would match what you have in your httpd.conf or other web config file you have.
This is all fine and dandy but how do you allow users to get to any of these nice and easy via a nice menu. Well I forgot to copy my setup of that and no longer have that. I might be able to get a copy of what I had if I ask around. The easy way to do that would be to use something like jimmenu "http://www.dynamicdrive.com/dynamicindex1/jimmenu/example3.htm" and you would need to make sure you add the menu to every page though. If you choose jimmenu you would need to add this to the <head> of every html page. This is easily done by editing "SwitchUtils.pm". I have also put one of these edited on "http://www.switchmap.com/examples/SwitchUtils.pm". Make sure you create your directory and have a config in there as well as stated in this statement "/switchmap/jimmenu/config.js" inside the new SwitchUtils.pm. BTW you will need to manually add the jimmenu stuff to "Site_A.pl". If you get lost let me know.
I have had enough for now.
-Lance
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have been running switchmap for about six months and was wondering about a feature request. I have four sites that I run switchmap on. Because switchmap does not care where you are located, I end up with a really long list of routers/switches. I was wondering if it would be possible to change how switchmap polls so you could have a localswitches# variable where "#" could be some number say 1-4 for me so the output is on four different pages. This would allow me to separate my sites so the techs at each site could look through their section only and presentation to my director would look a little more easy. Any chance this could be added in as a next version request?
Mike
mike,
I have done this for years. I posted about this before but it is easy to do with java etc. I will set you up with half baked but fully funtional solution.
check out gheek.net and look under docs or scripts.
-lance
Lance,
I'm on Gheek.net under scripts...what is the name of the script I'm looking for? Thanks again!
Mike
Mike,
Here is the best solution I have for a setup.
You will have multiple folders under your web direction on web server. For example lets say your directory is "/var/www/html/" for your document root and "/var/www/cgi-bin/" for your cgi-bin root. If you have say 3 sites you need to keep track of.
Site A, Site B, and Site C.
You will now have some directories like so in your document root and the following files in your cgi-bin folder.
"/var/www/html/switchmap/"
"/var/www/html/switchmap/Site_A/"
"/var/www/html/switchmap/Site_B/"
"/var/www/html/switchmap/Site_C/"
"/var/www/cgi-bin/Site_A.pl" (aka FindOffice.pl for Site_A)
"/var/www/cgi-bin/Site_B.pl" (aka FindOffice.pl for Site_B)
"/var/www/cgi-bin/Site_C.pl" (aka FindOffice.pl for Site_C)
I have created a sample files ("Site_A.pl" and "SearchPortlist.html") and placed them on "switchmap.com". They are respectively "http://www.switchmap.com/examples/Site_A.pl" and "http://www.switchmap.com/examples/SearchPortlist.html". They may not be perfect as I just created them quickly. You will need to do this for each site you have.
Look for anything that has "Site_A" "Site A" or "CHANGE ME" and modify those accordingly. Site A/Site_A will be modified to what ever the different location you have.
The "CHANGE ME" line says what it needs to be (aka "CHANGE ME TO YOUR HTML DOCUMENT ROOT"). That would match what you have in your httpd.conf or other web config file you have.
This is all fine and dandy but how do you allow users to get to any of these nice and easy via a nice menu. Well I forgot to copy my setup of that and no longer have that. I might be able to get a copy of what I had if I ask around. The easy way to do that would be to use something like jimmenu "http://www.dynamicdrive.com/dynamicindex1/jimmenu/example3.htm" and you would need to make sure you add the menu to every page though. If you choose jimmenu you would need to add this to the <head> of every html page. This is easily done by editing "SwitchUtils.pm". I have also put one of these edited on "http://www.switchmap.com/examples/SwitchUtils.pm". Make sure you create your directory and have a config in there as well as stated in this statement "/switchmap/jimmenu/config.js" inside the new SwitchUtils.pm. BTW you will need to manually add the jimmenu stuff to "Site_A.pl". If you get lost let me know.
I have had enough for now.
-Lance