cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
MohdAfiq
Level 9
Report Inappropriate Content
Message 1 of 6

ENS for Linux Schedule Scan to be repeat

Jump to solution

My question is:

1. How do we set up schedule scan to be repeated via command line. for example run full scan every 30 minute

2. How do we cancel daily/weekly scan if already been configure via command line

 

Thank you 

1 Solution

Accepted Solutions
Aravind-K
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 6 of 6

Re: ENS for Linux Schedule Scan to be repeat

Jump to solution

Hello @MohdAfiq 

[root@xxxxxxxx~]# /opt/McAfee/ens/tp/bin/mfetpcli --scheduletask --help

--scheduletask Schedules a task corresponding to the given index.Configuring a schedule for an already scheduled task,will override the previous schedule configured for the
task.

--index This specifies the index of the task to be scheduled.

--daily This task will be scheduled
to run everyday. Only one option from --daily,--weekly, --monthly and --unspecified is allowed.

--weekly This task will be scheduled to run every week.
                --dayofweek This option is only available if --weekly is specified. The option is mandatory. Allowed values are sun, mon, tue, wed, thu, fri and sat. Specifies which day of the week, the task is scheduled to run. Multiple comma separated values are allowed.

--monthly This task will be scheduled to run every month.
                          --dayofmonth This option is only available if --monthly is specified. The option is mandatory. Allowed values are between 1 and 31. Multiple comma separated values are allowed.
Specifies which day of the month the task is scheduled to run.

--unspecified This disables the schedule for a task.

--starttime Specifies the time when the task should run. Time should be mentioned using a 24 hour clock. This is a mandatory option.

==================

Based on the above arguments a same task cannot be run in interval. However you can create multiple task and have them scheduled in intervals per your requirement.

Hops this help !

Thanks,

Aravind K

View solution in original post

5 Replies
harshgautam
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 2 of 6

Re: ENS for Linux Schedule Scan to be repeat

Jump to solution

Hi @MohdAfiq 

Thank you for reaching us at McAfee Enterprise Community portal.

Please find the response to your query.

a) How do we set up schedule scan to be repeated via command line?
Ans- Please refer the below KB for detailed response.

URL- https://docs.mcafee.com/bundle/endpoint-security-10.5.1-threat-prevention-product-guide-linux/page/G...

b)How do we cancel daily/weekly scan if already been configure via command line

Ans- Please refer the below KB for detailed response.

URL- https://docs.mcafee.com/bundle/endpoint-security-10.5.1-threat-prevention-product-guide-linux/page/G...

If you find my response useful, kindly give a Kudos.
Please don't forget to select "Accept as a solution" if this reply resolves your query!

Thanks & regards,
Harsh Gautam

MohdAfiq
Level 9
Report Inappropriate Content
Message 3 of 6

Re: ENS for Linux Schedule Scan to be repeat

Jump to solution

Hi 

I dont find my answer there. 

Aravind-K
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 4 of 6

Re: ENS for Linux Schedule Scan to be repeat

Jump to solution

Hello @MohdAfiq 

Thank you for reaching us. Am Aravind from ENS-Linux Team. Kindly find the below answers for your questions.

Note: The below commands are applicable for version 10.6.6 & later.

1. How do we set up schedule scan to be repeated via command line. for example run full scan every 30 minute

A) command to show the list of task you have already
/opt/McAfee/ens/tp/bin/mfetpcli --listtask

B) Command shows you the different arguments that can be used to schedule a existing task
/opt/McAfee/ens/tp/bin/mfetpcli --scheduletask --help

Example: 
[root@xxxxxxxxxx ~]# /opt/McAfee/ens/tp/bin/mfetpcli --scheduletask --index 1 --daily --starttime 18:00
Task was successfully scheduled

c) command show you the configuration and schedule of the task

/opt/McAfee/ens/tp/bin/mfetpcli --showtask --index 1


2. How do we cancel daily/weekly scan if already been configure via command line

--unspecified This disables the schedulefor a task.

Example: 

/opt/McAfee/ens/tp/bin/mfetpcli --scheduletask --index 1 --unspecified

command show you the configuration and schedule of the task

/opt/McAfee/ens/tp/bin/mfetpcli --showtask --index 1

Hope this helps 🙂

Kindly let me know if you have any further questions for me. Am glad to answer 🙂

cheers,

Aravind K

MohdAfiq
Level 9
Report Inappropriate Content
Message 5 of 6

Re: ENS for Linux Schedule Scan to be repeat

Jump to solution

1. How do we set up schedule scan to be repeated via command line. for example run full scan every 30 minute

Example: 
[root@xxxxxxxxxx ~]# /opt/McAfee/ens/tp/bin/mfetpcli --scheduletask --index 1 --daily --starttime 18:00
Task was successfully scheduled

 

Above command I understand. But from my understanding it only will run at 18:00 daily for only once. Is any way we can run the scan at interval time? after 18:00, auto scan for the next hour at 19:00

Aravind-K
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 6 of 6

Re: ENS for Linux Schedule Scan to be repeat

Jump to solution

Hello @MohdAfiq 

[root@xxxxxxxx~]# /opt/McAfee/ens/tp/bin/mfetpcli --scheduletask --help

--scheduletask Schedules a task corresponding to the given index.Configuring a schedule for an already scheduled task,will override the previous schedule configured for the
task.

--index This specifies the index of the task to be scheduled.

--daily This task will be scheduled
to run everyday. Only one option from --daily,--weekly, --monthly and --unspecified is allowed.

--weekly This task will be scheduled to run every week.
                --dayofweek This option is only available if --weekly is specified. The option is mandatory. Allowed values are sun, mon, tue, wed, thu, fri and sat. Specifies which day of the week, the task is scheduled to run. Multiple comma separated values are allowed.

--monthly This task will be scheduled to run every month.
                          --dayofmonth This option is only available if --monthly is specified. The option is mandatory. Allowed values are between 1 and 31. Multiple comma separated values are allowed.
Specifies which day of the month the task is scheduled to run.

--unspecified This disables the schedule for a task.

--starttime Specifies the time when the task should run. Time should be mentioned using a 24 hour clock. This is a mandatory option.

==================

Based on the above arguments a same task cannot be run in interval. However you can create multiple task and have them scheduled in intervals per your requirement.

Hops this help !

Thanks,

Aravind K

View solution in original post

You Deserve an Award
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.

Community Help Hub

    New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

  • Find Forum FAQs
  • Learn How to Earn Badges
  • Ask for Help
Go to Community Help

Join the Community

    Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

  • Get helpful solutions from McAfee experts.
  • Stay connected to product conversations that matter to you.
  • Participate in product groups led by McAfee employees.
Join the Community
Join the Community