Previous Topic: Non Resident Inventory Policy GroupNext Topic: The NRI Agent


Running the NRI Agent from a Login Script

As an alternative to using the Elective Inventory web page, you can execute the NRI agent directly, for example, using a login script or even a USB memory stick.

The NRI agent executable, cmNriAgent.exe, is located in the ...\DSM\Web Console\webapps\wac\jsp\ei\wl\windows folder along with all the necessary inventory modules and supporting libraries.

In the same folder there are also three script files corresponding to the three primer scripts and options offered on the Elective Inventory page. To execute the NRI agent using one of the scripts, run the following command from a command prompt:

cmNriAgent.exe -script .\basic.ini

This command executes the NRI agent and creates an inventory report named after the generated host UUID on the computer, for example, 12FDBEBA-572D-4408-BFC8-E7922AD4A998.xiu.

This file can then be copied manually at any time to one of the collection folders belonging to a running Asset Collector.

Note: For more information, see the CA Asset Collector section.

The NRI agent can also be configured to direct the output directly to the Asset Collector folder by using the “-o” argument on the command line. For more information about the capabilities of the NRI agent, see the next section.

It is equally easy to run the NRI agent using a USB memory stick. Simply copy all the files from ...\DSM\Web Console\webapps\wac\jsp\ei\wl\windows to the USB stick. Then call the NRI agent as follows, preferably specifying that the output be sent to a subfolder on the memory stick:

cmNriAgent.exe -script .\basic.ini -o .\reports

Note: The NRI agent expects the output folder to exist and will fail if one does not.