Manual scan

The manual scan can be used to inventory assets that are not connected to your network or are otherwise inaccessible for regular scanning.

Manual scanning of any system involves three basic steps.

1. Copy the agent executable to the asset you need to scan

Agents are located in TNI’s installation folder (e.g. “C:\Program Files (x86)\Total Network Inventory”). The filenames are as follows:

OS File name

Windows

tniwinagent.exe

Linux

 

tnilinagent
tnilinagent_x64

macOS

tnimacagent

FreeBSD

tnibsdagent

VMware ESX

tniesxagent

The Windows agent can also be copied to a specified folder using the Export audit agent option from the Options Logon script .

2. Perform the scan

Launch the agent on the remote system. When the scanning is complete, a data file will be generated and, by default, placed in the directory from which the agent is run.

When scanning a Windows asset, you can use these command line parameters for tniwinagent.exe:

  • /path:"\\server\share" allows you to specify a path to a folder where the data file will be placed;
  • /delay:XX specifies the gap in seconds between the agent’s launch time and the start of the scan;
  • /overwrite overwrites the data file if the target folder already contains an older version (otherwise, new files with (2), (3), etc. appended to their names will be created after each scan);
  • /scripted is required for running the logon script scan;
  • /debug allows you to scan an asset in debug mode (when scanning errors are detected in normal mode). A special data file will be created, which can be sent to the developers for troubleshooting;
  • /driver:{x} controls the low-level hardware scan mode. Set {x} to:

0 — to disable the low-level hardware scan completely;
1 — always skip the disk drive scan (in order to avoid BSOD);
2 — to skip the disk drive scan automatically if the faulty driver is present (default value);
3 — to enable the full low-level hardware scan.

  • /admin runs the agent with administrator rights;
  • /noadmin runs the agent without administrator rights;
  • /keepdriver keeps the low-level hardware scan driver installed;
  • /removedriver removes the low-level hardware scan driver (if it’s installed);
  • /nodriver disables low-level hardware scan (same as driver:0);
  • /wuatimeout:{x} controls the Windows updates scan mode and its timeout. Set {x} to:

0 — to disable the Windows updates scan completely (default value);
any number above 0 — to enable the Windows updates scan and set the timeout for the scan (in minutes) as the specified number.

  • /wuahcount:{x} specifies the number of recent Windows Update history entries to collect. By default, the value is 5000 entries.
  • /logoff logs the current user off (post-scan);
  • /reboot restarts the computer (post-scan);
  • /poweroff powers off the computer (post-scan; same as /shutdown);
  • /shutdown shuts the computer down (post-scan; same as /poweroff).
Examples

tniwinagent.exe /debug /verbose /driver:3
tniwinagent.exe /wuatimeout:120 /wuahcount:566
tniwinagent.exe /reboot

Additional parameters for collecting information from hardware sensors:

  • /sensors:{x} defines which hardware sensors will be collected during the low-level hardware driver scan, where {x}:
     all – collects data from all hardware sensors (the option is set by default);
     none – does not collect data from any hardware sensors;
     temp collects information from the temperature sensors only;
     fan – collects fan speed information;
     clock – collects information from the frequency sensors only;
     voltage – collects information from voltage sensors;
     current – collects information from current sensors;
     power – collects information from power sensors.

Flags can be combined by separating them with commas. For instance, tniwinagent.exe /sensors:fan,clock,power

Examples

tniwinagent.exe /sensors:none
tniwinagent.exe /sensors:all
tniwinagent.exe /sensors:fan,temp,clock,voltage,current,power
tniwinagent.exe /sensors:voltage

Linux, macOS, FreeBSD, and ESX agents are run from the console. For example, you can run the Linux agent using the following command:

chmod 755 tnilinagent
./tnilinagent

When scanning Linux, macOS, FreeBSD, and ESX systems, the following command line parameters can be used:

  • -silent allows you to scan an asset without user interaction. Only the scan progress percentage will be displayed;
  • -log allows you to scan an asset while logging the scanning process;
  • -debug allows you to scan an asset in debug mode (when scanning errors are detected in normal mode). A special data file will be created, which can be sent to the developers for troubleshooting.

Locate the generated data file and copy it to the system running your copy of TNI (or any other location accessible to TNI).

3. Import the data into your Storage

There are several ways to do this: by placing the file directly into the Storage folder, by using the Import menu, or by enabling the automatic import if you perform manual scans regularly. See the Data import section for details.

Contents