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?