2 .\" Copyright (c) 2007 Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH VSCANADM 1M "Jul 7, 2009"
8 vscanadm \- vscan service configuration utility
12 \fBvscanadm\fR \fBset\fR \fB-p\fR \fIproperty\fR=\fIvalue\fR [\fB-p\fR \fIproperty\fR=\fIvalue\fR]...
17 \fBvscanadm\fR \fBget\fR [\fB-p\fR \fIproperty\fR]...
22 \fBvscanadm\fR \fBimport\fR \fB-p\fR \fIproperty\fR \fIfilename\fR
27 \fBvscanadm\fR \fBexport\fR \fB-p\fR \fIproperty\fR \fIfilename\fR
32 \fBvscanadm\fR \fBvalidate\fR \fB-p\fR \fIproperty\fR \fIfilename\fR
37 \fBvscanadm\fR \fBadd-engine\fR [\fB-p\fR \fIproperty\fR=\fIvalue\fR]... \fIengine_id\fR
42 \fBvscanadm\fR \fBremove-engine\fR \fIengine_id\fR
47 \fBvscanadm\fR \fBset-engine\fR \fB-p\fR\fIproperty\fR=\fIvalue\fR [\fB-p\fR \fIproperty\fR=\fIvalue\fR]... \fIengine_id\fR
52 \fBvscanadm\fR \fBget-engine\fR [\fB-p\fR \fIproperty\fR=\fIvalue\fR]... [\fIengine_id\fR]
57 \fBvscanadm\fR \fBshow\fR
62 \fBvscanadm\fR \fBstats\fR [\fB-z\fR]
68 The \fBvscanadm\fR command sets and displays properties of the \fBvscan\fR
69 service, \fBvscand\fR(1M), and provides scan statistics.
72 File system exemption from virus scanning may be configured per file system
73 using the appropriate file system administrative command, for example
77 Scan engines are third-party applications on external hosts that perform the
78 actual virus scanning operation on files. Multiple scan engines can be
79 configured for use by the \fBvscan\fR service. A minimum of two scan engines is
80 recommended. File scan requests are distributed among the configured scan
81 engines to achieve load balancing. A scan engine is identified by its
82 \fIengine_id\fR. The \fIengine_id\fR is a user defined string of up to 64
86 The \fBvscan\fR service properties are divided into two categories: scan engine
87 properties, which are specific to a scan engine definition, and general
88 properties, which apply to the service and are not scan engine-specific.
92 \fBvscanadm\fR recognizes the following subcommands:
96 \fB\fBvscanadm set\fR \fB-p\fR \fIproperty\fR=\fIvalue\fR [\fB-p\fR
97 \fIproperty\fR=\fIvalue\fR]...\fR
101 Sets the values of \fBvscan\fR service general properties.
105 \fB\fB-p\fR \fIproperty\fR=\fIvalue\fR\fR
108 Specifies a property value
116 \fB\fBvscanadm get\fR [\fB-p\fR \fIproperty\fR]...\fR
120 Displays the values of \fBvscan\fR service general properties. If no properties
121 are specified, all \fBvscan\fR service general properties are displayed.
125 \fB\fB-p\fR \fIproperty\fR\fR
128 Specifies a property value
135 The following properties are available for the \fBvscanadm set\fR and
136 \fBvscanadm get\fR subcommands:
143 The maximum size of files that should be virus scanned. Files exceeding
144 \fImax-size\fR are not scanned. The \fImax-size-action\fR property determines
145 whether access should be allowed or denied to files that exceed \fImax-size\fR.
147 The value of \fImax-size\fR is a string with a numeric (decimal) component and
148 an optional letter component that specifies a unit size, in the format
151 Following the numeric component, the optional unit can be specified as either
152 one or two characters. For example, either "K" or "KB" can be used to specify
153 kilobytes. Unit specifiers are not case-sensitive, and must follow the numeric
154 value immediately with no intervening whitespace.
156 With either no unit specifier, or a unit specifier of only "B", the numeric
157 value is assumed to be in bytes. The default value is 1GB.
159 Note that while the \fBvscan\fR service defines a maximum file size for
160 scanning, scan engines also typically define their own maximum file size
161 setting. It is recommended that \fImax-size\fR be set to a value less than or
162 equal to the maximum file size for the scan engine(s).
168 \fB\fBmax-size-action\fR\fR
171 Specifies whether access will be allowed or denied to files larger than
172 \fImax-size\fR. Files larger than \fImax-size\fR are not virus scanned. Valid
180 allow access to files larger than \fImax-size\fR (no virus scan). This is the
190 deny access to files larger than \fImax-size\fR (no virus scan)
198 \fB\fBvscanadm import\fR \fB-p\fR \fIproperty\fR \fIfilename\fR\fR
202 Imports the property value from the specified file. The file must contain a
203 single line specifying the value of a single property.
209 \fB\fBvscanadm export\fR \fB-p\fR \fIproperty\fR \fIfilename\fR\fR
213 Exports the property value to the specified file. The file must contain a
214 single line specifying the value of a single property.
220 \fB\fBvscanadm validate\fR \fB-p\fR \fIproperty\fR \fIfilename\fR\fR
224 Validates the property value in the specified file. The file must contain a
225 single line specifying the value of a single property.
230 The following properties are available for the \fBvscanadm import\fR,
231 \fBvscanadm export\fR, and \fBvscanadm validate\fR subcommands:
238 A comma-separated list of file type extension matching rules. This list defines
239 which types of files are scanned and which should be excluded during virus
240 scanning. Each rule comprises the rule indicator [+|-], followed by a file type
241 \fIexpresssion\fR against which a file's type extension is compared. The file
242 type \fIexpresssion\fR is case insensitive and may include the "*" and "?"
243 wildcards. There should be no whitespace between the rule indicator and the
244 file type \fIexpresssion\fR. If a comma is included within the file type
245 expression, it must be escaped using a "\e" (backslash). A file type extension
246 does not include its preceding dot.
248 The rule indicator is a single character and can be one of:
252 + include file type in virus scanning
253 - exclude file type from virus scanning
258 When a file is being evaluated as a candidate for virus scanning, its file type
259 will be compared with the rules defined in types. The first rule matched will
260 be applied. If no match is found, the file will be virus scanned. The total
261 length of the types string can not exceed 4096 bytes. The default content of
262 the types list is "+*".
268 \fB\fBvscanadm add-engine\fR [\fB-p\fR \fIproperty\fR=\fIvalue\fR]...
273 Adds a new scan engine identified by \fIengine_id\fR. The default values are
274 used for any scan engine properties that are not specified. The hostname
275 defaults to the \fIengine_id\fR.
279 \fB\fB-p\fR \fIproperty\fR=\fIvalue\fR\fR
282 Specifies a property value
290 \fB\fBvscanadm remove-engine\fR \fIengine_id\fR\fR
294 Remove scan engine identified by \fIengine_id\fR, removing all of its
295 configuration property values.
301 \fB\fBvscanadm set-engine\fR \fB-p\fR\fIproperty\fR=\fIvalue\fR [\fB-p\fR
302 \fIproperty\fR=\fIvalue\fR]... \fIengine_id\fR\fR
306 Creates or updates the configuration property values for the scan engine
307 identified by \fIengine_id\fR.
311 \fB\fB-p\fR \fIproperty\fR=\fIvalue\fR\fR
314 Specifies a property value
322 \fB\fBvscanadm get-engine\fR [\fB-p\fR \fIproperty\fR=\fIvalue\fR]...
327 Displays the values of the specified scan engine properties for the scan engine
328 identified by \fIengine_id\fR. If no \fIengine_id\fR is specified, this
329 subcommand displays the specified scan engine property values for all
330 configured scan engines. If no properties are specified, this subcommand
331 displays all \fBvscan\fR service scan engine properties.
335 \fB\fB-p\fR \fIproperty\fR=\fIvalue\fR\fR
338 Specifies a property value
345 The following properties are available for the \fBvscanadm add-engine\fR,
346 \fBvscanadm remove-engine\fR, \fBvscanadm set-engine\fR, and \fBvscanadm
347 get-engine\fR subcommands:
354 Specifies whether the scan engine is enabled or disabled. Valid values are "on"
355 (enabled) and "off" (disabled). The default is "on" (enabled). A scan engine
356 cannot be enabled if its host property is invalid.
365 Hostname or \fBIPv4\fR format \fBIP\fR address of the scan engine.
374 \fBICAP\fR port number of the scan engine. The numeric value ranges from 0 to
375 65535. The default \fBICAP\fR port is 1344.
381 \fB\fBmax-connection\fR\fR
384 The maximum number of concurrent connections that may be established with a
385 scan engine. The numeric value ranges from 1 to 512. This property defaults to
392 \fB\fBvscanadm show\fR\fR
395 Displays the values of all \fBvscan\fR service general properties and scan
402 \fB\fBvscanadm stats\fR [\fB-z\fR]\fR
405 Displays or resets the following \fBvscan\fR service statistics:
410 number of files scanned
416 number of infected files
422 number of failed scan requests
428 scan errors (including a per scan engine error count)
436 Resets \fBvscan\fR service statistics counters to zero
443 \fBExample 1 \fRSetting the Maximum Size Limit
446 To set the maximum size limit for files to be virus scanned to 128 megabytes,
452 # vscanadm set -p max-size=128M
458 \fBExample 2 \fRAllowing Access to Files
461 To allow access to files exceeding the maximum file size, enter
466 # vscanadm set -p max-size-action=allow
472 \fBExample 3 \fRSetting File Types
475 To set the types so that only files of type "odt", "exe" and "jpg" are virus
481 # vscanadm set -p types=+odt,+exe,+jpg,-*
488 To set the types so that all file types except "doc" are virus scanned, enter
493 # vscanadm set -p types=-doc,+*
499 \fBExample 4 \fRDisplaying the File Types List
502 To display the file types list, enter
507 # vscanadm get -p types
513 \fBExample 5 \fRAdding the Scan Engine
516 To add the scan engine "\fBmy_eng\fR" using the default values, enter
521 # vscanadm add-engine my_eng
527 \fBExample 6 \fRDisabling the Scan Engine
530 To disable the scan engine "\fBmy_eng\fR", enter
535 # vscanadm set-engine -p enable=off my_eng
541 \fBExample 7 \fRDisplaying Scan Engine Properties
544 To display the properties of the scan engine "\fBmy_eng\fR", enter
549 # vscanadm get-engine my_eng
555 \fBExample 8 \fRRemoving Scan Engine
558 To remove the scan engine "\fBmy_eng\fR", enter
563 # vscanadm remove-engine my_eng
569 \fBExample 9 \fRDisplaying Vscan Service General and Scan Engine Properties
572 To Display all vscan service general properties and scan engine properties,
586 The following exit values are returned:
593 Successful completion.
608 See \fBattributes\fR(5) for descriptions of the following attributes:
616 ATTRIBUTE TYPE ATTRIBUTE VALUE
618 Interface Stability Uncommitted
620 Utility output format Not-An-Interface
626 \fBvscand\fR(1M), \fBzfs\fR(1M), \fBattributes\fR(5), \fBsmf\fR(5)
630 All users are permitted to use \fBvscanadm\fR to view \fBvscan\fR properties
631 and statistics. To set property values or reset statistics, the following
632 authorizations are required:
636 \fB\fBsolaris.smf.value.vscan\fR\fR
640 change the property values or reset statistics
646 \fB\fBsolaris.manage.vscan\fR\fR
650 refresh the service to apply property value changes
655 To add or remove properties (\fBadd-engine\fR, \fBremove-engine\fR) the
656 following authorizations are required:
660 \fB\fBsolaris.smf.modify.application\fR\fR
664 add or remove property group
670 \fB\fBsolaris.manage.vscan\fR\fR
674 refresh the service to apply property value changes
679 All of these authorizations are included in the "\fBVSCAN\fR Management"