Berichte über Sicherheitslücken exportieren

Exportieren Sie alle Berichte über Schwachstellen als Datei im CSV-Format (durch Komma getrennt) für Offlineanalysen.

    1. Wählen Sie auf der Listenseite Sicherheitslückenbericht den Bericht aus, mit dem Sie arbeiten möchten. Wenn Sie Hilfe bei der Suche nach der Listenseite oder dem Bericht benötigen, finden Sie weitere Informationen unter Sicherheitslückenberichte auflisten.
    2. Wählen Sie CSV exportieren aus.

    Beispielausgabe:

    resultId,compartmentId,cveId,severity,state,title,lastDetected,firstDetected,hostCount
    1234,ocid1.compartment.example123,CVE-2018-12345,HIGH,OPEN,CVE-2018-12345,2020-12-22T12:47:18Z,2020-12-21T16:47:25Z,3
  • Verwenden Sie den Befehl oci vulnerability-scanning host vulnerability export-CSV und die erforderlichen Parameter, um eine Liste der Sicherheitslücken für einen Host in einem Compartment im CSV-Format zu exportieren:

    export compartment_id=<substitute-value-of-compartment_id> # https://docs.cloud.oracle.com/en-us/iaas/tools/oci-cli/latest/oci_cli_docs/cmdref/vulnerability-scanning/host/vulnerability/export-csv.html#cmdoption-compartment-id
    export file=<substitute-value-of-file> # https://docs.cloud.oracle.com/en-us/iaas/tools/oci-cli/latest/oci_cli_docs/cmdref/vulnerability-scanning/host/vulnerability/export-csv.html#cmdoption-file
    export time_last_detected_greater_than_or_equal_to=<substitute-value-of-time_last_detected_greater_than_or_equal_to> # https://docs.cloud.oracle.com/en-us/iaas/tools/oci-cli/latest/oci_cli_docs/cmdref/vulnerability-scanning/host/vulnerability/export-csv.html#cmdoption-time-last-detected-greater-than-or-equal-to
    export time_last_detected_less_than_or_equal_to=<substitute-value-of-time_last_detected_less_than_or_equal_to> # https://docs.cloud.oracle.com/en-us/iaas/tools/oci-cli/latest/oci_cli_docs/cmdref/vulnerability-scanning/host/vulnerability/export-csv.html#cmdoption-time-last-detected-less-than-or-equal-to
    
    oci vulnerability-scanning host vulnerability export-csv --compartment-id $compartment_id --file $file --time-last-detected-greater-than-or-equal-to $time_last_detected_greater_than_or_equal_to --time-last-detected-less-than-or-equal-to $time_last_detected_less_than_or_equal_to
    

    Eine vollständige Liste der Kennzeichen und Variablenoptionen für CLI-Befehle finden Sie in der Befehlszeilenreferenz.

  • Führen Sie den Vorgang ExportHostVulnerabilityCsv aus, um eine Liste der Sicherheitslücken für einen Host in einem Compartment im CSV-Format zu exportieren.