Dr.Web Ctl

Top  Previous  Next

You can manage operation of Dr.Web for UNIX from the command line with the help of a special command-line tool—Dr.Web Ctl (drweb-ctl).

You can do the following actions from the command line:

Start scanning file system objects including boot records

Start updating anti-virus components (virus databases, anti-virus engine, etc. depending on the distribution).

View and change parameters of Dr.Web for UNIX configuration

View the status of the product's components and statistics on detected threats

View quarantine and manage quarantined objects (via the Dr.Web File Checker component).

Connect to the central protection server or disconnect from it (if it is supported by the used product).

Commands entered by the user to control the product can have an effect only if the Dr.Web ConfigD configuration daemon is running (by default, it is automatically launched at the operating system’s startup).

Note that some control commands require superuser privileges.

To elevate privileges, use the su command (change the current user) or the sudo command (execute the specified command with other user privileges).

The Dr.Web Ctl tool supports auto-completion of commands for managing Anti-virus operation if this option is enabled in the used command shell. If the command shell does not allow auto-completion, you can configure this option. For that purpose, refer to the instruction manual for the used OS distribution.

When shutting down, the tool returns the exit code according to convention for the POSIX compliant systems: 0 (null)—if an operation is successfully completed, non-null—if otherwise.

Note that the tool returns a non-null exit code only in case of internal error (for example, the tool could not connect to a component, a requested operation could not be executed, etc.). If the tool detects (and possibly) neutralizes a threat, it returns the null exit code, because the requested operation (such as scan, etc.) is successfully competed. If it is necessary to define the list of detected threats and applied actions, analyze the messages displayed on the console.

Codes of all errors are listed in the Appendix F of the Administrator Manual.

 

Full version of Administrator Manual for Dr.Web for UNIX is available

At Doctor Web official website http://download.drweb.com/doc/ (Internet connection is required).

You can view a PDF file in the <opt_dir>/share/doc directory (the suffix in the name indicates the language).

 

 

Details:

Command-Line Call Format

Usage Examples

Configuration Parameters