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

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

ipdiscover networks and add to OCS

Hello

I would like to discover devices on networks that don’t have an active OCS agent

The wiki says that it is possible to use ipdiscover-util.pl like this to scan and add devices to the OCS database:

perl ipdiscover-util.pl -network=10.1.1.0/24 -scantype=ping

But the current OCS version 2.9 ipdiscover-util.pl does not have these options (scantype, network)

Is there another way to discovery devices in networks that don't have an OCS agent and add to inventory?

wiki reference

in OCS Inventory NG server for Unix by (350 points)

1 Answer

0 votes

How run IpDiscover ?

First (and usual), IpDiscover could run from agent.

They could only do a discovery on their local network !

(lots of things about election to chose an agent and not another, are described in the link you've supplied)

(be carefull of the size of the local network : /16 means 65534-1 ping !!)

Second, IpDiscover could run from Server, using the supplied (perl) script 'ipdiscover-util.pl'.

IMHO use of this script need to provide all parameters needed like '-h', '-d', '-u' and '-p' as the script put data inside the database.

The script supplied with 2.9 version is well designed with parameters :

(line 66) :

for $option (@ARGV){

  if($option=~/-a$/){

    $analyse = 1;

  }elsif($option=~/-auto$/){

    $auto = 1;

  }elsif($option=~/-cache$/){

    $cache = 1;

    $analyse = 1;

    $xml = 1;

  }elsif($option=~/-path=(\S*)$/){

    $path = $1;

  }elsif($option=~/-ipdiscover=(\d+)$/){

    $ipdiscover = 1;

    $ipd = $1;

  }elsif($option=~/-xml$/){

    $xml = 1;

....

by (920 points)
edited by
 
Powered by Question2Answer
...