Sample Database Queries And Views - VMware View Manager 4.5 Integration Manual

Hide thumbs Also See for View Manager 4.5:
Table of Contents

Advertisement

Sample Database Queries and Views

List all recent events that are associated with the user fred in the domain MYDOM.
CREATE VIEW user_events AS
(
SELECT ev.EventID, ev.Time, ev.Module, ev.EventType, ev.Severity, ev.Acknowledged
FROM ViewEvents.dbo.VE_event_historical AS ev,
WHERE ev.EventID = ed.EventID AND ed.Name = 'UserDisplayName' AND ed.StrValue =
);
List all recent events where the agent on a machine shut down.
CREATE VIEW agent_shutdown_events AS
(
SELECT ev.EventID, ev.Time, ed.StrValue
FROM ViewEvents.dbo.VE_event_historical AS ev,
WHERE ev.EventID = ed.EventID AND ev.EventType = 'AGENT_SHUTDOWN' AND
);
List all recent events where a desktop failed to launch because the desktop pool was empty.
CREATE VIEW desktop_launch_failure_events AS
(
SELECT ev.EventID, ev.Time, ed1.StrValue, ed2.StrValue
FROM ViewEvents.dbo.VE_event_historical AS ev,
WHERE ev.EventID = ed1.EventID AND ev.EventID = ed2.EventID AND
);
List all recent events where an administrator removed a desktop pool.
CREATE VIEW desktop_pool_removed_events AS
(
SELECT ev.EventID, ev.Time, ed1.StrValue, ed2.StrValue
FROM ViewEvents.dbo.VE_event_historical AS ev,
WHERE ev.EventID = ed1.EventID AND ev.EventID = ed2.EventID AND
);
List all recent events where an administrator added a ThinApp repository.
CREATE VIEW thinapp_repository_added_events AS
(
SELECT ev.EventID, ev.Time, ed1.StrValue, ed2.StrValue, ed3.StrValue
FROM ViewEvents.dbo.VE_event_historical AS ev,
WHERE ev.EventID = ed1.EventID AND ev.EventID = ed2.EventID AND ev.EventID = ed3.EventID
);
VMware, Inc.
ViewEvents.dbo.VE_event_data_historical AS ed
'MYDOM\fred'
ViewEvents.dbo.VE_event_data_historical AS ed
ed.Name = 'MachineName'
ViewEvents.dbo.VE_event_data_historical AS ed1,
ViewEvents.dbo.VE_event_data_historical AS ed2
ev.EventType = 'BROKER_POOL_EMPTY' AND
ed1.Name = 'UserDisplayName' AND ed2.Name = 'DesktopId'
ViewEvents.dbo.VE_event_data_historical AS ed1,
ViewEvents.dbo.VE_event_data_historical AS ed2
ev.EventType = 'ADMIN_DESKTOP_REMOVED' AND
ed1.Name = 'UserDisplayName' AND ed2.Name = 'DesktopId'
ViewEvents.dbo.VE_event_data_historical AS ed1,
ViewEvents.dbo.VE_event_data_historical AS ed2,
ViewEvents.dbo.VE_event_data_historical AS ed3
AND
ev.EventType = 'ADMIN_THINAPP_REPO_ADDED' AND
ed1.Name = 'UserDisplayName' AND ed2.Name = 'ThinAppRepositoryName' AND
ed3.Name = 'ThinAppRepositoryPath'
Chapter 2 Integrating with the Event Database
27

Advertisement

Table of Contents
loading

This manual is also suitable for:

View composer 2.5

Table of Contents