How Can We Help?
< All Topics
Print

Scanner

Many of the commonly used settings of the cPGuard scanner engine can be updated using the commands listed below

Enable/disable Scanner engine

You can enable, disable or restart the scanner background service using the following command and options 

 

cpgcli scanner --enable
enable scanner service
cpgcli scanner --disable
scan files that were modified in last 24 hours
cpgcli scanner --restart
scan files modified in last 7 days

 

Start a scan

You can also start a scan against various targets using the cpgcli command line utility. Please find the different options below.

cpgcli scan --all
scan all directories in watchlist
cpgcli scan --daily
scan files that were modified in last 24 hours
cpgcli scan --wekly
scan files modified in last 7 days
cpgcli scan --path directory
scan the specified path

Daily and weekly scan

You can inturn schedule the weekly and daily scans mentioned above to run automaticaly

cpgcli dailyscan --enable
enable automatic daily scan
cpgcli dailyscan --disable
disable automatic daily scan
cpgcli weeklyscan --enable
enable automatic weekly scan
cpgcli weeklyscan --disable
disable automatic weeklu scan

Automatic file cleanup

Autoclean feature of cPGuard removed the infected code injected into your valid php and js files there by .

cpgcli cleanup --enable
enable automatic cleanup of supported files
cpgcli cleanup --disable
disable automatic cleanup of supported files

File actions

Using below options you can change the actions perfomed by the scanner when an infected file is detected

Allowed option are email, disable or quarantine

cpgcli file-action --virus option
set virus file action
cpgcli file-action --suspicious option
set suspicios file action
cpgcli file-action --binary option
set binary file action
Was this article helpful?
5 out of 5 stars

2 ratings

5 Stars 100%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Table of Contents