FlexNet Inventory Scanner Command Line

Command line summary for the FlexNet Inventory Scanner on both Windows and UNIX-like platforms.

(On Microsoft Windows) FlexeraInventoryScanner.exe [options...]
(On UNIX-like platforms) ndtrack.sh [options...]

Options:

-o tag = value

These optional parameters individually override the default FlexNet Inventory Scanner settings on Windows. On UNIX-like platforms, they override both the individual default settings and any matching preference recorded in ndtrack.ini.

Preferences for FlexNet Inventory Scanner are directly passed through to the ndtrack executable, so that details for each option are included in the preferences topics listed and linked below.

Enclose values in double quotation marks if the values include spaces; otherwise, double quotation marks are optional. Special characters (double quotation marks, backslash) must be escaped with a backslash.

Tip: The -t command-line option available on Windows for the installed FlexNet Inventory Agent is not supported for the FlexNet Inventory Scanner. Instead, you can specify the inventory type using the command line parameter:
-o InventoryType=User|Machine

If the InventoryType preference is not specified, the type of inventory collected on Windows platforms depends on the account running the FlexNet Inventory Scanner:

  • For the LocalSystem account, a computer (machine) inventory is collected
  • For all other accounts, a user inventory is collected.
For UNIX-like platforms, only machine-based inventory is supported.

Return codes

FlexNet Inventory Scanner returns a zero on success. If you receive a non-zero return code, check the log file. Details of the log file may also be configured with command-line options, as listed below.

Command line examples

This example collects a computer inventory and stores it locally (on the computer device where the FlexNet Inventory Scanner is executing) for upload by a separate system:
FlexeraInventoryScanner.exe 
          -o InventoryType=Machine 
          -o MachineZeroTouchDirectory="local-folder" 
          -o Upload=False
This example collects user-based inventory and uploads it to an inventory beacon:
FlexeraInventoryScanner.exe 
          -o InventoryType=User 
          -o UploadLocation="http://InventoryBeacon/ManageSoftRL"

Options

Except as specifically noted, the same options are supported for the FlexNet Inventory Scanner on Microsoft Windows, and for the use of ndtrack.sh as a scanner on UNIX-like platforms.

Notes

  1. Default values only apply if the parameter is not specified.
  2. Directory paths must be specified as absolute paths (that is, on Windows, starting with a drive name). The typical wildcards in directory names are supported (* representing any number of characters, and ? representing a single character).
  3. The FlexNet Inventory Scanner accepts all name/value combinations, although if a preference is used that does not appear in the list above, it may be ignored. On UNIX-like platforms, preferences may be included in the ndtrack.ini configuration file (not supported for Microsoft Windows).
  4. A preference value can symbolically refer to another preference by enclosing its name thus: $(preferenceName). References can contain further references.
    Example: The command
    FlexeraInventoryScanner.exe -o IncludeDirectory=$(WinDirectory)
    includes the Windows directory in the scan. References are resolved after all preferences are loaded so there are no ordering issues. Hopefully it is self-evident that, on UNIX-like platforms, only supported preferences can be referenced.
  5. Semicolon or comma-separated values are the only method for defining multiple values in the FlexNet Inventory Scanner. Only the Include and Exclude preferences listed above may have multiple values. All other preferences contain a single value that can be overwritten.
    Example: The command
    FlexeraInventoryScanner.exe -o IncludeDirectory=C:\\;D:\\;E:\\
    will scan the computer’s C:, D:, and E: drives if they are fixed (hard) disks, but not if they are CD-ROM drives or logical drives (mapped to network locations).

For more information, see ndtrack Command Line.

IT Asset Management (Cloud)

Current