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

Windows Articles

How to install Oracle Java 15 on Ubuntu 20.04 / 18.04?

Hello, friends. We know that Java is one of the most popular programming languages and now it's version 15. So in this...

How to run the Linux Tail command in Windows 10.

Hi! The title of this post may seem incongruous, but it's not. In fact, for some time Microsoft has approached positions with...

How to compress large videos in Windows 10

Hello, how are you? Multimedia resources are definitely used in any system. Indeed, we live in the age of technology. That's why...

How to get Google Opinion Rewards in any Country

Greetings! Google Opinion Rewards is a cool app, which will allow you to earn credit, to spend it on the Google Play...

How to change the hostname on Ubuntu?

This simple tutorial will teach you how to change the hostname on Ubuntu. The steps we will tell you here will work...
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 install Oracle Java 15 on Ubuntu 20.04 / 18.04?

Hello, friends. We know that Java is one of the most popular programming languages and now it's version 15. So in this...

How to run the Linux Tail command in Windows 10.

Hi! The title of this post may seem incongruous, but it's not. In fact, for some time Microsoft has approached positions with...

How to compress large videos in Windows 10

Hello, how are you? Multimedia resources are definitely used in any system. Indeed, we live in the age of technology. That's why...

How to get Google Opinion Rewards in any Country

Greetings! Google Opinion Rewards is a cool app, which will allow you to earn credit, to spend it on the Google Play...

How to change the hostname on Ubuntu?

This simple tutorial will teach you how to change the hostname on Ubuntu. The steps we will tell you here will work...
x