Configure the scheduled job for updating CWE records

Common weakness records can be updated from the Common Weakness Enumeration database on a regularly scheduled basis. You can also update the script or write your own scripts, as needed.

Before you begin

Roles required:
  • If you have the admin role, you can add repositories to the scheduled job.
  • If you have sn_vul.vulnerability_read, you can execute the scheduled job.
  • If you have sn_vul.vulnerability_write, you can edit the details of the scheduled job.

Procedure

  1. Navigate to Vulnerability > Administration > Integrations.
  2. Select the CWE Comprehensive 2000 Integration scheduled job.
  3. Modify the fields as needed.
    Table 1. Vulnerability Integration form
    Field Description
    Name The name of the scheduled job.
    Active Whether the scheduled job is currently active. You can set up the parameters you want to use and deactivate the job if you do not want it to run for a specific time period.
    Run The frequency you want the job to run. Subsequent fields are displayed or hidden based on your setting in this field.
    Day The day you want the scheduled job to run.

    If you selected Weekly in the Run field, this field displays the days of the week. If you selected Monthly in the Run field, this field displays the days of the month.

    Time The time you want the scheduled job to start.
    Integration script The script for pulling data from the data sources specified in the Data Sources related list.
    Application [Read only] The name of the application for which you are running the scheduled job.
    Repeat Interval The number of days and hours before the scheduled job runs again. This field appears when Periodically is selected in the Run list.
    Starting The date and time to start the periodic updates. This field appears when Periodically is selected in the Run list.
    Conditional The check box to add conditional parameters.
    Condition The conditions to run the schedule job. This field appears when Conditional check box is selected.
    Report processor strategy The strategy for pulling data and processing the scheduled job.
    • To pull data from the data sources in the Data Sources related list using the script in the Integration script field, select Data Source Attachment.
    • To select a custom processor in the Report Processor script field, select the Custom Report Processor.
    Report processor The script to be executed when the scheduled job runs. This field appears when Custom Report Processor is selected in the Report processor strategy list.
    Processor factory script
  4. To save your changes, click Update.
  5. To run the scheduled job immediately, click Execute Now.
    As needed, you can view the queue to see the progress of the data import.