myITforum.com Community Forum myITforum.com Community Forum

Home  Forums  Blogs  Live Support chat  Search Articles  Wiki  FAQ  Email Lists  Register  Login  My Profile  Inbox  Address Book  My Subscription  My Forums 

Photo Gallery  Member List  Search  Calendars  FAQ  Ticket List  Log Out

All Forums RSS Feed Subscription:


  


Advertisement Reporting

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
  Printable Version
All Forums >> [Management Products] >> Microsoft Systems Management Server >> SMS 2003 >> Advertisement Reporting Page: [1]
Login
Message << Older Topic   Newer Topic >>
Advertisement Reporting - 7/31/2008 10:28:46 AM   
cpatrick891


Posts: 15
Score: 0
Joined: 9/18/2007
Status: offline
Ok, this is likely something simple I am missing, so someone slap me.  :)

I have a collection of machines based on an AD group.
To this collection, I have advertised a package.

Now that I have removed machines from the group and the collection has updated and thus removed them, is there a way to make it so that my "Status of a specific advertisement" report no longer shows these machine's respective status?

Post #: 1
RE: Advertisement Reporting - 7/31/2008 11:30:05 AM   
jnelson993


Posts: 899
Score: 127
Joined: 2/18/2005
From: Minneapolis, MN
Status: offline

That report's purpose is to show you how the deployment did.  It wasn't intended to have machines disappear if they were successful.  If it did that, you wouldn't be able to use it to show mgmt that you got your 90% success rate (or whatever).

However, if you want to modify the report so that it does that, about all you have to do is add a parameter to the report to get a collectionID and then include a little SQL to the report to exclude machines from that particular collection.

declare @Total int
declare @Accepted int

select @Total=count(*), @Accepted=sum(case LastState when 0 then 0 else 1 end)
from v_ClientAdvertisementStatus
where AdvertisementID=@AdvertID
  AND resourceID NOT IN (SELECT ResourceID FROM v_FullCollectionMembership WHERE CollectionID = @CollID)

select LastAcceptanceStateName as C013, count(*) as C015,
     ROUND(100.0*count(*)/@Total,1) as C016,
AdvertisementID
from v_ClientAdvertisementStatus
where AdvertisementID=@AdvertID
  AND resourceID NOT IN (SELECT ResourceID FROM v_FullCollectionMembership WHERE CollectionID = @CollID)
group by LastAcceptanceStateName, AdvertisementID

select LastStateName as C017, count(*) as C015,
      ROUND(100.0*count(*)/@Accepted,1)  as C016,
AdvertisementID
from v_ClientAdvertisementStatus
where AdvertisementID=@AdvertID and LastState!=0
  AND resourceID NOT IN (SELECT ResourceID FROM v_FullCollectionMembership WHERE CollectionID = @CollID)
group by LastStateName, AdvertisementID



_____________________________

Number2 (John Nelson)
MyITForum - Blog
MyITForum - Forum Posts

(in reply to cpatrick891)
Post #: 2
RE: Advertisement Reporting - 7/31/2008 11:38:00 AM   
cpatrick891


Posts: 15
Score: 0
Joined: 9/18/2007
Status: offline
Thanks, John!

Just to make myself clear, I didn't want to remove any that were successful.  We had some PCs added to the AD group erroneously.  They never got the package.  Just sat at "No Status". 

To be honest, it is more of an athstetic thing than anything else, but I have a console with this deployment status so my boss could go to it and just see where we stand on deployments.  He saw we were at 96% after 5 hours and never went up.  I had to explain why ... which, if you have ever explained anything technical to my boss, you would understand why I like avoiding these situations. 

(in reply to jnelson993)
Post #: 3
RE: Advertisement Reporting - 7/31/2008 11:49:21 AM   
jnelson993


Posts: 899
Score: 127
Joined: 2/18/2005
From: Minneapolis, MN
Status: offline
I think I've worked for that guy :)

Yeah, sorry, my answer was for a totally different problem.

Well, I can't think of too many options for you then...there's no good way to distinguish those from the machines that naturally fell out of the collection due to success.


_____________________________

Number2 (John Nelson)
MyITForum - Blog
MyITForum - Forum Posts

(in reply to cpatrick891)
Post #: 4
RE: Advertisement Reporting - 7/31/2008 11:53:56 AM   
cpatrick891


Posts: 15
Score: 0
Joined: 9/18/2007
Status: offline
No worries at all.  I just made a new report for him.

This one reports status of an advertisement only if they are in the group in AD.
No membership ... no show.  Seems to be ok.

(in reply to jnelson993)
Post #: 5
Page:   [1]
All Forums >> [Management Products] >> Microsoft Systems Management Server >> SMS 2003 >> Advertisement Reporting Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts



  
Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.188