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

Windows Articles

How to use modprobe command?

The modprobe command is a Linux administration system created for management, visualization, inclusion and exclusion. From loadable modules to kernel. Also, the Module is...

Install Virtualmin on CentOS 8

Hello, friends. In this post, you will learn how to install Virtualmin on CentOS 8. In addition to that, we will leave it ready...

Different ways to open File Explorer in Windows 10

Hello! Certainly the archive scan is an essential element when it comes to controlling the contents. It is even so important, that there are...

How to setup WireGuard VPN with ubuntu 20.04

Here, we will learn today how to configure WireGuard VPN with Ubuntu 20.04. Wireguard® is an amazingly straightforward yet quick and present-day VPN that...

How to Unlock the Bootloader on Xiaomi devices

Greetings dear readers, this time we bring you an easy guide on how to unlock the Bootloader on Xiaomi devices. The Bootloader in a...
angeloma
angeloma
Senior Writer and partner

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:

:~$ 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.

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

How to use modprobe command?

The modprobe command is a Linux administration system created for management, visualization, inclusion and exclusion. From loadable modules to kernel. Also, the Module is...

Install Virtualmin on CentOS 8

Hello, friends. In this post, you will learn how to install Virtualmin on CentOS 8. In addition to that, we will leave it ready...

Different ways to open File Explorer in Windows 10

Hello! Certainly the archive scan is an essential element when it comes to controlling the contents. It is even so important, that there are...

How to setup WireGuard VPN with ubuntu 20.04

Here, we will learn today how to configure WireGuard VPN with Ubuntu 20.04. Wireguard® is an amazingly straightforward yet quick and present-day VPN that...

How to Unlock the Bootloader on Xiaomi devices

Greetings dear readers, this time we bring you an easy guide on how to unlock the Bootloader on Xiaomi devices. The Bootloader in a...
x