Flings
Apps and tools built by our engineers that are intended to be played with and explored.

ViewDbChk

ViewDbChk

Summary

Note: The functionality of this Fling has now been integrated into Horizon View 6.1. However, you can still download this Fling if you are using earlier versions of Horizon View.

 

The ViewDbChk tool allows administrators to scan for, and fix provisioning errors that can not be addressed using View Administrator. Provisioning errors occur when there are inconsistencies between the LDAP, vCenter and View Composer databases. These can be caused by: direct editing of the vCenter inventory, restoring a backup, or a long term network problem.

This tool allows VMware View administrators to scan for machines which can not be provisioned and remove all database entries for them. The View Connection Server will then be able to re-provision the machine without any errors.

 

scanMachines

System Requirements

This fling is designed to be compatible with VMware Horizon 5.3 and 6.0. It should only be deployed on systems where the View Connection Server from VMware Horizon 5.3 or 6.0 has already been installed.

Separate downloads of ViewDbChk are provided for VMware Horizon 5.3 and 6.0. Please ensure that you install the correct version of ViewDbChk for your View Connection Server.

Instructions

  1. Download the VMware ViewDbChk zip file.
  2. Create a new directory that is independent of the existing View Server installation.
  3. Unzip the ViewDbChk zip file into the new directory.
  4. Open a command prompt and 'cd' to the new directory.
  5. Type 'viewdbchk' to display the tool's help.

Video

Change Log

Engineers

Griff James

Enterprise Desktop
Add Feedback

24 thoughts on “ViewDbChk

  1. Phil

    I wish there was a –listMachines options that would list the machines that are in a pool, by netbios name machine name not Adam database name. It would look something like this: viewdbchk.cdm –listMachines –desktopName

    Reply
  2. Phil

    In view administrator my machines have names like Standard-001. However in AD the machine is STANDARD-001.
    So this happens:
    C:\viewdbchk-x86_64-e.x.p-1990161-1>viewdbchk.cmd –findMachine –desktopName Standard –machineName Standard-001
    Looking for desktop pool “Standard” in LDAP…
    ** ERROR: The machine “Standard-001″ is not a member of the desktop pool “Standard” **

    C:\viewdbchk-x86_64-e.x.p-1990161-1>viewdbchk.cmd –findMachine –desktopName Standard –machineName STANDARD-001
    Looking for desktop pool “Standard” in LDAP…
    Desktop Pool Name: Standard
    Desktop Pool Type: AUTO_LC_TYPE
    VM Folder: /thprd-vdi/vm/Desktops – Linked Clones/Standard/
    Desktop Pool Disabled: false
    Desktop Pool Provisioning Enabled: true
    Checking connectivity…
    Connecting to View Composer “https://192.168.163.149:18443″. This may take some time…
    Connecting to vCenter “https://192.168.163.146:443/sdk”. This may take some time…
    Looking for machine “STANDARD-001″ in View Composer…
    Deployment Group Id: 1cdf0253-081a-4628-a39d-dd4a1fb35580
    Clone Id: 041ce134-786b-444d-9434-f4dee41e59df
    MOID: vm-1286
    Parent VM MOID: vm-1162
    Parent VM Snapshot MOID: snapshot-1163
    Looking for parent VM in vCenter…
    MOID: vm-1162
    Snapshot Name: WIN7_32_PRO(base51-standard-exempt)-Snapshot1.vmsn
    Looking for machine “STANDARD-001″ in vCenter…
    ** ERROR: NOT FOUND **
    Looking for machine “STANDARD-001″ in LDAP…
    ** ERROR: NOT FOUND **

    C:\viewdbchk-x86_64-e.x.p-1990161-1>

    Reply
    1. Griff James

      Hi,

      Can you send the output from:

      viewdbchk.cmd –findMachine –desktopName Standard –machineName Standard-001

      Thanks

      Reply
    1. Griff James

      Hi Declan,

      Can you provide a few more details on the
      – version of View you are using the fling with
      – details of the error you are seeing

      Thanks

      Reply
    1. Griff James

      Hi Anton,

      No, ViewDbChk won’t detect VMs that are missing from ADAM. If the entry for a VM has been removed from ADAM, View will attempt to re-provision the VM and re-create the ADAM entry before failing because the VM already exists.

      Griff

      Reply
  3. Masanobu.H

    Hello Griff,

    My customer would like to use this tool on View5.2. Can we use with 5.2?
    I remember 5.3 was planed to be released as 5.2.3 at that time, so I think
    its OK but would like to confirm if 5.2 is QAed.

    Kind regards,
    Masanobu.

    Reply
    1. Terry Odom

      Additionally, when installing I get the error “Could not find the main class: com.vmware.vdi.viewdbchk.viewdbchk. Program will exit.”

      Reply
      1. Griff James

        Hi Terry,

        ViewDbChk is designed to install in a separate directory from the connection server. e.g. c:\ViewDbChk.

        The bat file looks in the registry for the directory where the connection server is installed and then uses the JVM from there.

        Are you cd’ing to the directory where ViewDbChk was unzipped before running it?

        Reply
  4. Ben Miller

    Does using this tool require me to install Java on my Connection Server? If so, what version of Java is required?

    Reply
    1. Griff James

      Hi Ben,

      ViewDbChk uses the JVM installed as part of the connection server. You don’t need to explicitly install Java, the only requirement is that a connection server is already installed on the machine.

      Reply
  5. Griff James

    Sorry Brian, I missed your question.

    Yes, there is a plan to port to View 5.3. I don’t have an exact ETA at the moment.

    Reply
  6. Brian N.

    This looks like an amazing tool to have. We are not yet on Horizon 6. Is there any chance this will work or could be made to work with Horizon 5.2 or View 4.6?

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>