Project

General

Profile

Bug #3009

Problems with NetDiscovery module

Added by Andre Silva over 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
08/04/2015
Due date:
% Done:

0%

For junior contributor:
No

Description

I'm a long time user of FI for computer inventory (agent based) and I am trying to make use of SNMP features to include printers.

After setting up a NetDiscovery task and using a Windows agent as an actor, I can make it run but devices are not imported due to lack of data on key fields (printer name constraint rule).
If I run netdiscovery script from command line prompt it returns correct printer information. For example:

C:\Program Files\FusionInventory-Agent>fusioninventory-netdiscovery.bat --community=public --first=192.168.2.2 --last=192.168.2.2
[info] Can't run nmap, nmap detection can't be used

<REQUEST>
<CONTENT>
<DEVICE>
<AUTHSNMP>1</AUTHSNMP>
<DESCRIPTION>UTAX_TA Printing System</DESCRIPTION>
<IP>192.168.2.2</IP>
<IPS>
<IP>192.168.2.2</IP>
</IPS>
<MAC>00:17:c8:15:88:c7</MAC>
<MANUFACTURER>Kyocera</MANUFACTURER>
<MODEL>P-C2660DN</MODEL>
<SERIAL>LYN5204200</SERIAL>
<TYPE>PRINTER</TYPE>
<UPTIME>11 days, 02:02:01.49</UPTIME>
<VENDOR>Kyocera</VENDOR>
</DEVICE>
<MODULEVERSION>2.2.0</MODULEVERSION>
<PROCESSNUMBER>1</PROCESSNUMBER>
</CONTENT>
<DEVICEID>foo</DEVICEID>
<QUERY>NETDISCOVERY</QUERY>
</REQUEST>

When running against the server however, it hits the printer name constraint rule and the device is not imported. If I disable the rule, I can have the printer imported but only the serial number is imported.
Also, when running against the server the agent hangs on status "running task NetDiscovery" and it never finishes.

Let me know if you need more information or logs.

Also available in: Atom PDF