Solved

VMware View 4.5 script to logoff users.

Posted on 2011-02-24
4
805 Views
Last Modified: 2012-05-11
I want to query the view composer database to find out the last compose date for view desktops then schedule a reboot of the oldest desktops.  But I  have not been able to find that information in the database.  Anyone know the table that this would be in, and what it would be called?
0
Comment
Question by:MGHS
  • 3
4 Comments
 
LVL 119

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 125 total points
ID: 34979311
if you have a look in the View Composer SQL database that you have created for use for VMware View 4.5.

table dbo_SVI_SIM_CLONE

has SIM_CLONE names, VM_NAME, GOLDEN_MASTER, LAST_SYNC_TIME and VM_UUID.

table dbo_SVI_DEPLOYMENT_GROUP

has VM_SS_CREATE_TIME

table dbo_SVI_REPLICA

has GOLDEN_SS_CREATE_TIME

I'm sure you could use these timestamps in your scripts if you wanted.
0
 

Author Comment

by:MGHS
ID: 34981842
Since I don't have these View desktops registering in DNS restarting by name didn't work.  Is there a table that you know of that I could query for Last_Sync_Time and IP address instead of VM_NAME?   The reason for this is that View was so successful that the demand has exceeds the host resources when a large number of users trying getting a session at once.  So while we beg for money to buy 2 new host servers I set the pool to never disconnect the sessions.   But to keep from filling the disk space I want to query for the oldest VM's then pass the IP to powershell to restart computer which triggers view composer to destroy the desktop and create a fresh one.  This way we have control over how many users are forced to log into a new session each morning.

Thank you very much for your help.
0
 
LVL 119
ID: 34981866
No IP Addresses are stored in the tables.
0
 
LVL 119
ID: 34981868
Machine Names and VMware UUIDs
0

Featured Post

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question