ONTAP 9.13

to English version

オンデマンド タスクのスケジュールの設定

オンデマンド タスクの作成時にスケジュールを割り当てていない場合や別のスケジュールを割り当てる場合は、 vserver vscan on-demand-task schedule コマンドを使用してタスクにスケジュールを割り当てることができます。

タスク概要

vserver vscan on-demand-task schedule コマンドで割り当てたスケジュールは、 vserver vscan on-demand-task create コマンドで割り当てた既存のスケジュールよりも優先されます。

手順
  1. オンデマンド タスクのスケジュールを設定します。

    vserver vscan on-demand-task schedule -vserver data_SVM -task-name task_name -schedule cron_schedule

    次のコマンドは、vs2SVMで Task2 という名前のオンデマンド タスクをスケジュールします。

    cluster1::> vserver vscan on-demand-task schedule -vserver vs2 -task-name Task2 -schedule daily
    [Job 142]: Vscan On-Demand job is queued. Use the "job show -id 142" 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

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

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

    cluster1::> vserver vscan on-demand-task show -instance vs2 -task-name Task2
    
                               Vserver: vs2
                             Task Name: Task2
                    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
終了後の操作

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

Top of Page