BladeLogic Threat Director Scan Importer Script

Version 2
    Share:|

    Hey, we now have a Threat Director Community!

     

    Pending the creation of a Threat Director Community:

     

    Here's a script to address the bulk of the setup of the Scan Importer for Threat Director.

     

    You'll need to extract:

     

    /opt/bmc/BladeLogicPortal/portal/utilities/scanFileImporter.zip

     

    and configure the .properties file in that directory before any of this will work.  Your paths may differ, etc. etc.

     

    #!/bin/sh

    #

    # This is a script to take care of all the tedium of setting up the BTD scan importer.

    #

    # All the configuration goes in dca-scan-import.properties

    #

    # Sample:

    #  # cat dca-scan-import.properties

    #  portal=your-portal-server-hostname

    #  port=8443

    #  protocol=https

    #  site=your-site-name-may-be-Primary

    #  folder=/input/folder/path/scans

    #  username=BLAdmin

    #  password=your-encryped-string-see-below

    #  osFilter=Linux,Windows,Others

    #  sevFilter=Severity 1,Severity 2,Severity 3,Severity 4,Severity 5

    #

    #

    #

    # To encrypt the password, you'll need to do something like:

    #

    #  # java -jar EncryptionUtility/dca-encrypt-util.jar enc password

    #  NWfAH7Tp4UPeCJO+Qo36sg==

    #  #

    #

    JAVA_HOME=/opt/bmc/BladeLogicPortal/BladeLogicPortalInstallJVM18

    PATH="$JAVA_HOME/bin:$PATH"

     

    /opt/bmc/BladeLogicPortal/portal/utilities/scanFileImporter/bmc_scan_importer.sh file:=/opt/bmc/BladeLogicPortal/portal/utilities/scanFileImporter/dca-scan-import.properties

     

    This document was generated from the following discussion: BladeLogic Threat Director Scan Importer Script