Run ONTAP Vscan on-demand tasks immediately
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
- 
Run an on-demand task immediately:
vserver vscan on-demand-task run -vserver data_SVM -task-name task_nameThe following command runs an on-access task named
Task1on thevs1SVM: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 runin the ONTAP command reference.You can use the job showcommand to view the status of the job. You can use thejob pauseandjob resumecommands to pause and restart the job, or thejob stopcommand to end the job. Learn more aboutjobin the ONTAP command reference.