This script search for the Master appliance in a given Unified Access Gateway Cluster, it leverage the Unified Access Gateway REST API to obtain the High Availability state of the appliance and identity the Master.
In order to execute this script successfully you need to:
Execute searchUAGMaster.ps1 using the following parameters:
Notes:
Example:
.\searchUAGMaster.ps1 -username admin -password 4jd9nf9fj -UAGAppliancesFQDNorIP uag1.company.com, uag2.company.com, uag3.company.com, uag4.company.com
.\searchUAGMaster.ps1 -username admin -password 4jd9nf9fj -UAGAppliancesFQDNorIP 192.168.100.11, 192.168.100.12, 192.168.100.13, 192.168.100.14