Using klbscan tool

The KAV SDK allows you to scan files on local, removable, and network drives in a UNIX™ environment using the built-in klbscan command line tool. The tool may come useful for day-to-day work or you may use it as an example of a UNIX scanning client.

The klbscan tool is a client console application for the kavehost server. The tool allows you to create scanning tasks for the kavehost, which runs as a UNIX service. The tool can be run from a UNIX shell and requires that the KAV SDK is successfully initialized and the kavehost service is started.

As a UNIX tool, the kavehost establishes several connections to the kavehost service, much like any custom made scanning client. These are: control connection, event connection, and data connection.

Please make sure to configure the kavehost service properly to allow UNIX socket or TCP connections from the klbscan client. For more information, see section "Kavehost service configuration file".

You use the control connection to send scanning tasks from the command line and data connection to pass files to be scanned by the kavehost. The event connection is used by the klbscan tool to receive scanning results scanning and error messages.

The tool can be used right from the shell console, or called from shell-scripts and custom stand-alone applications where it can be launched in an external process or console. With the klbscan tool you can do the following:

The klbscan tool is only available on Unix-like platforms.

The klbscan tool is a client for the KAV Engine that relies on plugins. Before you can use the klbscan tool from the shell’s command line using supported syntax, make sure to initialize both LD_LIBRARY_PATH and KL_PLUGINS_PATH system environment variables that specify the path to the plugins used by scanning mechanism. Please always make sure the klbscan tool resides in the ./ppl directory within the program directory with KAV SDK modules, or else set the LD_LIBRARY_PATH and KL_PLUGIN_PATH system variables to specify the path to KAV Engine’s modules and the klbscan ELF executable.

To specify the path to the KAV Engine’s ppl plugins:

  1. Set the KL_PLUGINS_PATH variable to indicate location of ppl modules, like:

    KL_PLUGINS_PATH=/path/to/ppl

  2. Set the LD_LIBRARY_PATH variable to indicate location of other modules, like:

    LD_LIBRARY_PATH=/path/to/lib

  3. Export variables to operating system environment:

    [root@host ~]# export KL_PLUGINS_PATH

    [root@host ~]# export LD_LIBRARY_PATH

In this section

Licensing

Updating Tool Definitions

Configuring KLBSCAN Parameters

Errors codes

Console output results

Page top