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.11.1 available

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

ipdiscover finds clients with agents only - update


I don't no what is wrong, ipdicover will not work in my front end.

Server is CentOS 7

Only one subnet is activ 
packages SELinux und IPTable are disabled.

ocsinventory-agent works, the agents swaps information to server

If I run nmap, ipdiscover [NIC] or
binutils]# perl ipdiscover-util.pl -ipdiscover=0 -net=[MASK] -a -xml -h=localhost -u=ocs -d=ocsweb -p=123456
it found dozens of clients.

# ipdiscover [NIC] I get results like this:

IPDISCOVER is ON like this picture:

but in the web frontend I can see "IpDiscover 0"
This works now a little,  ipdiscover=1 and I can see the clints with running agents, only :(

What have I vergotten or what is wrong?

Best regards Jörn



In the Documentation can I read:

The OCS NG system is based on a dialog between an agent installed on host computers and a Apache module installed on a OCS NG server.The exchange is done in compressed XML and allows configuring the agent to perform tasks.

Which modul exacly make this job? Maybe isn't loaded?




This presents the client with agents only:

perl ipdiscover-util.pl -ipdiscover=0 -net= -a -xml -h=localhost -u=ocs -p=123456 -d=ocsweb


This presents the clients with agents only and uninterupted, continual:

ipdiscover eth0 1000


ipdicover-util.pl can recognize every client if i definite the ip-adress !

perl ipdiscover-util.pl -ip= -net= -a -xml -h=localhost -u=ocs -p=123456 -d=ocsweb


How can I scan the network with all clients in one order?

Mybe is this the solution?:

for i in {1..255};
        perl ipdiscover-util.pl -ip=$IP -list -xml -a -net= -h=localhost -u=ocs -p=123456 -d=ocsweb

With this loop it find all clients in the console like this:


but this result is not in the web frondend visible.

It's possible, the Redhat perl packages are buggy?


in Administrative console by (180 points)
edited by

1 Answer

0 votes

Have you some errors in apache error_log file and in activity.log file?

Please post their content.
by (88.5k points)



there are no apache error.log logfiles.

ipdiscover found only computers with installes agents.

activity.log was now created. smtp is not yes estableshed:

un Aug 24 22:44:02 2014;12427;103;wslin2231-2014-08-14-16-53-07;;OCS-NG_unified_unix_agent_v2.1.1;snmp;error: agent must communicate using https to be able to get SNMP communities (only affects OCS unix agent) !!
Sun Aug 24 22:44:02 2014;12427;100;wslin2231-2014-08-14-16-53-07;;OCS-NG_unified_unix_agent_v2.1.1;prolog;accepted
Sun Aug 24 22:44:02 2014;12427;314;wslin2231-2014-08-14-16-53-07;;OCS-NG_unified_unix_agent_v2.1.1;session;clean(check)
Sun Aug 24 22:44:02 2014;12427;311;wslin2231-2014-08-14-16-53-07;;OCS-NG_unified_unix_agent_v2.1.1;session;started
Sun Aug 24 22:54:14 2014;12424;318;wslin2231-2014-08-14-16-53-07;;OCS-NG_unified_unix_agent_v2.1.1;session;missing
Sun Aug 24 22:54:14 2014;12424;114;wslin2231-2014-08-14-16-53-07;;OCS-NG_unified_unix_agent_v2.1.1;inventory;no_session
Sun Aug 24 22:54:14 2014;12424;104;wslin2231-2014-08-14-16-53-07;;OCS-NG_unified_unix_agent_v2.1.1;inventory;incoming
Sun Aug 24 22:54:14 2014;12424;113;wslin2231-2014-08-14-16-53-07;;OCS-NG_unified_unix_agent_v2.1.1;inventory;u:drives
Sun Aug 24 22:54:14 2014;12424;320;wslin2231-2014-08-14-16-53-07;;OCS-NG_unified_unix_agent_v2.1.1;session;end
Sun Aug 24 22:54:14 2014;12424;101;wslin2231-2014-08-14-16-53-07;;OCS-NG_unified_unix_agent_v2.1.1;inventory;transmitted

ipdicover or ipdiscover-util.pl found only devices with agents. Its dispyed in shell or in web frond end, too.

If I run nmap, nmap found some hundred MAC-Adresses.

Maybe I don't understand the command?

If I run:

perl ipdiscover-util.pl -ipdiscover=0 -net= -a -xml -h=localhost -u=ocs -p=123456 -d=ocsweb

I get the clients with the agents only.

But I can ask for anyone client  without agent separate from server, the answer is correct:.
perl ipdiscover-util.pl -ip=[HOSTIP]/ -net= -a -xml -h=localhost -u=ocs -p=123456 -d=ocsweb

Best regards Jörn


Powered by Question2Answer