ONTAP 9.13

to English version

オンデマンド タスクの作成

オンデマンド タスクはオンデマンド スキャンの範囲を定義します。スキャンするファイルの最大サイズ、スキャン対象に含めるファイルの拡張子とパス、およびスキャン対象から除外するファイルの拡張子とパスを指定できます。デフォルトでは、サブディレクトリー内のファイルもスキャンされます。

手順
  1. オンデマンド タスクを作成します。

    vserver vscan on-demand-task create -vserver data_SVM -task-name task_name -scan-paths paths_of_files_to_scan -report-directory report_directory_path -report-expiry-time expiration_time_for_report -schedule cron_schedule -max-file-size max_size_of_files_to_scan -paths-to-exclude paths_of_files_to_exclude -file-ext-to-exclude extensions_of_files_to_exclude -file-ext-to-include extensions_of_files_to_include -scan-files-with-no-ext true|false -directory-recursion true|false

    • -file-ext-to-exclude の設定は、 -file-ext-to-include の設定よりも優先されます。

    • 拡張子がないファイルをスキャンするには、 -scan-files-with-no-ext をtrueに設定します。 すべてのオプションの一覧については、コマンドのマニュアル ページを参照してください。

    次のコマンドは、vs1SVMに Task1 という名前のオンデマンド タスクを作成します。

    cluster1::> vserver vscan on-demand-task create -vserver vs1 -task-name Task1 -scan-paths "/vol1/","/vol2/cifs/" -report-directory "/report" -schedule daily -max-file-size 5GB -paths-to-exclude "/vol1/cold-files/" -file-ext-to-include "vmdk?","mp*" -file-ext-to-exclude "mp3","mp4" -scan-files-with-no-ext false
    [Job 126]: Vscan On-Demand job is queued. Use the "job show -id 126" command to view the status.

    ジョブのステータスは、 job show コマンドを使用して確認できます。 job pause コマンドと job resume コマンドを使用してジョブを一時停止および再開したり、 job stop コマンドを使用してジョブを終了したりできます。

  2. オンデマンド タスクが作成されたことを確認します。vserver vscan on-demand-task show -instance data_SVM -task-name task_name

    すべてのオプションの一覧については、コマンドのマニュアル ページを参照してください。

    次のコマンドは、 Task1 タスクの詳細を表示します。

    cluster1::> vserver vscan on-demand-task show -instance vs1 -task-name Task1
    
                               Vserver: vs1
                             Task Name: Task1
                    List of Scan Paths: /vol1/, /vol2/cifs/
                 Report Directory Path: /report
                          Job Schedule: daily
    Max File Size Allowed for Scanning: 5GB
                File Paths Not to Scan: /vol1/cold-files/
           File Extensions Not to Scan: mp3, mp4
               File Extensions to Scan: vmdk?, mp*
          Scan Files with No Extension: false
               Request Service Timeout: 5m
                        Cross Junction: true
                   Directory Recursion: true
                         Scan Priority: low
                      Report Log Level: info
            Expiration Time for Report: -
終了後の操作

タスクの実行をスケジュールする前に、SVMでスキャンを有効にする必要があります。

Top of Page