Previous Topic: Command LineNext Topic: Script File: Inventory Section


Script File

The agent can be executed and instructed on what to do through a script file. The script exposes some of the options that are offered on the command line. If options are specified on the command line as well as in the script file, the command line specification takes precedence.

Note: If you want to modify the default configuration script files, they are located in the ...\DSM\Web Console\webapps\wac\jsp\ei\wl\scripts folder. Their respective file names are 1basic.wlscr, 2adv.wlscr, and 3register.wlscr.

The script file must always have a General section:

[General]
OutputFolder=.\
OutputFile=
Origin=CA Elective Inventory
Trustlevel=5
TrustlevelRestrictedUser=3
KeepHostkey=Yes
ProcessPriority=0-3

The following table includes the parameters available in the General section:

Parameter

Description

OutputFolder

Specifies the location where the agent should put the inventory XML file.

OutputFile

Specifies the output file. By default, the output file is named using the generated host UUID. This can be overridden through this parameter.

Origin

Specifies the origin of the asset. See the Asset Collector documentation for more information on origin.

Trustlevel

Specifies the trust level of the asset. The trust level can be a number between 1 and 5. See the Asset Collector documentation for more information on trust level.

TrustLevelRestrictedUser

Specifies the trust level of the user if the NRI agent is executed by a restricted user. Restricted users do not have the same access to information as administrators, hence the reported information cannot be considered as trustworthy.

If this item is not specified the “trustlevel” value is used.

KeepHostkey
(optional)

If specified and the value is Yes, the agent leaves the generated hostkey in the registry. If the value is No, the key is removed. Default is Yes.
The hostkey should be kept if there are plans to push the real CA ITCM agents later. The CA ITCM agent then reuses the hostkey, making it easier to consolidate it with the elective scanned agent.

ProcessPriority (optional)

This can be used to control the priority of the sub-processes launched by the CA ITCM agent. The default value is 0 which is “idle”, meaning that sub-processes only use the CPU which is not consumed by other processes.

Possible values are:

0 = Idle (default)
1 = low
2 = normal
3 = high

Note: The actual prioritization is controlled by the OS.