13 C
Texas
angeloma
Senior Writer and partner

Install the OCSInventory agent on Ubuntu 18.04 / Linux Mint 19?

Recently, I taught you how to install OCSInventory on Debian 10. But as you know, that was the server. Now, I will teach you how to install the OCSInventory agent in Ubuntu 18.04 and how to make the server register it.

Let’s go for it.

Install OCSInventory agent on Ubuntu 18.04 / Linux Mint 19

First of all, the system needs to be upgraded.

Open a terminal session and run the following command:

- Advertisement -
:~$ sudo apt update
:~$ sudo apt upgrade

This step is vital for the agent to do the job properly. It also allows him to gather more and better information from the computer.

This client is also written in Perl language, so we have to install some libraries first:

:~$ sudo apt install libmodule-install-perl dmidecode libxml-simple-perl libcompress-zlib-perl libnet-ip-perl libwww-perl libdigest-md5-perl libdata-uuid-perl

Then, we can install the OCSInventory agent in two ways.

The first is by manually compiling the source code. This option has the advantage that we can get the latest version of it, but it is something more complex and in a business environment may not be suitable.

On the other hand, the program is available from official repositories. This method sacrifices a little bit of the novelties for the sake of stability and ease of installation.

To install it, we will use the second option, therefore, run the following command

:~$ sudo apt install ocsinventory-agent

1.- Install OCSInventory agent on Ubuntu 18.04 / Linux Mint 19
1.- Install OCSInventory agent on Ubuntu 18.04 / Linux Mint 19

So, we need to configure it.

Configuring the OCSInventory agent

During installation, a customer configuration screen will be displayed. This first screen asks where the server is.

If the agent is being installed in the same computer where the server is, choose the first option. If not, choose the second one.

2.- Configuring the OCSInventory agent
2.- Configuring the OCSInventory agent

Then, you will see another screen where you have to indicate the IP address or the hostname of the computer where the OCSInventory server is installed.

3.- Defining where the OCSInventory server is
3.- Defining where the OCSInventory server is

Then the installation will be finished.

In case you make a mistake in this step, do not worry, you can always rectify it by modifying the file /etc/ocsinventory/ocsinventory-agg.

The synchronization with the server is done via crontab daily. However, we can force this synchronization with the following command:

:~$ sudo ocsinventory-agent --server [server]

You’ll see something like this:

4.- Running the OCSInventory on Ubuntu 18.04 / Linux Mint 19
4.- Running the OCSInventory on Ubuntu 18.04 / Linux Mint 19

Now, access your OCSInventory server and you’ll see that it’s been added correctly.

5.- OCSInventory dashboard
5.- OCSInventory dashboard

6.- OCSInventory agent working properly
6.- OCSInventory agent working properly

And that’s it. Now we invite you to explore all the new possibilities with this tool.

Conclusion

Thanks to OCSInventory for the inventory work, and it makes it much easier. And always with a fairly high degree of accuracy. So today, you have learned how to install the OCSInventory agent on Ubuntu 18.04 and Linux Mint 19. So all that remains is for you to get the most out of the tool.

Please share our post and join our Telegram channel.

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article