Package Server Ready Check
Updated: 20 May 2009 | 7 comments
I thought I would share a little SQL report that has come in handy in our organization. We have around 20 package servers and there are occasions, especially in troubleshooting push related issues when it is nice to know which package servers have received a particular package, which are pending, and which are not scheduled to receive it at all. To do this, lets create a new report and create a parameter called "PACKAGE" :
Now enter the following as the SQL for the report:
Select Distinct psvr.[Server], isnull(svr.[PackageName],%PACKAGE%)'PackageName', isnull(svr.[Status],'Not Scheduled')'Status', svr.[PackageId] From v_packagestatus psvr Left Join ( Select Distinct s.[Server], ps.[Name]'PackageName', svr.[Status], svr.[PackageId], svr.[PkgSvrId] From v_packagestatus s INNER JOIN item i On i.[Name]=s.[Server] LEFT JOIN SWDPackageServer svr On i.[Guid]=svr.[PkgSvrId] Left Join SWDPackage ps On ps.[PackageId]=svr.[PackageId] Where ps.[Name]like'%'+%PACKAGE%+'%' )svr On psvr.[Server]=svr.[Server] Order By psvr.[Server]
Now when you run the report, you can give it a package name and you get a report of servers and their status:
article Filed Under:
Group Ownership:
Comments
Great query. This report can
Great query. This report can come in handy so the software team ensures the package is distributed across the enterprise.
On a side note, I modified the Global Parameter so it queried the packages and provided a drop down.
Here is the image and the query if anyone wants it.
Select Distinct
ps.[Name]
From SWDPackage ps
Steve Petrasek
Great Idea!
Hey, That is actually a really good idea. I have made that change in our environment as well. It has always been a pain going back and forth between the tasks tab and the reports tab to make sure I get the name right. Now it is automatic.
Thanks again!
Very Helpful!
I have been trying to come up with something like this for some time now.
Glad it worked for you
It seems to me like something general enough to be a canned report, but in my searches I never found one that served this function.
Have good one.
Mike
Nice job Mike!
Nice job Mike, very useful report!
Thanks,
Kyle
Symantec Trusted Advisor
For Forum threads, please click "Mark as Solution" if answered.
For all content, please give a thumbs up if you agree with or support the post.
A+
Running it here...indispensible!
This small modification will
This small modification will list all packages not "Ready". It has a drop-down parameter (or text box) for the Package Server name named "Package Server" (creative huh). If you set them both to %, then you'll see all packages not ready on all PSes.
Thanks,
Kyle
Symantec Trusted Advisor
For Forum threads, please click "Mark as Solution" if answered.
For all content, please give a thumbs up if you agree with or support the post.
Would you like to reply?
Login or Register to post your comment.