07-10-2012 04:57 PM
I have a need to automate the process of
+ disabling http ports of a real server
+ wait for the server to drain (show server should show 0 connections)
+ enable the http ports
We have Brocade ADX 1000 series load balancer which is running 12.2.
So, I can't use the XML API which was added in 12.3.
The other option is to use SSH and script is using python or likes. But, I'm running into issues with the same.
The connection is established with the server and it authenticates fine but I get no response to 'show version'.
Also, I'm not sure if this is the right approach because this would entail mode change to config and executing 'enable' command
which requires human interventation to type in the password.
What is the best way to automate this process, if at all. Also, reference to any existing script which does something similar would be great help.
We have no plans to upgrade to 12.3 or higher anytime soon.
07-13-2012 01:09 AM
with the constraints you have given there is no other option than using an external script to do what you need.
Instead of using SSH you can use SNMP OIDs. Check the MIB reference.
disable/enable Real Server Port: brcdIp.184.108.40.206.1.1.4
check real server port statistics: brcdIp.220.127.116.11.1.1.7
What do you want to do with this procedure. Is it used for any maintance tasks?