Discovery-Linux

As an alternative to inventory via the wizard, the autonomous discovery module can be used. This is executed directly on the Linux system and generates a result file, which is then imported into Docusnap via File Import.

General information about autonomous discovery modules, standard parameters, and importing result files can be found in the chapter Autonomous Discovery Modules.

The following modules are available for inventorying Linux systems:

  • Discovery-Linux – For current distributions. This module is always up-to-date and should be used preferably.
  • Discovery-Linux-Legacy – For older Linux distributions. No longer being developed, remains for existing implementations.

The inventory is started with the following command:

./Discovery-Linux

Parameters

The parameters of the Discovery-Linux module differ from the standard parameters of the other discovery modules.

  • -d – Enables debug output. The output is written to standard error (stderr)
  • -g – Disables the network connection queries
  • -h – Displays the help text
  • -n – Disables name resolution. Collected IP addresses are not resolved to names via reverse lookup
  • -o – Writes the result directly to standard output (stdout) instead of to a file. The XML is written unencrypted
  • -s – Runs the queries using sudo
  • -v – Displays the version number of the module

Examples

Standard call. The result file is stored in the directory of the module:

./Discovery-Linux

Running the queries with sudo:

./Discovery-Linux -s

Without name resolution and without querying the network connections:

./Discovery-Linux -n -g

Parameters can be combined – here execution with sudo, without name resolution and without querying the network connections:

./Discovery-Linux -s -n -g