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

ViewDbChk

ViewDbChk

Summary

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 Comment

18 thoughts on “ViewDbChk

    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
  1. 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
  2. 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
  3. 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
  4. 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=""> <strike> <strong>