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

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

ipdiscover finds clients with agents only - update

Hello,

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

Software:
Server is CentOS 7
perl-Net-IP-1.26-4.el7.noarch
perl-DBI-1.627-4.el7.x86_64
perl-DBD-MySQL-4.023-5.el7.x86_64
perl-XML-Simple-2.20-5.el7.noarch
nmap-6.40-4.el7.x86_64
samba*-4.1.1-37.el7_0.x86_64

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

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>
<H><I>10.100.110.140</I><M>00:e0:00:c4:d5:62</M><N>-</N></H>
<H><I>10.100.110.123</I><M>00:14:4f:ec:29:32</M><N>pc123.test.net</N></H>
<H><I>10.100.120.7</I><M>00:03:ba:09:99:f4</M><N>pclin001.test.net</N></H>

IPDISCOVER is ON like this picture:
http://www.smnet.fr/ocsglpi/ocs-ipdiscover.html

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

 

Update

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?

 

Résumé

 

This presents the client with agents only:

perl ipdiscover-util.pl -ipdiscover=0 -net=255.255.0.0 -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=10.100.110.51/255.255.0.0 -net=255.255.0.0 -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?:

#!/bin/bash
for i in {1..255};
   do
        IP=10.100.110.$i/255.255.0.0
        perl ipdiscover-util.pl -ip=$IP -list -xml -a -net=255.255.0.0 -h=localhost -u=ocs -p=123456 -d=ocsweb
done

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

<IP>
  <DISCOVERED>no</DISCOVERED>
  <DNS>svlin253.ogs.int.</DNS>
  <INVENTORIED>no</INVENTORIED>
  <IP>10.100.110.253</IP>
  <NETBIOS></NETBIOS>
  <NETNAME>Linux-Netz</NETNAME>
  <NETNUM>10.100.0.0</NETNUM>
</IP>

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
Hi,

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

Please post their content.
by (90.4k points)

Hello,

 

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;10.100.153.111;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;10.100.153.111;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;10.100.153.111;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;10.100.153.111;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;10.100.153.111;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;10.100.153.111;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;10.100.153.111;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;10.100.153.111;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;10.100.153.111;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;10.100.153.111;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=255.255.0.0 -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]/255.255.0.0 -net=255.255.0.0 -a -xml -h=localhost -u=ocs -p=123456 -d=ocsweb

Best regards Jörn

 

 
Powered by Question2Answer
...