How to Identify the Scan Template and Other Scan Information for a Specific Scheduled Scan

Version 5

    Purpose

     

    This document is meant to help administrators identify information about scheduled patch scans in Shavlik. In Shavlik Protect, jobs that have been scheduled or are recurring can be found in the Scheduled Task Manager (To open, go to View > Scheduled Tasks). The scheduled jobs in this screen do not contain a lot of readily accessible information. Some administrators may wish to identify what scan template the scheduled job uses, to know whether the job is set to deploy, etc. thus knowing how to read this information can be quite helpful.

     

    Description


    The information in the scheduled jobs references information contained within the Protect database. Following these instructions will help administrators identify the scan template used by the scheduled jobs.

     

    Instructions:


    1) In Protect go to Manage > Scheduled Tasks to open the Scheduled Task Manager.


    2) Right click on your protect console system, then choose "Refresh Selected".

    All scheduled scans are set up on the Protect console system. Scheduled deployments can be found under the target machines.


    3) In the jobs tab on the right you should see any jobs that are still waiting to run in the list. Locate the scheduled scan that you wish to find out more information about on the right pane, and click on it to bring up more information about the scheduled job.

    *Note: Scheduled jobs that were previously run will be listed under the "Log" tab.


    4) Locate the patchscan ID parameter.

    This is listed next to "Parameters" in the scheduled job information. In the example here, the patchscan ID is 3019. You will need this information for the next step. The image below illustrates where to look for this:

    Capture.JPG

     

    5) Download the attached SQL queries.


    6) You will need to first modify obtainSchdScanInfo_1.sql. You can do this within any text editor or by opening the sql script in SQL management studio. Change the following line within the sql script so that it contains your patch scan ID from step 4.

     

    Example:

    WHERE ScanID = 3019

     

    This will ensure that the query selects the information for your scheduled scan.

     

    **Note**: You may also need to change the line "FROM [Protect].[dbo].[Scans]" to: 'FROM [yourDatabaseName].[dbo].[Scans]' where yourDatabaseName is the name you have given the Protect database.


    7) Run the query obtainSchdScanInfo_1.sql against your Protect database using SQL Server Management Studio.

     

    After you run obtainSchdScanInfo_1.sql against your database you should receive a result containing information about the scheduled scan. The main piece of information you will need to find out what scan template is being used is the value of the column 'ScanTemplateID'. The value of this column will be needed to continue to the next step.

     

    **Note**: If you are trying to look for this information on a scheduled asset scan you will need to use the value of the 'AssetScanTemplateID' column.

     

    8. You will need to modify obtainSchdScanInfo_2.sql. You can do this within any text editor or by opening the sql script in SQL management studio. Change the following line within the sql script so that it contains your ScanTemplateID from step 7.

     

    WHERE scantID = x

     

    x = ScanTemplateID obtained from step 7

     

    **Note**: You may also need to change the line "FROM [Protect].[dbo].[Scans]" to: 'FROM [yourDatabaseName].[dbo].[Scans]' where yourDatabaseName is the name you have given the Protect database.

     

    9. Run the query obtainSchdScanInfo_2.sql against your Protect database using SQL Server Management Studio.


    After you run obtainSchdScanInfo_2.sql against your database it will return information about the scan template that you are current set to use for the scheduled job including the name of the scan template being used

     

    Additional Information


    Download Links for Microsoft SQL Management Studio Express Editions

     

     

    Affected Product(s)


    Shavlik Protect 9.x