Setting Up Desktop and Application Pools in View

Table Of Contents
Parameter Description
--scanMachines Searches for machines that are in an error or cloneerror state or have missing virtual
machines, lists the problem machines grouped by desktop pool, and gives the option
to remove the machines. Before removing a machine, ViewDbChk prompts the user to
disable the desktop pool. After removing all erroneous machines in a desktop pool,
ViewDbChk prompts the user to re-enable the desktop pool.
--help
Displays the syntax of ViewDbChk.
--desktopName <desktop name> Specifies the desktop pool name.
--machineName <machine name> Specifies the machine name.
--limit <maximum deletes>
Limits the number of machines that ViewDbChk can remove. The default is 1.
--force Forces machine removal without user confirmation.
--noErrorCheck Forces the removal of machines that have no errors.
--verbose Enables verbose logging.
NOTE All the parameter names are case-sensitive.
ViewDbChk Usage Example
A desktop machine named lc-pool2-2 is in an error state and we cannot remove it using View
Administrator. We use ViewDbChk to remove it from the View environment.
C:\>viewdbchk --removeMachine --machineName lc-pool2-2
Looking for desktop pool "lc-pool2" in LDAP...
Desktop Pool Name: lc-pool2
Desktop Pool Type: AUTO_LC_TYPE
VM Folder: /vdi/vm/lc-pool2/
Desktop Pool Disabled: false
Desktop Pool Provisioning Enabled: true
Looking for machine "/vdi/vm/lc-pool2/lc-pool2-2" in vCenter...
Connecting to vCenter "https://10.133.17.3:443/sdk". This may take some time...
Checking connectivity...
Connecting to View Composer "https://10.133.17.3:18443". This may take some time...
The desktop pool "lc-pool2" must be disabled before proceeding. Do you want to disable the
desktop pool? (yes/no):yes
Found machine "lc-pool2-2"
VM Name: lc-pool2-2
Creation Date: 1/25/15 1:20:26 PM PST
MOID: vm-236
Clone Id: b12a9ed2-8535-44ee-a9d6-6c9b5cf6f878
VM Folder: /vdi/vm/lc-pool2/lc-pool2-2
VM State: ERROR
Do you want to remove the desktop machine "lc-pool2-2"? (yes/no):yes
Shutting down VM "/vdi/vm/lc-pool2/lc-pool2-2"...
Archiving persistent disks...
Destroying View Composer clone "b12a9ed2-8535-44ee-a9d6-6c9b5cf6f878"...
Removing ThinApp entitlements for machine "/vdi/vm/lc-pool2/lc-pool2-2"...
Removing machine "/vdi/vm/lc-pool2/lc-pool2-2" from LDAP...
Running delete VM scripts for machine "/vdi/vm/lc-pool2/lc-pool2-2"...
Do you want to enable the desktop pool "lc-pool2"? (yes/no):yes
Chapter 18 Troubleshooting Machines and Desktop Pools
VMware, Inc. 299