Registered member login:
Register Now
Altirigos » Altiris Administrators » Reports » All Scheduled Reports

» Current Poll
Do you leave the Aclient enabled?
YES - 82.31%
107 Votes
NO - 17.69%
23 Votes
Total Votes: 130
You may not vote on this poll.
» Stats
Members: 9,492
Threads: 11,748
Posts: 55,283
Top Poster: Nick (4,981)
Welcome our newest member, stavchan
» Online Users: 57
0 members and 57 guests
No Members online
Most users online at once 294, 06-30-2007 at 12:24 PM.
» March 2010
S M T W T F S
28 1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31 123
Reply
Old 08-21-2008, 06:40 PM   #1 (permalink)
 
dbush's Avatar
 
Status: Super Altiris Admin
Join Date: 01-25-2006
Location: Dallas
Age: 30
Posts: 427


All Scheduled Reports

I was asked today for a report that I had never been asked for before - a list of all reports that are scheduled in the system. This would provide a means of monitoring what reports are scheduled.

After some playing around I came up with the attached report. Here is the SQL as well:

Code:
 
SELECT 
 GUID as _ResourceGuid,
 Name as 'Report Name', 
 Description,
 SUBSTRING(state,(PATINDEX('%Description="%',state) + 13),(PATINDEX('%"><BeginDate>%',state) - (PATINDEX('%Description="%',state) + 13))) as Schedule
FROM item 
WHERE state like '%<enabled>True</enabled><schedule%'
 AND classguid = '67033A4E-A848-4A0B-B037-AB02854A315A'
 AND Name != 'All Scheduled Reports'
UNION ALL
SELECT 
 it.GUID as _ResourceGuid,
 rep.Name as 'Report Name', 
 rep.Description, 
 SUBSTRING(it.state,(PATINDEX('%Description="%',it.state) + 13),(PATINDEX('%"><BeginDate>%',it.state) - (PATINDEX('%Description="%',it.state) + 13))) as Schedule
FROM itemschedule sch 
 JOIN item rep on rep.guid = sch.ItemGuid
 JOIN item it on it.guid = sch.scheduleguid
WHERE rep.classguid = '67033A4E-A848-4A0B-B037-AB02854A315A'
EDIT: After sleeping on it I looked the report over and thought it would be good to be able to go directly to a report in the results to modify the schedule. I've added GUID to the SELECT statement so this is allowed.

Also, I should mention that I named this report 'All Scheduled Reports'. If you name it something else, update the line for "AND NAME != 'All Scheduled Reports'". This was a quick and dirty way from excluding this report from showing in the results.
Attached Files
File Type: xml All_Scheduled_Reports.xml (3.4 KB, 40 views)
__________________
David Bush
Senior Consultant
ExpressAbility, Altrinsic

Cell: 214-923-1776
Dallas, TX

Last edited by dbush; 08-22-2008 at 10:55 AM..
dbush is offline   Reply With Quote
Old 08-21-2008, 08:10 PM   #2 (permalink)
 
Nick's Avatar
 
Status: Altiris Architect (Site Founder)
Join Date: 01-01-2005
Location: RDU, North Carolina, USA
Posts: 4,981


Nice one David! I don't care what Doug C says about you.

__________________
Scire potentia est (knowledge is power)
Nick is offline   Reply With Quote
Old 08-21-2008, 08:24 PM   #3 (permalink)
 
dbush's Avatar
 
Status: Super Altiris Admin
Join Date: 01-25-2006
Location: Dallas
Age: 30
Posts: 427




Yeah, I work hard and still can't get no respect...
dbush is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -4. The time now is 11:59 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
vB.Sponsors
Altirigos