Skip to main content
Matrix42 Self-Service Help Center

Unix Inventory

Overview

This document provides reference information on the data provider Unix Inventory

Unix Inventory data provider is able to collect hardware and software information using remote scanning by Remote SSH (Secure Shell). 

Supported Versions

Following Unix and Linux distributions have been tested and are supported by the Unix Inventory data provider:

  • CentOS
  • Fedora
  • FreeBSD
  • Mint
  • Red Hat
  • Solaris
  • SUSE 
  • Ubuntu

Requirements

To successfully collect inventory data for Unix/Linux environments, certain prerequisites should be fulfilled. With version 8.0 and higher, the inventory can also be run without Root rights.

Collecting Inventory Under the Root User

  1. The Data Gateway service is run with Administrator credentials.
  2. A Unix/Linux operating system needs to support the password authentication method (PasswordAuthentication setting has to be set in SSH config file).
  3. Depending on the operating system in use, the following applications and packages should be installed on computers that are scanned:
FreeBSD sysinfo, pkg, dmesg, egrep, grep, awk, dmidecode, cut, hostname, ifconfig, sysctl, uname, pciconf
Solaris /usr/sbin/smbios, /usr/sbin/ipadm, /usr/sbin/dladm, /usr/bin/pkginfo, /usr/bin/kstat, who; e/usr/bin/grep, tail, /usr/bin/awk, cut, hostname, ip
Linux grep, tail, awk, dmidecode, lspci, cut, hostname, ip, date, lshw, sed, lsblk

Other Unix-like systems may have different prerequisites.

Collecting Inventory Without Root Rights

For Linux servers, take the following steps:

  1. Install the sudo program on the Linux server.
  2. Open the /etc/sudoers file and add the following lines:
Cmnd_Alias MATRIX42SCAN = /usr/bin/which, /usr/sbin/dmidecode, /usr/sbin/lshw, /sbin/lspci

If necessary, replace the default paths for these utilities.

<User1> ALL=(ALL) NOPASSWD: MATRIX42SCAN

<User1> is the user account that will be used for scanning. It can be any user from any group 

  1. When configuring the Unix Inventory data provider in the legacy console in Matrix42 Software Asset & Service Management, specify the credentials of the User1 account:
  • Under Administration > Integration > Data Providers, open the Unix Inventory Data Provider.
  • Open the required data provider configuration.
  • Provide credentials of the User1 user account in the Login and Password fields.
  • Click Apply/OK to save changes for the data provider configuration.

For FreeBSD servers, take the following steps:

User1 is the user account that will be used for scanning. It can be any user from any group.

  1. Make sure that User1 has Bash as default shell.
  2. Install the sudo program on the FreeBSD server.
  3. Open the sudo configuration file and add the following line:
User1 ALL=(ALL) NOPASSWD: /usr/local/sbin/dmidecode
  1. When configuring the Unix Inventory data provider in the legacy console in Matrix42 Software Asset & Service Management, specify the credentials of the User1 account:
  • Under Administration > Integration > Data Providers, open the Unix Inventory Data Provider.
  • Open the required data provider configuration.
  • Provide credentials of the User1 user account in the Login and Password fields.
  • Click Apply/OK to save changes for the data provider configuration.

Further Information:

  • Was this article helpful?