cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

scanning files from CLI in linux

Is there a way to make an on demand scan for specific file from CLI in linux using
Endpoint Security for Linux Threat Prevention or VirusScan Enterprise for Linux.

Devs form my company want to use the currently licensed products for scanningfiles uploaded through a portal their are building. 
For example user uploads a file, ODS scan in performed for this file from API and depending on the verdict file is moved to file repository or if file is infected  file is deleted.

I'm looking for an option line in VirusScan Command Line something line 
To scan files in the /usr/docs directory according to the settings you stored in the task file, /usr/
local/config1, type the command:
uvscan --load /usr/local/config1 /usr/docs

Rather then the workflow form ENS for linux
Create an on-demand scan task, Run an on-demand scan task, Check the status of an on-demand scan status, Delete an on-demand scan task

Regards
Pawel

2 Replies
Highlighted
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 2 of 3

Re: scanning files from CLI in linux

Hello @PawelEm ,

This might help :

How to run a scan with the Windows Command Line Scanner
Technical Articles ID: KB75478

FAQs for VirusScan Command Line Scanner 6.1.x
Technical Articles ID: KB82340

Was my reply helpful?
If you find this post useful, Please give it a Kudos! l Also, Please don't forget to select "Accept as a solution" if this reply resolves your query!

Thanks and regards,
Yash T
Highlighted
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 3 of 3

Re: scanning files from CLI in linux

@PawelEm  Unfortunately, we do not have an option to perform a scan on a single file on both the ENSLTP and the VSEL. 

You may look into this article which should be of help in creating a scan for a single file or targetting a single path:

https://kc.mcafee.com/corporate/index?page=content&id=KB89768&locale=en_US

Also, you can try the below suggestion.

1. Upload the file to a single folder only

2. Create a ODS in ENSLTP targetting to that folder

3. Set a cron job to trigger the ODS based on a time frame that would suit you

Was my reply helpful?
If you find this post useful, please give it a Kudos! l Also, Please don't forget to select "Accept as a solution" if this reply resolves your query!

Thanks and regards,

Ajay

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