Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.6 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

Ocsinventory agent under linux not send ip address hosts


i have install a ocsinventory agent (2.3) under linux (Centos 7)

I schedule the agent with crontab with this command:

10 * * * * ocsinventory-agent -s -f <ip ocsserver>

but in the server ocs  i don't see the host ip address .

But i launch the some command by terminal the ip address is displayed.


Thanks very much
in OCS Inventory NG agent for Unix by (340 points)

5 Answers

0 votes

At first, prefer use DNS instead of IP address : that's better :)

You look like to have not configure the agent : if you put the server's address in the configuration file, there is no need to force the inventory by command line. You just need to call ocsinventory-agent and nothing more.

Attention, in the crontab, you have no path : use the full path to call ocsinventory-agent (command whereis to get it).
by (21.1k points)
0 votes


thanks for your reply.

In crontab i have use full path to call ocs agent and the dns but don't work.

My code for cron:

00 * * * * /usr/local/bin/ocsinventory-agent -s ocs.server.lan

With this code the hosts is register in ocs server but the ip and the ram not displayed.

If i launch the command by console the ip and the ram are displayed.

Help me please.

by (340 points)
0 votes

Post ocsinventory-agent.log file content. I want to be sure that all prerequisites modules are installed.


by (70.3k points)
0 votes
Подтверждаю этот факт и в  Ubuntu 17.10

Не передает IP address

Что то не так в самом агенте

На Ubuntu 17.04 эта же версия агента OCS-NG_unified_unix_agent_v2.0.5

все отлично передавала а на Ubuntu 17.10 перестал передавать все сетевые параметры

Что конкретно делать ? Укажите какой модуль Perl надо добавить?

Ниже даю перевод в гугле


I also confirm this fact in Ubuntu 17.10

Does not transfer the IP address

Something is wrong in the agent itself

On Ubuntu 17.04, the same version of the agent OCS-NG_unified_unix_agent_v2.0.5

all perfectly passed and on Ubuntu 17.10 has ceased to transfer all network parameters

What exactly should I do? Which Perl module should I add?
by (140 points)
0 votes

My answer to n2011all

2.0.5 is too old and not updated in Ubuntu. Please update to 2.3 with manual setup. You'll need to update also the ocs server to 2.3.1.


by (70.3k points)
Powered by Question2Answer