Using the checkADConfig.sh script
This tool should be run from a PSC or embedded vCenter Server.
- Download the checkADConfig.sh script attached to this article.
- From an SSH session to the vCenter Appliance, create a new directory for the tool
mkdir -p /root/debugging
cd /root/debugging
- Move the checkADConfig.sh file to the /root/debugging directory
- Make the file executable
chmod +x /root/debugging/checkADConfig.sh
- Run the script with the options applicable for your environment
Usage:
./checkADConfig.sh --domain=domain1 --hostType=<esx/vc> --site=site1 --nameserver=dns1 > checkADConfig_res.txt
- Required: --domain=<single or comma-separated AD domain list>
- Required: --hostType=<esx/vc>
- Optional: --site=<single or comma-separated sites list>
- Optional: --site=<dns server ip>
Example:
./checkADConfig.sh --domain=example.com,example-2.com --hostType=vc --site=Default-First-Site-Name > checkADConfig_res.txt
It will generate output into a file like this: checkADConfig_res.txt
An example of this file has also been attached to this article for comparison.