Solved

VMware View 4.5 script to logoff users.

Posted on 2011-02-24
4
808 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 121

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 121
ID: 34981866
No IP Addresses are stored in the tables.
0
 
LVL 121
ID: 34981868
Machine Names and VMware UUIDs
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Ransomware is a malware that is again in the list of security  concerns. Not only for companies, but also for Government security and  even at personal use. IT departments should be aware and have the right  knowledge to how to fight it.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

688 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