Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

There are two ways to modify administrator information:

...

Through the VSS-CLI commands

...

Table of Contents
maxLevel6
minLevel1
include
outlinefalse
indent
excludeInstructions|Related articles
styledisc
typelist
printabletrue
class

Using VSS-CLI commands

For this example we will use the of test.user

...

  1. Open a web browser and log into the VSS Cloud Portal

  2. Select the virtual machine you wish to update by clicking on the edit icon.


  3. Navigate to the ADMIN tab and proceed to update the email address in the Admin email text field.

  4. Click UPDATE button.

  5. Click CONFIRM button to apply and save the changes.

  6. To update the email addresses of other virtual machines, simply repeat the steps outlined above for each machine that requires an update. This will ensure that all virtual machines have up-to-date contact information and are receiving important updates from the ITS Private Cloud Portal.

Bulk update

Bulk update can be achieved with the vss-cli and bash as follows:

Code Block
#!/bin/bash

# Define the vss-cli command to update the admin
UPDATE_ADMIN_CMD="vss-cli compute vm set"

# Define the VM IDs to update
VM_IDS=`vss-cli --columns moref --table-format plain --no-headers compute vm ls -f admin=oldadmin@mutoronto.ca`

# Define the admin details to update
ADMIN_NAME="John Doe"
ADMIN_EMAIL="john.doe@example.com"
ADMIN_PHONE="123-456-7890"

# Loop through each VM ID and update the admin
for VM_ID in "${VM_IDS[@]}"; do
  echo "Updating admin on VM $VM_ID..."
  $UPDATE_ADMIN_CMD $VM_ID admin "$ADMIN_NAME" "$ADMIN_EMAIL" "$ADMIN_PHONE"
  echo "Admin updated on VM $VM_ID."
done

...