Previous Topic: Script FileNext Topic: Script File: Software Section


Script File: Inventory Section

To specify which inventory detection modules to execute, an Inventory section must be added to the script file. If the section is omitted, the agent executes the basic inventory scanner by default.

Example: Inventory Section

[Inventory]
Method=0/1/2
ScanRestrictedUser=0/1
AdditionalModules=1
Module1Binary=vistainv.exe
Module1Commandline=-o inv.out
Module1Outputfile=inv.out
Module1Cleanup=inv.out,tmp.bak
TemplateModules=1
Template1=user_information.tpl

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

Parameter

Description

Method

Specifies one of the default inventory modules. The value can be one of the following:

0 = None of the default modules are executed.
1 = Runs the basic inventory module. Creates about 4KB of information.
2 = Runs the full general inventory module. Creates about 30KB of information.

ScanRestrictedUser

Indicates if hardware inventory scanning should be performed for restricted users.

0 = No. Restricted users are not scanned.

1 = Yes (default)

AdditionalModules

Specifies the number of additional modules to execute. The agent will iterate from 1 to the number of modules specified and read the module information from the ModuleXBinary, ModuleXCommandLine, ModuleXOutputfile, and ModuleXCleanup items.

ModuleXBinary

Specifies the file name for inventory module.

ModuleXCommandline

Specifies the command line to be used to execute the inventory module.

ModuleXOutputfile

Specifies the name of the file in which the inventory module stores the information.

ModuleXCleanup

Specifies a comma-separated list of files that the agent should delete after module execution. Files can be specified with a path.

TemplateModules

Specifies the number of inventory template modules to prompt the user for.

Note: In order to run template inventory through NRI Elective Inventory, you must add the following files to the download section of the NRI Primer script file:

amtplw32.exe, amtext.enu and amm2iw32.exe.

TemplateX

Specifies the file name of template file. The template file is in MIF format, and can be created either by the DSM Explorer or by manually launching the gui_am_tpledit.exe from the CA ITCM installation.