Password Rotation of all VMware Cloud Foundation Service Accounts using a script
search cancel

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

  1. Download the attached rotate_all_svc_accounts.sh script.
  2. 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>
  3. Transfer the script to SDDC Manager /home/vcf directory using WinSCP
  4. SSH to SDDC Manager with vcf user and su to root
  5. 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
  6. Browse to /home/vcf directory
    cd /home/vcf
  7. Execute the script
    ./rotate_all_svc_accounts.sh
  8. Monitor the progress in SDDC Manager UI taskbar

Attachments

rotate_all_svc_accounts.sh get_app