vscanadm - vscan service configuration utility
vscanadm set -p property=value [-p property=value]...
vscanadm get [-p property]...
vscanadm import -p property filename
vscanadm export -p property filename
vscanadm validate -p property filename
vscanadm add-engine [-p property=value]... engine_id
vscanadm remove-engine engine_id
vscanadm set-engine -pproperty=value [-p property=value]... engine_id
vscanadm get-engine [-p property=value]... [engine_id]
vscanadm show
vscanadm stats [-z]
The vscanadm command sets and displays properties of the vscan service, vscand(1M), and provides scan statistics.
File system exemption from virus scanning may be configured per file system using the appropriate file system administrative command, for example zfs(1M).
Scan engines are third-party applications on external hosts that perform the actual virus scanning operation on files. Multiple scan engines can be configured for use by the vscan service. A minimum of two scan engines is recommended. File scan requests are distributed among the configured scan engines to achieve load balancing. A scan engine is identified by its engine_id. The engine_id is a user defined string of up to 64 bytes.
The vscan service properties are divided into two categories: scan engine properties, which are specific to a scan engine definition, and general properties, which apply to the service and are not scan engine-specific.
vscanadm recognizes the following subcommands:
vscanadm set -p property=value [-p property=value]...
-p property=value
vscanadm get [-p property]...
-p property
The following properties are available for the vscanadm set and vscanadm get subcommands:
max-size
The value of max-size is a string with a numeric (decimal) component and an optional letter component that specifies a unit size, in the format "N[.N][KMGTP][B]".
Following the numeric component, the optional unit can be specified as either one or two characters. For example, either "K" or "KB" can be used to specify kilobytes. Unit specifiers are not case-sensitive, and must follow the numeric value immediately with no intervening whitespace.
With either no unit specifier, or a unit specifier of only "B", the numeric value is assumed to be in bytes. The default value is 1GB.
Note that while the vscan service defines a maximum file size for scanning, scan engines also typically define their own maximum file size setting. It is recommended that max-size be set to a value less than or equal to the maximum file size for the scan engine(s).
max-size-action
allow
deny
vscanadm import -p property filename
vscanadm export -p property filename
vscanadm validate -p property filename
The following properties are available for the vscanadm import, vscanadm export, and vscanadm validate subcommands:
types
The rule indicator is a single character and can be one of:
+ include file type in virus scanning - exclude file type from virus scanning
When a file is being evaluated as a candidate for virus scanning, its file type will be compared with the rules defined in types. The first rule matched will be applied. If no match is found, the file will be virus scanned. The total length of the types string can not exceed 4096 bytes. The default content of the types list is "+*".
vscanadm add-engine [-p property=value]... engine_id
-p property=value
vscanadm remove-engine engine_id
vscanadm set-engine -pproperty=value [-p property=value]... engine_id
-p property=value
vscanadm get-engine [-p property=value]... [engine_id]
-p property=value
The following properties are available for the vscanadm add-engine, vscanadm remove-engine, vscanadm set-engine, and vscanadm get-engine subcommands:
enable
host
port
max-connection
vscanadm show
vscanadm stats [-z]
-z
Example 1 Setting the Maximum Size Limit
To set the maximum size limit for files to be virus scanned to 128 megabytes, enter
# vscanadm set -p max-size=128M
Example 2 Allowing Access to Files
To allow access to files exceeding the maximum file size, enter
# vscanadm set -p max-size-action=allow
Example 3 Setting File Types
To set the types so that only files of type "odt", "exe" and "jpg" are virus scanned, enter
# vscanadm set -p types=+odt,+exe,+jpg,-*
To set the types so that all file types except "doc" are virus scanned, enter
# vscanadm set -p types=-doc,+*
Example 4 Displaying the File Types List
To display the file types list, enter
# vscanadm get -p types
Example 5 Adding the Scan Engine
To add the scan engine "my_eng" using the default values, enter
# vscanadm add-engine my_eng
Example 6 Disabling the Scan Engine
To disable the scan engine "my_eng", enter
# vscanadm set-engine -p enable=off my_eng
Example 7 Displaying Scan Engine Properties
To display the properties of the scan engine "my_eng", enter
# vscanadm get-engine my_eng
Example 8 Removing Scan Engine
To remove the scan engine "my_eng", enter
# vscanadm remove-engine my_eng
Example 9 Displaying Vscan Service General and Scan Engine Properties
To Display all vscan service general properties and scan engine properties, enter
# vscanadm show
The following exit values are returned:
0
non-zero
See attributes(5) for descriptions of the following attributes:
|
vscand(1M), zfs(1M), attributes(5), smf(5)
All users are permitted to use vscanadm to view vscan properties and statistics. To set property values or reset statistics, the following authorizations are required:
solaris.smf.value.vscan
solaris.manage.vscan
To add or remove properties (add-engine, remove-engine) the following authorizations are required:
solaris.smf.modify.application
solaris.manage.vscan
All of these authorizations are included in the "VSCAN Management" profile.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |