Symantec Management Platform (Notification Server)

 View Only

Package Server Ready Check 

May 20, 2009 06:35 PM

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" :

imagebrowser image

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:

imagebrowser image

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Comments

Dec 01, 2009 05:08 PM

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.

SELECT DISTINCT 
   vc.Name [Package Server],
   p.Name [Package Name],
   s.Status [Status], 
   p.PackageId [PackageID]
FROM SWDPackage p 
JOIN SWDPackageServer s ON p.PackageId = s.PackageId 
JOIN vComputer vc on vc.Guid = s.PkgSvrId 
WHERE vc.Name LIKE '%Package Server%' 
AND p.Name LIKE '%' + '%PACKAGE%' + '%'
AND vc.Guid = s.PkgSvrId 
AND s.Status <> 'Ready' 
ORDER BY p.Name, p.PackageId

Dec 01, 2009 04:22 PM

Running it here...indispensible!

Nov 30, 2009 02:28 PM

Nice job Mike, very useful report!

Nov 30, 2009 11:51 AM

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

Nov 30, 2009 11:49 AM

I have been trying to come up with something like this for some time now.

May 21, 2009 02:03 PM

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!

May 21, 2009 12:22 PM

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



imagebrowser image

Related Entries and Links

No Related Resource entered.