Run an on-demand task immediately
Suggest changes
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_name
The following command runs an on-access task named
Task1
on thevs1
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.
You can use the job show
command to view the status of the job. You can use thejob pause
andjob resume
commands to pause and restart the job, or thejob stop
command to end the job.