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.

How to use ipdiscover in a class b subnet

Hello everybody,

I installed a new server based on debian 8.6 with:


from https://github.com/OCSInventory-NG.

The Server works fine, but view parts of our network are based like (class B) and if I scan manually with:

ocsinventory-agent --debug --backend-collect-timeout=86400 --logfile=/var/log/ocsinventory-agent-debug.log

the scan takes over two hours to be finished:

[Tue Sep 27 12:24:10 2016][debug] Scanning the network
[Tue Sep 27 14:28:42 2016][debug] Running Ocsinventory::Agent::Backend::OS::Generic

We are interests to scan view parts of our network frequently, but with less run duration.

Now I want to set subnets in ocsinventory like:


to scan only via ipdiscover and to forbid to scan the full class B network. Is this possible? Only if the scan is finished the results would be send to the server.

Alternatively I would scan my network via nmap and generate a xml-file to store the data like:


But how can I send the data under debian or windows client to the server?

Additional informations:

ocsinventory-agent --version
Ocsinventory unified agent for UNIX, Linux and MacOSX (2.2)

server version: the new one 2.2.1 - but I can't find any informaion on running system (log, web frontend)

Starting OCS Inventory NG Management server setup on 2016-09-21-11-29-28


PHP Version :

5.6.24-0+deb8u1 (apache2handler)

Web Server :

Apache/2.4.10 (Debian)

Database Server :

(Debian) version 5.5.52-0+deb8u1

in IP Discover by (540 points)

1 Answer

0 votes
This is a minium version of a  working xml-file:

<?xml version="1.0" encoding="UTF-8"?>

But all datas of the device <DEVICEID>xxxxxx</DEVICEID> are removed at database.

command to send xml-file: wget --header="Content-type: multipart/form-data boundary=FILEUPLOAD" --post-file nameofxmlfile.xml
by (540 points)
Powered by Question2Answer