Updated in 2023.1
Alloy Discovery offers various audit methods based on using standalone audit agent:
Some methods involve installing the audit agent on target computers; other methods are based on deployment of the Inventory Analyzer package to a target location (a network share or a flash drive) and running the audit from that location.
- lina24 - the Linux Inventory Analyzer executable for Linux kernel version 2.4 and earlier
- lina26 - the Linux Inventory Analyzer executable for Linux kernel version 2.6 and later
- lina - the script to launch the proper Linux Inventory Analyzer executable
- lina.ini - the
LinuxInventory Analyzer configuration file
- AuditData - the folder where the resulting audit snapshots will be placed
- .adt - binary files containing up-to-the-minute hardware and software inventory details of the audited computers;
- .log (optional) - text files containing status details of the audit operations
When configured, the
lina.ini configuration file contains the parameters governing the Linux Inventory Analyzer's operation. Generally, the configuration file may contain zero or more of the following lines in any order. This file is optional and defined only if you change the default parameters. Note that the values are for illustrative purposes only:
NOTE: Both plain text and encrypted passwords are allowed. You can enhance security by creating the configuration file from within Alloy Discovery; in this case, the password will be stored encrypted.
If you want to send audit snapshots from remote Linux machines by e-mail, you have to have an access to a SMTP server (for details, see Configuring outgoing e-mail), or to install a sendmail-compatible Mail Transfer Agent on every Linux machine.
There are several ways to send audit snapshots from the remote Linux machines:
Send the snapshots via SMTP server. To use this option, create a Site with the E-mail Audit Source in Alloy Discovery (for details, see Creating Sites). Make sure all the SMTP-related parameters are specified (-sp, -ss and -p with -u if your SMTP server requires authentication).
Send the snapshots using a Mail Transfer Agent (MTA). To use this option, execute "./lina -m firstname.lastname@example.org" (make sure to replace an example e-mail address of the recipient with the real one) from the command line. The snapshots will be sent directly to the specified e-mail address via the sendmail-compatible MTA installed locally.
It's very important that lina.ini resides in the same folder as the Linux Inventory Analyzer executable (lina), since it contains the necessary configuration settings for lina. The user is allowed to change these settings, if needed. For instructions, please see the >README-lina.txt file shipped with Alloy Discovery (\Program Files\Common Files\Alloy Shared\Lina\Bin).
Regardless on your Linux kernel version, use lina to launch Linux Inventory Analyzer, and the script will launch the proper executable. There are several ways to launch the Linux Inventory Analyzer:
Launch the Linux Inventory Analyzer from the command line without command-line switches. This way, the Linux Inventory Analyzer will use the configuration settings from the lina.ini configuration file, if the file was created.
Launch the Linux Inventory Analyzer from the command line using command-line switches. If you run the Linux Inventory Analyzer using the switches explained in >README-lina.txt, the parameters you enter on the command line will override the lina.ini file settings.
Create a schedule to run the Linux Inventory Analyzer automatically.
You can create a schedule to run Linux Inventory Analyzer automatically. One of the ways to automate the task is to use the cron daemon. The cron program is used to schedule various cron jobs such as running some programs overnight.
5 0 * * * /usr/local/bin/lina -m email@example.com
As a result, Linux Inventory Analyzer, which script resides in /usr/local/bin, will audit the computer daily at 00:05 AM and will send the generated audit snapshot files via e-mail to firstname.lastname@example.org.
Running Lina From a Windows Share
In many cases it may be easier to run the Linux Inventory Analyzer directly from a Windows share to avoid moving audit snapshots to a central network location and managing Linux Inventory Analyzer versions from a decentralized location. You can view the >README-lina.txt file for a sample script that will connect to a Windows file share using Samba, run the Linux Inventory Analyzer, and automatically save the .adt file in the proper location.