Subscribe RSS Feed | Follow on Twitter

Using the event database in View 4.5

View Comments

A new function in View 4.5 is the event database which stores as the name already says events. The event database can be configured via View Administrator but must be created before. The following example shows how to create a database on a Mircosoft SQL Server Express. Open a command prompt on the server running the database and use this command to create a database:

C:\>osql -E -S vcenter.xxx.cd-k.de\SQLEXP_VIM
1> create database ViewEvents
2> go
1> exit

Then logon to the View Administrator and expand the View configuration option in the menu bar and select Event configuration. This page will allow you to configure a event database with the View Manager. It’s essential that you’ve created the database before, because there is now option to do it here.

image

Ensure that your SQL Server is configured correctly. Then check if SQL Server and Windows Authentication mode is enabled on the server. The easiest way for checking that is using the SQL Server Management Studio Express. Do right-click on server and choose Properties. Under Security select SQL Server and Windows Authentication mode. Then go to connections and allow Remote Connections to the SQL server by setting the checkbox.

 

If not already done please create a new database called ViewEvents for example. You can also do that through the Management Studio when clicking with the right mouse button on Databases then enter a database name.

 

After that you’ve to create a new login. Within SQL Server Management Studio Express select SQL Server Authentication and provide username and password. Then change the default database to ViewEvents. In the next step please set the user mapping. Set the default schema to dbo and set the role membership to db_owner & public. Then set status and grant permissions to connect, also enable the login.

 

As SQL Express is using dynamic Ports (not the standard port 1433) use the SQL Server Configuration Manager to find this TCP port. You’ll need it for the configuration as seen in the screenshot below.

image

When configured properly you’ll see the events when clicking on Monitoring, Events in the left menu pane. These information could also be obtained by using reporting tools which are accessing the database directly.

image

The event database gives you all information about the virtual desktop environment on one page. With the new role based administration modell you can give the monitoring team or helpdesk just access to teh events page if you want. For the database Microsoft SQL and Oracle is supported in this version.

Similar Posts:

Written by Christoph Harding

August 30th, 2010 at 2:43 pm

Posted in View Manager

  • Dirk

    These are the kind of Blogs i hate. The kind of blogs that kick in open doors. Al this information are also in the Admin and Install guides and this blog is totally unnecessary. It has no added value over VMware’s own documentation what so ever.

    Sorry, don’t wanna kick your teeth in but these kind of useless “attention whore” blogs (look at me, i can write a blog too) are just so aggravating.

  • http://www.cd-k.de/ Christoph Harding

    If you are pointing to Installation Guide page 86, this is about a Standard SQL Server! It doesn’t tell you about dynamic ports. This article was posted because loads of customers and partners had issues with configuring the test database on a SQL Server Express. Also the Installation Guide doesn’t tell you more about the authentication and roles to set within the DB.

    You should also stick to the netiquette please! Thanks.

  • John T. Fisher

    I have to agree with Dirk. People that use the Express Version are generally not at all interested in Security and Roles within the DB. They just use the defaults. They are “next.next.finish” people.

    And people that use dynamic ports know very well that they cannot use the default port 1433.

    I do agree with *you* however that Dirk could have used bit of a different tone in his post.

  • http://www.cd-k.de/ Christoph Harding

    SQL Express does always use dynamic ports.

    Have you tried to use sql express as View event db?

    try it.. it’s not only next, next.

  • http://blog.scottcochran.org/2010/12/09/weekly-roundup-2/ Weekly Roundup #2 « blog.scottcochran.org

    [...] VMware View 4.5 Events Database [...]

  • Jay Rogers

    Hey for me this was very helpful. I am not a SQL guy but really like learning more. I was really struggling to get the events. db working with SQL express…and this made it happen!

    Thanks

  • http://www.cd-k.de/ Christoph Harding

    Great to hear that Jay.

    Sent from my iPad.

    Am 29.12.2010 um 18:07 schrieb “Disqus” :

  • theefool

    Thanks, this has helped me quite a bit. Though, a few here were pretty child like whiny comments.

blog comments powered by Disqus