Some data source integrations rely on an import utility to periodically query a source data system. You can use the SQL Server Agent to create jobs that will execute these import utilities on a schedule of your choosing.
Environment
Version : 6.x
Resolution
This procedure refers to the Symantec Cloud SWG Import Utility (formerly the Symantec WSS Import Utility) but is representative of the process you would follow for any other integration that relies on a command line executable to query its data source.
You will first create the credential used by the proxy that will run the executable. Next, you will create the proxy under which the job will run. Finally, you will create and schedule the job itself.
Credential
Open SQL Server Management Studio (SSMS)
In Object Explorer, navigate to Security > Credentials
Right-click the Credentials folder and select New Credential... The New Credential window opens
In the Credential name field, type: Symantec CloudSWG Importer Credential
In the Identity field, type the name of the ICA service account or another account with sufficient privileges on the file system to execute the Cloud SWG Import Utility
Type and confirm the password for the account you typed in the Identity field
Click the OK button to close the New Credential window
Proxy
In Object Explorer, navigate to SQL Server Agent > Proxies > Operating System (CmdExec)
Right-click the Operating System (CmdExec) folder and select New Proxy... The New Proxy Account window opens
In the Proxy name field, type: RiskFabric SymantecCloudSWG Proxy
In the Credential name field, type: Symantec CloudSWG Importer Credential
Click the OK button to close the New Proxy Account window
Job
In Object Explorer, navigate to SQL Server Agent > Jobs
Right-click the Jobs folder and select New Job... The New Job window opens
On the General page in the Name field, type: RiskFabric SymantecCloudSWG Import
Select the Steps page
Click the New... button The New Job Step window opens
On the General page in the Step name field, type: Data Import
From the Type dropdown menu, select Operating system (CmdExec)
From the Run as dropdown, select the RiskFabric SymantecCloudSWG Proxy
In the Command window, provide the full path and executable name for the Symantec Cloud SWG Import Utility enclosed in double-quotation marks Example: "C:\Program Files\Bay Dynamics\Database Utilities\SymantecCloudSWG\SymantecCloudSWGImporter.exe"
Click the OK button to close the New Job Step window
In the New Job window, select the Schedules page
Click the New... button The New Job Schedule window opens
Configure the job schedule to run on days and times that do not overlap with the nightly RiskFabric Processing job and the RiskFabric Intraday Processing job
Click the OK button to close the New Job Schedule window