Solved

VMware View 4.5 script to logoff users.

Posted on 2011-02-24
4
802 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 117

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) 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 117
ID: 34981866
No IP Addresses are stored in the tables.
0
 
LVL 117
ID: 34981868
Machine Names and VMware UUIDs
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

707 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now