Quantcast
Channel: Shavlik User Community : All Content - Ivanti Patch for Windows
Viewing all articles
Browse latest Browse all 2126

How to Identify the scan template and othe scan information for a specific scheduled scan

$
0
0

If you have scheduled a scan and are not sure what scan template was used for the scheduled scan it is not shown when viewing the scheduled job within Scheduled Task Manager. There is still a way to obtain this information along with some other details about the scheduled scan that is set up using the attached SQL scripts.

 

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.

 

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) Downlaod 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

 

Links for Management Studio Express edition downloads:

http://community.shavlik.com/docs/DOC-23132


Viewing all articles
Browse latest Browse all 2126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>