10-11-2006 03:02 PM - edited 03-05-2019 12:12 PM
We are using a Catalyst 6500 CSM to load balance several different sets of web servers. We have an automated deployment system that disables real servers so that new content and code can be rolled out. When the code is rolled out the server is re-enabled. Unfortunately this system involves a script that telnets to the CSM and issues the commands on the command line; making it a very weak component that is prone to weird errors.
Our company is looking into writing a script library that is able to talk to the switch using the XML interface available in the CSM. I have looked through the documentation and I have a couple questions:
1. Is there any way to ?read? status information from the CSM via this interface? The XML interface looks like a write-only API and I would like to be able to request the current configuration for a given server farm from the switch.
2. How can I remove a real server from a server farm? I would like to do the XML equivalent to the following
SJC-6509-A#configure terminal
SJC-6509-A(config)#module contentswitchingmodule 8
SJC-6509-A(config-module-csm)#serverfarm SJPRDMMRT.F
SJC-6509-A(config-slb-sfarm)#no real 10.1.3.65
Thank you
10-17-2006 07:40 AM
check out the following link, hope this helps :
10-19-2006 01:41 PM
I have already gone through the documentation and picked through the DTD in detail and I can't see any way of either reading status data back from the switch or removing real servers from a server farm. The XML interface seems to just be a way of posting a configuration file that just happens to be in XML. Does anyone know if there is a way to programmatically manage the switch having to connect via ssh? It seems like the xml interface is pretty ineffective.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide