Contents
Configuring Inventory on the command line
You can use the command line to inventory applications on the protected device as follows:
- With the help of the Inventory_Scan predefined task. You can manually start or stop this task, and configure the task run schedule. You can configure scan settings by editing the settings of this task.
- With the help of user inventory tasks (InventoryScan-type tasks). You can manually start, stop, pause, or resume user tasks and configure the task schedule.
You can view the list of applications detected on the device as a result of the Inventory task by using Application Control management commands.
Inventory task settings
The table describes all available values and the default values of all the settings that you can specify for the Inventory task.
Inventory task settings
Setting |
Description |
Values |
---|---|---|
|
Enables script scanning. |
|
|
Enables binary files scanning (elf, java, and pyc). |
|
|
Enables the scanning of files with an executable bit. |
|
|
The action that Kaspersky Embedded Systems Security must perform with the "Golden Image" application category upon completion of the Inventory task: You can use the "Golden Image" category in Application Control rules. |
|
The [ScanScope.item_#] section contains the following settings: |
||
|
Description of the inventory scope. The maximum length of the string specified using this setting is 4096 characters. |
Default value:
|
|
Enables scans of the specified inventory scope. To run the task, enable scans of at least one inventory scope. |
|
|
Inventory scope limitation. In the inventory scan scope, the application scans only the files that are specified using the masks in the shell format. If this setting is not specified, the application scans all the objects in the inventory scope. You can specify several values for this setting. |
The default value is |
|
Path to the directory with objects to be scanned. |
Default value: |
The [ExcludedFromScanScope.item_#] section contains the following settings: |
||
|
Description of the inventory exclusion scope. |
The default value is not defined. |
|
Excludes the specified scope from the inventory. |
|
|
Limiting the inventory exclusion scope using shell masks. If this setting is not specified, the application excludes all the objects in the inventory scope. You can specify several values for this setting. |
Default value: |
|
Path to the directory with objects to be excluded. |
|
Viewing a list of detected applications
To view the list of applications detected on the device, execute the following command:
kess-control --get-app-list [--json]
where --json
means output data in JSON format.
Kaspersky Embedded Systems Security displays the following information about the detected applications:
- Date and time of inventory. Date and time when the Inventory task was performed
- Number of applications. The number of applications detected on the device
- The list of applications containing the following information:
- Path. Path to the application.
- Hash. Application hash sum.
- Type. Application type. For example,
Script
,Executable
. - Categories. Categories that the application belongs to (if they were previously created). You can view the list of created application categories using the
kess-control --get-categories
command.
When you add a new category, its information is not automatically updated in the application list. To update the application list, you need to restart the Inventory task.