OCSInventory-NG / OCSInventory-Server

Communication server of OCS Inventory
http://www.ocsinventory-ng.org/
GNU General Public License v2.0
344 stars 139 forks source link

ipdiscover-util.pl doesn't seem to store discovered devices #352

Closed StCyr closed 2 years ago

StCyr commented 2 years ago

It's hard to solve a problem when important details are missing, that why we added this template, to help you and us.

General informations

Operating system : Ubuntu 20.04.3

Server informations

Perl version : v5.30.0 Mysql / Mariadb / Percona version : MySQL Ver 8.0.26-0ubuntu0.20.04.2

OCS Inventory informations

Ocs server version : 2.9.1

Problem's description

I'm trying to use ipdiscover-util.pl to scan a subnet where there's no agents:

./ipdiscover-util.pl -p=xxxxxxxx -network=10.50.0.0/16

Unfortunately, though the utility seems to discover some devices I can't find them in the ocsreports interface

Here's the complete output of the command:

root@houdini:/usr/share/ocsinventory-reports# ./ipdiscover-util.pl -p=xxxxxxxx -network=10.50.0.0/16

########################
Starting scan of subnets
########################

Adding 10.50.1.201
Adding 10.50.1.202
Adding 10.50.1.203
Adding 10.50.1.206
Adding 10.50.1.207
Adding 10.50.1.208
Adding 10.50.2.100
Adding 10.50.2.101
Adding 10.50.2.102
Adding 10.50.2.103
Adding 10.50.2.249
Adding 10.50.2.250
Adding 10.50.2.251
Adding 10.50.2.252
Adding 10.50.2.253
Adding 10.50.2.254
Adding 10.50.3.163
Adding 10.50.3.165
Adding 10.50.3.166
Adding 10.50.4.145
Adding 10.50.5.212
Adding 10.50.5.213
Adding 10.50.5.214
Adding 10.50.5.215
Adding 10.50.5.216
Adding 10.50.5.217
Adding 10.50.5.218
Adding 10.50.5.219
Adding 10.50.5.220
Adding 10.50.5.221
Adding 10.50.5.222
Adding 10.50.5.223
Adding 10.50.5.224
Adding 10.50.5.225
Adding 10.50.5.226
Adding 10.50.5.227
Adding 10.50.5.228
Adding 10.50.6.205
Adding 10.50.6.206
Adding 10.50.6.207
Adding 10.50.6.208
Adding 10.50.6.209
Adding 10.50.6.210
Adding 10.50.6.211
Adding 10.50.6.212
Adding 10.50.6.213
Adding 10.50.6.214
Adding 10.50.6.215
Adding 10.50.6.216
Adding 10.50.6.217
Adding 10.50.6.218
Adding 10.50.6.219
Adding 10.50.6.220
Adding 10.50.6.221
Adding 10.50.6.222

#########################
Finishing scan of subnets
#########################

root@houdini:/usr/share/ocsinventory-reports#
charleneauger commented 2 years ago

Hi @StCyr ,

This bug has been fixed with this reports PR : https://github.com/OCSInventory-NG/OCSInventory-ocsreports/pull/1266

After the ipdiscover scan, logout / logon to reload ipdiscover table on the reports.

Best regards, Charlene