Modifying the ESXDetails attribute

You must modify the value of the "ESXDetails" attribute (of the VMwareDisks agent) if you want the VMwareDisks agent to communicate with the vCenter Server (instead of the ESX/ESXi host) for the disk detach and attach operations.

By default the "ESX Details" attribute of the VMwareDisks agent used the hostnames or IP addresses and the user account details of the ESX hosts on which the virtual machines are configured. To enable the VMwareDisks agent to communicate with the vCenter Server, you must modify the ESXDetails attribute and provide the hostname or IP address and the user account details of the vCenter Server to which the virtual machines belong.

Use the Cluster Manager (Java Console) or the Command Line to modify the attribute values.

To modify the attribute from Cluster Manager

  1. From the Cluster Manager configuration tree, select the VMwareDisks resource and then select the Properties tab.
  2. On the Properties tab, click the Edit icon next to the ESX Details attribute.
  3. On the Edit Attribute dialogue box, select all the entries specified under the Key-Value column and press "-" to delete them.
  4. Encrypt the password of the vCenter Server user account.
    • From the command prompt, run the following command:

      Vcsencrypt - agent

    • Enter the vCenter Server user account password.

    • Re-enter the specified password

      The encrypted value for the specified password is displayed.

  5. On the Edit Attribute dialogue box, click "+" to specify the values under the Key-Value column.
  6. Under the Key column, specify the vCenter Server hostname or the IP address.
  7. Under the Value column, specify the encrypted password of the vCenter Server user account (from step 4)
  8. Click Ok to confirm the changes.
  9. Repeat the steps for all VMwareDisks resources from the Cluster Manager configuration tree.
  10. Save and close the configuration.

To modify/specify the attribute from Command Line

  1. Change the VCS configuration to read/write mode.

    Haconf - makerw

  2. Delete the existing details of the ESX Server.

    hares - modify VMwareDIsks ResourceName ESXDetails - delete - keys

  3. Encrypt the password of the vCenter Server user account.
    • From the command prompt, run the following command:

      Vcsencrypt - agent

    • Enter the vCenter Server user account password.

    • Re-enter the specified password.

      The encrypted value for the specified password is displayed.

  4. Specify the vCenter Server details.
    hares  - modify <VMwareDIsks ResourceName> ESXDetails 
     - add <vCenter IP address or hostname> <UserName>=<encrypted password>