VxRail Manager is a powerful tool designed to simplify the management of Dell EMC’s hyper-converged infrastructure solutions. It provides a unified interface for deploying, managing, and monitoring VxRail clusters, ensuring optimal performance and efficiency. One critical aspect of managing VxRail Manager is keeping user accounts up-to-date and secure. In this article, we will discuss how to manage VxRail Manager accounts and check for expired accounts to maintain the integrity of your infrastructure.
Script to the rescue:
Once operation accounts’ passwords expire, users may encounter a roadblock when attempting to access and manage data within the vSphere client. The resulting inconvenience and potential disruptions can be a headache for IT administrators. To ensure the seamless operation of your VxRail cluster, it’s crucial to keep a close eye on password expirations. Fortunately, there’s a handy solution to help you stay on top of this issue. You can utilize a simple script that checks all the accounts and their password statuses, saving you from the unexpected hassles of locked-out users and ensuring uninterrupted access to your VxRail resources.
The script can be found in my GitHub repository.
- User Menu: The script starts by presenting a menu with several options, including checking management accounts, updating vCenter management accounts, updating ESXi management accounts, checking PSNTs and serial numbers, and quitting the script.
- Check Management Accounts: This option allows you to check the vCenter management account and ESXi management accounts for each node. It performs API calls to retrieve credentials from a Unix socket.
- Update Management Account for vCenter: This option prompts the user to provide a new username and password for the vCenter management account. If the user confirms the update, it sends an API request to modify the account.
- Update Management Account for the Nodes: Similar to the vCenter option, this choice prompts the user for a new ESXi management account username and password. It then sends API requests to update the credentials for all ESXi nodes.
- Check PSNTs and Serial Numbers: This option queries and displays chassis IDs and serial numbers of nodes from a PostgreSQL database.
- Quit: The script can be exited at any time by selecting this option.
How to use the script:
- Open a Terminal: Open a terminal on your Linux or macOS system. You can usually find the Terminal application in your system’s applications or utilities folder.
- Navigate to the Script’s Directory: Use the
cdcommand to navigate to the directory where the Bash script is located. For example, if the script is in your home directory, you can navigate to it with:
~ with the actual path to the directory where your script is located.
- Make the Script Executable: Before you can run the script, you need to make it executable. Use the
chmodcommand to do this:
chmod +x account_check.sh
- Run the Script: To run the script, simply type its name and press Enter:
- Follow the On-Screen Instructions: The script will display a menu with different options. Use the arrow keys to navigate the menu, press Enter to select an option, and follow any on-screen instructions provided by the script.
- Exit the Script: To exit the script, select the “Quit” option from the menu.
🔥Subscribe to the channel: https://bit.ly/3vY16CT🔥
🚨Read my blog: https://angrysysops.com/