Skip to main content

Run ONTAP Vscan on-demand tasks immediately

Contributors netapp-barbe netapp-aaron-holt netapp-ahibbard netapp-powr netapp-aherbin

You can run an on-demand task immediately, whether or not you have assigned a schedule.

Before you begin

You must have enabled scanning on the SVM.

Step
  1. Run an on-demand task immediately:

    vserver vscan on-demand-task run -vserver data_SVM -task-name task_name

    The following command runs an on-access task named Task1 on the vs1 SVM:

    cluster1::> vserver vscan on-demand-task run -vserver vs1 -task-name Task1
    [Job 161]: Vscan On-Demand job is queued. Use the "job show -id 161" command to view the status.

    Learn more about vserver vscan on-demand-task run in the ONTAP command reference.

    Note You can use the job show command to view the status of the job. You can use the job pause and job resume commands to pause and restart the job, or the job stop command to end the job. Learn more about job in the ONTAP command reference.