2 WLCS for failover

Hi,
I want to buy a second WLC. The equipment hasn't been ordered yet so I just trying to think a head.
As I understand it if I buy the second WLC and put it in the same mobility group then enable AP fallback that is all I have to do. Is that really it? They will be 2504's. The APs are Air Cap 36021-A-k9.
What about adding the access points etc etc does that happen automatically and the config gets replicated? Again sorry to ask what might be a stupid question for many but I really know very little about wireless at the moment.
Also is there an idiots guide somewhere for setting up guest wireless lans?
Thanks,

Consider a scenario where there are two Wireless LAN Controllers (WLCs) named WLC1 and WLC2. These WLCs are configured in the same subnet in one WLAN. In order to achieve high availability, this is how the WLAN is configured:
WLC1 and WLC2 are configured within the same mobility      group.
Half of the access points are configured to use WLC1 as      the primary WLC and use WLC2 as the secondary WLC.
The other half of the access points are configured to      use WLC2 as the primary WLC and use WLC1 as the secondary WLC.
The fallback feature is enabled on both WLC1 and WLC2.
Network Diagram
Resolution
If any of the WLCs go down, the access point that is joined to the failed WLC  recognizes this (keep alive (heartbeat) between access point and WLC). Therefore, the access point begins to join the good WLC, which still runs. This is not stateful failover, which means that the access point has to join the new WLC and therefore the wireless clients.
Also, if either of the WLCs do not work and the affected access points re-register to the other WLC, then the wireless clients have to re-associate and therefore lose wireless connection during failover as it is not stateful failover. The failover is not transparent to the WLAN client. That is, the WLAN clients lose their WLAN connectivity during access point failover.
Access points and clients are not effected on the WLC that runs. This means that the fallback of the access point is not transparent to the clients. Only access points and clients on the failed WLC are effected.
In order to configure the WLAN Controller failover for Lightweight Access points, the Access Point must be configured correctly in a mobility group for the AP failover and each Wireless LAN Controller (WLC) must have the AP failover feature enabled.
Configure the Fallback Feature on WLC
The last step is to configure the Fallback feature on the controller. This feature ensures that the AP switches return to the first WLC when the WLC that comes back on line. Complete these steps:
From the GUI, choose Controller > General.A      list of options appears on the General screen.
For the AP Fallback option, choose Enabled from      the drop-down menu.
Click Apply.Note: It is sufficient to      enable the Fallback feature on the secondary controller alone. But it is      recommended to configure it on the primary WLC as well because it can be      configured as a secondary controller for other access points
http://www.cisco.com/image/gif/paws/69639/wlc_failover-12.gif
After you complete these steps, the setup is configured for WLC failover. When the primary controller (WLC-1, in this case) goes down, the APs automatically get registered with the secondary controller (WLC-2). The APs register back to the primary controller when the primary controller comes back on line. AP switching between the primary and secondary controllers also affects the wireless clients associated with these APs.
In controller software release 5.1.151.0, you can configure the wireless network so that the backup controller recognizes a join request from a higher-priority access point and, if necessary, disassociates a lower-priority access point as a means to provide an available port. In order to configure this feature, failover priority must be enabled on the network and assign priorities to the individual access points. By default, all access points are set to priority level 1, which is the lowest priority level.
Note: Be aware that Failover priority takes effect only if there are more association requests after a controller failure than there are available backup controller ports.
Wireless LAN Controller Failover Priority
During installation, Cisco recommends you connect all lightweight access points to a dedicated controller, and configure each lightweight access point for final operation. This step configures each lightweight access point for a primary, secondary, and tertiary controller and allows it to store the configured mobility group information. When sufficient controllers are deployed, if one controller fails, active access point client sessions are momentarily dropped while the dropped access point associates with another controller, which allows the client device to immediately reassociate and reauthenticate.
You can also follow the below link(WLAN Controller Failover for Lightweight Access Points Configuration Example)
http://www.cisco.com/en/US/tech/tk722/tk809/technologies_configuration_example09186a008064a294.shtml

