ndtrack Command Line
This is the command line reference for the tracker (the executable ndtrack). There is large overlap between use of the tracker in all its use cases, and specifically between the FlexNet Inventory Agent case and the FlexNet Inventory Scanner case. For this reason, variations are noted below, and you should use this reference for all cases.
Synopses
FlexNet Inventory Agent on Microsoft Windows:
ndtrack.exe [options...]
FlexNet Inventory Scanner on Microsoft Windows:
FlexeraInventoryScanner.exe [options...]
FlexNet Inventory Agent on UNIX-like platforms:
ndtrack [options...]
FlexNet Inventory Scanner on UNIX-like platforms:
ndtrack.sh [options...]
Options:
-o tag = "value"
-t Machine
-t Machine
option is mandatory for, and valid only for, a
single use case: when you are running FlexNet Inventory Agent on Microsoft Windows from a
user account other than the local SYSTEM
account. - On UNIX-like platforms, it is always ignored.
- When running the lightweight FlexNet Inventory Scanner on Microsoft Windows, it is the default value and must not be specified in the command line.
- When executing
ndtrack.exe
on Microsoft Windows:- As the local
SYSTEM
account, it is the default. - As any other account, it must be specified.
- As the local
FlexeraInventoryScanner.exe -o Upload="false" -o Upload="true"
means
that upload of collected inventory is attempted. In general, do not repeat any
individual tag within the command line. - Surrounding any value that includes white space
- Surrounding a list with internal semi-colon separators
- On Windows platforms using the FlexeraInventoryScanner
executable, where
Upload="true"
is mandatory for normal operation, and the value must be enclosed in double quotation marks.
ndtrack
(alone of all the components
documented in this chapter) adds special conditions:- A backslash within a recognized file path need not be escaped.
- Avoid a backslash as the last character in a longer string enclosed in double
quotation marks. For example, this option on an
ndtrack
command line fails:
Here the final backslash-quote sequence is problematic. A general workaround is to insert a semicolon (";" which is the list separator character, usable only in the command line but not in PowerShell) between the backslash and double quotation mark. All of the following examples are successful:-o ExcludeDirectory="D:\;E:\;F:\;G:\"
-o ExcludeDirectory="D:\;E:\;F:\;G:\;" // closing semi-colon avoids the problem -o ExcludeDirectory="D:\;" // works for a single item, as well as a list -o IncludeDirectory="\\" // short string also works, but beware huge inventory! -o IncludeDirectory=\\ // also works without quotes (but not for ExcludeDirectory)
Tip: When troubleshooting exclusions, don't overlook the interaction between ExcludeDirectory and ExcludeEmbedFileContentDirectory.
- You are unlikely to meet these problems on UNIX-like platforms, as the forward slash need not be escaped.
Return codes
Command line examples
LocalSystem
account):
ndtrack.exe
-t Machine
-o MachineZeroTouchDirectory="local-folder"
-o Upload=False
- You have licensed the FlexNet Manager for Datacenters product.
- The invoking account is correctly configured (for details, see Oracle Discovery and Inventory in IT Asset Management System Reference).
- Your current InventorySettings.xml file is correctly located
for the tracker. Correct location depends on the particular case:
- For the Adopted case and Agent third-party deployment case, in
the folder identified in the
InventorySettingsPath
preference (defaults are $(CommonAppDataFolder)\ManageSoft Corp\ManageSoft\Tracker\InventorySettings\ on Windows and /var/opt/managesoft/tracker/inventorysettings on UNIX-like platforms). This is handled automatically for devices where the installed agent is managed by policy. - For the FlexNet Inventory Scanner case, in the same folder as the self-installing executable on Windows or the ndtrack.sh script for UNIX-like platforms,
- For the Core deployment case, deployed into the same folder as the ndtrack executable.
- For the Adopted case and Agent third-party deployment case, in
the folder identified in the
- An Oracle Database is found on the target (local) device.
LocalSystem
account).
ManageSoftRL
is the name of a web service on the inventory beacon that receives the uploaded inventory and saves it by default to
%CommonAppData%\Flexera
Software\Incoming\Inventories:
ndtrack.exe -o UploadLocation="http://InventoryBeacon/ManageSoftRL"
Same
purpose on a UNIX-like
platform:ndtrack -o UploadLocation="http://InventoryBeacon/ManageSoftRL"
Same
purpose using FlexNet Inventory Scanner on Microsoft Windows (for this executable on this
platform, the -o Upload="true"
option, including the use of the double
quotation marks, is
mandatory):FlexeraInventoryScanner.exe
-o UploadLocation="http://InventoryBeacon/ManageSoftRL"
-o Upload="true"
And
same purpose using ndtrack.sh
as a scanner on UNIX-like
platforms:ndtrack.sh -o UploadLocation="http://InventoryBeacon/ManageSoftRL"
The
following command line is used for high-frequency (30 minute) hardware scanning when
IT Asset Management is used for subcapacity license calculations for IBM PVU
licenses:ndtrack.exe -o WMI=true
-o Hardware=true
-o ManageSoftPackages=false
-o MSI=false
-o PlatformSpecificPackages=false
-o Software=false
-o TrackProductKey=false
-o IncludeRegistryKey=
-o IncludeDirectory=
-o EmbedFileContentDirectory=
-o OnlyGenerateIfHardwareChanged=true
-o PerformSymantecSFScan=false
-o PerformIBMWebSphereMQScan=false
-o InventorySettingsPath="
Notes
- Default values apply when a parameter is not specified.
- If no drive is indicated when specifying directory paths, the tracker applies the path to every fixed drive of the local computer.
- The tracker supports all name/value combinations as command-line options, although a warning is logged if a preference is used that does not appear in the list below.
- A preference value can symbolically refer to another supported preference by enclosing
its name thus:
$(preferenceName)
. References can contain further references.Example: The command
includes the Windows directory in the scan (which is likely to produce a massive increase in file evidence!). References are resolved after all preferences are loaded so there are no ordering issues. Self-evidently, on UNIX-like platforms, only supported preferences can be referenced.ndtrack.exe -o IncludeDirectory=$(WinDirectory)
- Semicolon or comma-separated values are the only method for defining multiple values in
preferences for the tracker. (Do not repeat any individual tag within the command
line.)Example: The command
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).ndtrack.exe -o IncludeDirectory=C:\\;D:\\;E:\\
- To activate all logging, use the default preferences as follows:
Logging=true LogLevel=A-Z LogFile=<file> LogModules=default
Options
- The full FlexNet Inventory Agent on Microsoft Windows, where preferences may also be included in the Windows registry (these same command-line settings may also be used if you have deployed just the FlexNet inventory core components in the Core deployment case, but in this case there is no checking of the Windows registry)
- The full FlexNet Inventory Agent on UNIX-like platforms (where preferences may also be included in the config.ini file)
- The lightweight FlexNet Inventory Scanner on Microsoft Windows (preferences can only be used in the command line)
- The scanner equivalent ndtrack.sh on UNIX-like platforms (where preferences may also be included in the ndtrack.ini file).
-o
options are: IT Asset Management (Cloud)
Current