Password Rotation of all VMware Cloud Foundation Service Accounts using a script
book
Article ID: 383645
calendar_today
Updated On:
Products
VMware Cloud Foundation
VMware Cloud Foundation 5.x
VMware SDDC Manager
Issue/Introduction
Rotate the passwords used for all of the VMware Cloud Foundation service accounts using a script.
Environment
VMware Cloud Foundation 5.x
Resolution
- Download the attached rotate_all_svc_accounts.sh script.
- Edit the script in notepad and change the below details as per your environment
USERNAME=<SSO_USERNAME>
PASSWORD="<SSO_PASSWORD"
SDDC_MGR_IP=<SDDC_MANAGER_IP>
- Transfer the script to SDDC Manager /home/vcf directory using WinSCP
- SSH to SDDC Manager with vcf user and su to root
- Change the file permission and ownership
chmod +x /home/vcf/rotate_all_svc_accounts.sh
chown root:root /home/vcf/rotate_all_svc_accounts.sh
- Browse to /home/vcf directory
cd /home/vcf
- Execute the script
./rotate_all_svc_accounts.sh
- Monitor the progress in SDDC Manager UI taskbar
Feedback
thumb_up
Yes
thumb_down
No