Similar Messages

  • Want to configure BACKUP VPN in asa 5505 for failover link

    Hi,
    Current i'm having 2 isps one tata and another one reliance iwant to configure the backup vpn for reliance ip for same peer ip which tata vpn had configured
    i mandatory to configure same SA,ENCRPTION,IPSEC POLICY,KEY,LIFETIME...etc for failover vpn also.

    Hi michael,
    First of thanks for reply.
    Can we do it by public certificate or DNS entry e.g. both ISP Public ip address entry will be in DNS and user will hit particular DNS name. You r right that once link down so user will disconnect but when he will retry then he will connect via another link.
    Is it possible??
    Ashish

  • Cisco ASA - 2 Site to Site routes needed for failover -Is possible?

    3 physical sites. 2 ASA 5510 (routing mode_). 3rd site is in between ASA sites. 2 different connections. Depending on which link goes down, a certain set of Network Lists for Site to Site VPN is needed to place the 3rd site subnets where they belong depending on which link dies. The tunnels all work. Here is my wonder: Can I automate this somehow in my environment (all Cisco 3750/3560/2960) so that I can leave both tunnels in place so that if either link dies, the appropriate tunnel is picked for failover? Running 8.03 code on ASA. Using EIGRP (love that protocol). Anyone have any ideas?

    You can implement failover or loadbalancing . Use this configuration examples for your configurations.
    http://cisco.com/en/US/products/ps6120/tsd_products_support_configure.html

  • Setting up Access Manager and Directory Server for Failover.

    I'm setting up 2 Access Managers AM1,AM2 and 2 Directory Servers DS1 and DS2 for failover. I've connected AM1 and AM2 to DS1. Suffixes of DS1 is replicated to DS2. Any change made to AM1 is replicated to AM2 as expected. I just patched AM1 with Access Manager patch 1 and the version information for AM1 shows 7.1 126359-01. I followed the same procedure to patch AM2 but AM2 still shows ver 7.1.
    How do I make sure both Access Managers are patched to the same version?
    I'm able to authenticate to one IIS6 site and authentication is passed on to Outlook Web Access on AM1 but when I shut down AM1 to test failover to AM2 OWA prompts me again for password. How do I resolve this?
    On AM1 http://host.domain/amserver/UI/Login?realm=sso successfully logs in but the same on AM2 gives Warning that "You have already logged in. Do you want to log out and then login to a different organization?"
    Please help !!!

    I'll answer what bits I can:
    Q: AM showing the same version?
    A: No idea on this one. I would have expected the operation you described to have produced the right answer. Check that neither your application server nor your web browser are caching old pages (ctrl-F5 in my browser)
    Q: How do I resolve re-authentication on failover?
    A: The AM documentation includes a deployment example that covers pretty closely what it is you are trying to achieve:
    http://docs.sun.com/app/docs/doc/820-2278
    Specifically, the problem you are describing is related to session failover. The sessions are stored in a local DB so when you failover the backup server does not store the same information and hence requires a reauthentication. The section of the above doc that deals with this is here:
    http://docs.sun.com/app/docs/doc/820-2278/gdsre?l=en&a=view
    Q: "You have already logged in" warning
    A: No idea. Sorry.
    R

  • Can't create a service for failover on 2 node windows2008 RAC

    To create a new service for failover,
    1)Enterprise Manager can not be used by prompting an error: many people already mentioned.
    2)Net Manager could create a service but it fails to test showing:
    Attempting to connect using userid: qa1
    The test did not succeed.
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Q1: According to doc, it should be used ONLY for Non-cluster and single instance. Is this why I have an error?
    Q2: If not, what should I need to do to fix this problem?
    3)Using command line like
    C:\Users\administrator.QAPF2>srvctl add service -d ORCL -s NLS -r orcl1 -a orcl2
    C:\Users\administrator.QAPF2>srvctl start service -d ORCL -s NLS
    C:\Users\administrator.QAPF2>srvctl status service -d ORCL -s NLS
    Service NLS is running on instance(s) orcl1
    C:\Users\administrator.QAPF2>sqlplus /nolog
    SQL> connect sys as sysdba
    SQL> alter system register;
    When I try to connect from client using "jdbc:oracle:thin:@orarac-scan:1521:NLS" connection string, I got the following error:
    Listener refused the connection with the following error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
    The Connection descriptor used by the client was:orarac-scan:1521:NLS
    Note: If I use "ORCL1" instead of NLS, then it works. ORCL1=SID on node1, NLS=service name.
    Q3: Are there anything I should do more?
    Q4: How do I add a listener for this new service(NLS)? I added the following using Net Manager but no effect:
    (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = orarac-scan)(PORT = 1521)))

    Yes, it worked with sqlplus commandline(local or from remote) like:
    C:\>sqlplus system@NLS
    SQL*Plus: Release 11.2.0.3.0 Production on Fri Apr 20 17:11:19 2012
    Copyright (c) 1982, 2011, Oracle. All rights reserved.
    From a remote client:
    C:\oracle>sqlplus qa1@NLS
    SQL*Plus: Release 11.1.0.6.0 - Production on Tue Apr 24 10:12:31 2012
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    Enter password:
    Connected to:.............................................................................
    However, if I use the connection string suggested by you:
    C:\oracle>sqlplus qa1@\"orarac-scan:1521/NLS\"
    SQL*Plus: Release 11.1.0.6.0 - Production on Tue Apr 24 10:14:30 2012
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    Enter password:
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    additional information:
    From a remote client:
    C:\oracle>nslookup orarac-scan
    Server: admin01.qalab01.nextlabs.com
    Address: 10.23.57.5
    Name: orarac-scan.qapf2.qalab01.nextlabs.com
    Addresses: 10.23.57.35, 10.23.57.34, 10.23.57.36
    The followings are from node1:
    C:\>srvctl status service -d ORCL -s NLS
    Service NLS is running on instance(s) orcl1
    C:\Users\administrator.QAPF2>srvctl status scan
    SCAN VIP scan1 is enabled
    SCAN VIP scan1 is running on node orarac2
    SCAN VIP scan2 is enabled
    SCAN VIP scan2 is running on node orarac2
    SCAN VIP scan3 is enabled
    SCAN VIP scan3 is running on node orarac2
    C:\Users\administrator.QAPF2>srvctl status scan_listener
    SCAN Listener LISTENER_SCAN1 is enabled
    SCAN listener LISTENER_SCAN1 is running on node orarac2
    SCAN Listener LISTENER_SCAN2 is enabled
    SCAN listener LISTENER_SCAN2 is running on node orarac2
    SCAN Listener LISTENER_SCAN3 is enabled
    SCAN listener LISTENER_SCAN3 is running on node orarac2
    C:\Users\administrator.QAPF2>srvctl status listener
    Listener LISTENER is enabled
    Listener LISTENER is running on node(s): orarac2,orarac1
    C:\Users\administrator.QAPF2>srvctl config service -d orcl -s NLS
    Service name: NLS
    Service is enabled
    Server pool: ORCL_NLS
    Cardinality: 1
    Disconnect: false
    Service role: PRIMARY
    Management policy: AUTOMATIC
    DTP transaction: false
    AQ HA notifications: false
    Failover type: NONE
    Failover method: NONE
    TAF failover retries: 0
    TAF failover delay: 0
    Connection Load Balancing Goal: LONG
    Runtime Load Balancing Goal: NONE
    TAF policy specification: NONE
    Edition:
    Preferred instances: orcl1
    Available instances: orcl2
    Edited by: 928042 on Apr 24, 2012 10:36 AM

  • (HELP)Configuring two Solaris 10 sun servers for FAILOVER.

    Hi guys,
    i have two sunfire v440 servers which i have loaded Solaris 10 OS on them and i have installed a Web and DNS server on them..However i would like to synchronize both the servers for FAILOVER,so that incase one is down (crashes),the second can take over.I believe their is a daemon which can be used to accomplish this task.
    Any ideas on what daemon in Solaris 10 that can do the Heartbeat synchronisation of two Solaris 10 servers,so that when one crashes,the second takes over.I will appreciate your assistance on this sys-admins.
    Regards
    ncmaina

    Sun Cluster ?
    Or maybe oracle RAC.
    any better advise ?

  • Multiple Data Source (for FAILOVER) in Easy Connect Naming method

    Hi All,
    I was wondering if there is a way to specify multiple addresses as part of data source property in the connection string when trying to connect to Oracle with Easy Connect Naming method? this is basically for failover scenario.
    I know its straight forward, if i use Connect Descriptor. But not sure how to do it with EZConnect
    For ex. this is what I want to achieve with EZConnect
    sales.us.example.com=
    (DESCRIPTION=
    (ADDRESS_LIST=
    (LOAD_BALANCE=off)
    (FAILOVER=ON)
    *(ADDRESS=(PROTOCOL=tcp)(HOST=sales1-server)(PORT=1521))*
    *(ADDRESS=(PROTOCOL=tcp)(HOST=sales2-server)(PORT=1521)))*
    (CONNECT_DATA=(SERVICE_NAME=sales.us.example.com)))
    I appreciate your suggestions...
    Thanks

    You might get better answers in one of the DB forums from a generic fail-over perspective as EZconnect isn't specific to ODP.NET.
    I don't know if there's a way to do it or not with EZConnect version of the connect string, but you can certainly provide the fully qualified connect string without using tnsnames.ora..
    constring = "data source=(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=off)(FAILOVER=ON)(ADDRESS=(PROTOCOL=tcp)(HOST=sales1-server)(PORT=1521))(ADDRESS=(PROTOCOL=tcp)(HOST=sales2-server)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=sales.us.example.com))); user id=scott;password=tiger"
    Hope it helps,
    Gres

  • Unable to setup WLC for LDAP

    Hi,
    I'm trying to setup WLC for LDAP to authenticate the users. I have all the components required according to cisco's document. WLC4402, LAP1142N, 2008 AD serving as LDAP.
    I'm configuring according to the document and also trying same settings from other users on this forum who (seems to) have got the WLC-LDAP up and working. My problem is that I'm receiving the below debug message on the controller and there is nothing on the internet on this error:
    *LDAP DB Task 1: Apr 28 10:05:35.903: LDAP server 1 changed state to IDLE
    *emWeb: Apr 28 10:09:21.046: aaaLdapServerStateSet [1] changed state to 'DISABLED'.
    *emWeb: Apr 28 10:09:21.046: aaaLdapServerStateSet [1] changed state to 'ENABLED'.
    *LDAP DB Task 1: Apr 28 10:09:21.052: ldapTask [1] received msg 'CLOSE' (4) in state 'IDLE' (1)
    *LDAP DB Task 1: Apr 28 10:09:21.055: ldapClose [1] called lcapi_close (rc = 1008 - Invalid client handle)
    *LDAP DB Task 1: Apr 28 10:09:21.055: LDAP server 1 changed state to IDLE
    I'm getting this error regardless of the authentication type, any username and attributes. So it makes me think WLC is not even trying to bind to LDAP. If the error was invalid credentials or something mismatch or something, it gives me some information to base my troubelshooting but I just can't find information on this (rc = 1008 - Invalid client handle) message.
    I appreciate any input you guys have. Also if you need me to post my config screenshots or anything else, then please let me know
    Thanks,
    Delgee

    Hi Nicolas,
    Thanks for the reply.
    I've tried with Softterra LDAP browser and it is working fine. I can browse everything with the account I'm using for binding.
    The funny thing I found out is that the LDAP authentication is actually working, when I try to connect via wireless and enter my AD account the on web auth page, it logs me in. So it is authenticating agains LDAP but why I'm getting this error, I don't know.
    Any idea?
    Regards,
    Delgee

  • Add gridlink datasource to Multi Datasource for failover in weblogic

    We have a RAC installation for which I have configured a Gridlink datasource. Also we have a single node DB which is used as a failover database in case RAC is down.
    Now I want to configure a Multi Datasource so that I can add the Gridlink datasource as well as the Generic Datasource in the Multi Datasource and configure it for failover. But when I create the Multi Datasource, I do not see the option to add Gridlink datasource to Multidatasource.
    Can you please suggest what can be done to add the gridlink datasource to multidatasource? If this is not possible, then how can the Generic single node data source be configured as a failover datasource in case the Gridlink Datasource is down.
    Thanks in advance

    What is the problem you are trying to address? Is the issue the availability/non-availability of your RAC database? It may make sense to focus on this first.
    The normal use case for Multi Data Source is failover or load balancing between nodes of a highly available database, such as RAC which keeps data synchronised.
    I am not sure if using a Multi Data Source across Oracle RAC and a non RAC database is supported. If the intention is to provide a HA solution, you will need to have a data synchronisation solution as well. As this is what Oracle RAC does, we come back to my opening question.........
    I assume that Multi Data Sources cannot include Gridlink and non-Gridlink sources for these reasons and also because Gridlink is intended as a replacement for Multi Data Sources, providing better failover, load balancing and performance.
    Hope this is helpful
    Mark

  • Event Trace Session missing for Failover Cluster

    I have a failover cluster setup and is managed via a Windows Domain controller for the failover cluster network.  I am troubleshooting a potential issue with the failover cluster and the recommendation is to go into event viewer, app & service
    logs, Microsoft, windows and look for failover cluster diagnostics and operations logs and these do not exist. 
    It appears they are created by having an event trace session associated with windows failover clustering but apparently it was't created when the cluster was created for some reason.  I am wondering how to create the proper event trace session
    in order to get these additional failover cluster logs created? 

    Hello,
    the following forum mat be the better one for your needs:
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverClustering
    Best regards
    Meinolf Weber
    MVP, MCP, MCTS
    Microsoft MVP - Directory Services
    My Blog: http://blogs.msmvps.com/MWeber
    Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
    Twitter:  

  • Independent Zone Paths for Failover Services

    We wish to use Sun Cluster 3.2 to operate failover zones across 3 or more servers. It would seem that for failover services, zone paths must exist on shared storage and all associated failover zones must use that exact zone filesystem. However for load-balancing, it appears that multiple independent zonepaths are allowed.
    My question is can failover zones be deployed WITHOUT using a single zone path filesystem. It seems to me that it complicates patching and maintenance to the zone filesystem if it is always in use. Not to mention, a corruption in that zone path's files would be forced on the entire set of zones using that path.
    I'm new to Sun Cluster and am skittish about deploying a large fiber channel infrastructure if it is not really necessary. Thanks for any corrections / advice on the above.

    Now I understand what you want to achieve. Unfortunately wording is not yet precise with all these new technologies.
    What you need is not the HA Container agent, and what you want is not failover zones. But you want to have local zones, and let HA services failover between local zones on different nodes. Nothing easier than that. Just use the "normal" procedures to configure an agent. Now, instead of using the nodenames for the nodelist of the resource group, give it a list of the zone names that you want this service to run in. Example could be:
    clrg create -p nodelist=host-A:zone-FOO,host-B:zone-FOO,host-C:zoneFOO. Now you can switch the HA service between the zone-FOO(s) on the 3 nodes without switching the zones themselves. And you can patch them without taking the service offline. Great.
    If you want to make the data that your HA service uses highly available, you still would need some kind of shared filesystem. How could the HA service, switched onto another node:zone would get access to it, if not via a filesystem that was also switched over?
    There is still value to the HA COntainer agent: if, e.g. you want to use the blackbox approach and do not care much about the potential outages of the zones during patch cycles. And there is more.
    Hope that helps
    Hartmut

  • Syslogging on WLC for custom webauth bundle

    Hi,
    I recently created a WLAN for guest users. They would have to "register" themselves by entering an emailadress. After this they get access to guest WLAN for a number of hours. My question: In the logs of our syslog server I don't see any of these registrations. How can I enable this or what is needed to do this?
    kind regards,
    tverscheure

    Hello Tim,
    As per your query i can suggest you the following solution-
    In order to configure the WLC for syslog servers with the GUI, complete these steps from the Wireless LAN Controller GUI.
    1.Choose MANAGEMENT > Logs > Config to navigate to this page.
    2.Enter the syslog server IP address and click Add.
    3.Under Syslog Level, set the severity level to filter syslog messages to the syslog servers.
    4.Under Syslog Facility, set the facility for outbound syslog messages to the syslog servers.
    5.Click Apply.
    For more information refer to the link-
    http://www.cisco.com/en/US/products/ps6307/products_configuration_example09186a00809a2d76.shtml
    Hope this will help you.

  • RAC TNS Entry for FAILOVER

    Hi DBAs,
    We have a 4 node RAC Database (10.2.0.4) on Solaris 5.10. Sometime for maintenance we brought 2 nodes down. And using a service (which include all the VIPs for all oracle instances) If I try to connect to the database, I get error TNS Service not available and after 3-4 tries it automatically connect.
    I have not specified the FAILOVER parameter in the TNSNAMES.ORA. Assuming the default value is FAILOVER=ON.
    Please suggest do I need to explicitly define the value for FAILOVER, if so what would be the appropriate value - FAILOVER=ON or FAILOVER=YES. Also what is the difference between FAILOVER=ON & FAILOVER=YES .
    Thanks
    -Samar-

    Hi Samar,
    Put the vip addresses on your tnsnames.ora as the sample bellow.
    ORCL =
    (DESCRIPTION =
    (LOAD_BALANCE = ON)
    (FAILOVER = ON)
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = host1-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = host2-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = host3-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = host4-vip)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl.com)
    (FAILOVER_MODE =
    (TYPE = SELECT)
    (METHOD = BASIC)
    (RETRIES = 10)
    (DELAY = 1)
    This video from Pythian by Alex Gorbachev will help you to clarify about vip addresses use http://www.pythian.com/news/2624/pythian-video-oracle-rac-why-vips
    Regards,
    Rodrigo Mufalani
    http://mufalani.blogspot.com

  • Shared Printers - Using a DNS record instead of server name for failover

    I have a Server 2012 Print Server. I plan on creating a second one for failover purposes. I will be installing the shared printers on client PCs using Group policy preferences.  Instead of using
    \\servername\printer as the path, can I create a DNS record for the server name and use
    \\dnsname\printer?  That way, if the first server dies, I just edit the dns record to point to the second server instead of renaming the second server and changing the IP of the second server.

    Hi,
    Based on your description, we can try creating a DNS alias for our printer server and use the alias instead of the host name in the UNC path. When this server goes down, we
    can make the alias pointing to another printer server.
    Regarding how to create an alias for a DNS host name, the following article can be referred to for more information.
    Add an Alias (CNAME) Resource Record to a Zone
    http://technet.microsoft.com/en-us/library/cc772053.aspx
    Hope it helps.
    Best regards,
    Frank Shen

  • Script to run a DB query, but have multiple DB servers (for failover) I want to loop through until I find one that is available

    Conceptually I'm not sure the best way to go about this, looking for some guidance.  I'm running a MySQL query and I have the code working against a single MySQL server.  However I want to build some redundancy into the code so if it tries one
    DB and it's not available, it tries the next one.  I have come up with two ways to do this.
    First one is basically an If statement looking at error[0] as a condition.  Tries to connect to the first server and if throws an error, it tries the second and if that fails it exits the code.  This is less scalable as I have to code in connection
    strings for each server.
    Second one is a loop that goes through connection to each DB server I setup in an array until the connection.state = "open", then it should proceed to the rest of the code.
    Foreach ($MySQLHost in $SQLHostArray) {
    $error.clear()
    $ConnectionString = "server=" + $MySQLHost + ";port=3306;uid=" + $MySQLAdminUserName + ";pwd=" + $MySQLAdminPassword + ";database="+$MySQLDatabase
    $Connection.ConnectionString = $ConnectionString
    do {$connection.open()}
    until ( $Connection.state -eq "open" )
    However I don't know how to exit that loop if all servers fail. 
    Which is the best bet for building failover into the script, or is there a better way I haven't thought of yet?

    You could use a counter - 
    $lexit = 0
    $count = ($SQLHostArray.count -1)
    Foreach ($MySQLHost in $SQLHostArray) {
    $lexit++
    $error.clear()
    $ConnectionString = "server=" + $MySQLHost + ";port=3306;uid=" + $MySQLAdminUserName + ";pwd=" + $MySQLAdminPassword + ";database="+$MySQLDatabase
    $Connection.ConnectionString = $ConnectionString
    do {$connection.open()}
    until ( $Connection.state -eq "open" -or $lexit -eq $count)

Maybe you are looking for