Cleaned a bit my environment, i want to do some serious work with
network discovery and SNMP.
But still i'm frustrated on that, because i was not able to make it
work, and, worst, i was not able to understand how it work.
Base system: GLPI 0.84.7, FI 1:2.3.9.1-1 on debian wheezy.
For now, i've understood that:
1) i can setup an 'inventory task' on GLPI that can be binded to a
particular agent instance/host, and that run the discovery against the
network.
The same result is achived running 'fusioninventory-netdiscovery', eg
running the task against one of my switches:
root@lupus:~# fusioninventory-netdiscovery --verbose --first 10.5.1.210 --last
10.5.1.210
<?xml version="1.0" encoding="UTF-8" ?>
<REQUEST>
<CONTENT>
<AGENT>
<AGENTVERSION /> <START>1</START>
</AGENT>
<MODULEVERSION>2.2.0</MODULEVERSION>
<PROCESSNUMBER>1</PROCESSNUMBER>
</CONTENT>
<DEVICEID>foo</DEVICEID>
<QUERY>NETDISCOVERY</QUERY>
</REQUEST>
<?xml version="1.0" encoding="UTF-8" ?>
<REQUEST>
<CONTENT>
<AGENT>
<NBIP>1</NBIP>
</AGENT>
<PROCESSNUMBER>1</PROCESSNUMBER>
</CONTENT>
<DEVICEID>foo</DEVICEID>
<QUERY>NETDISCOVERY</QUERY>
</REQUEST>
<?xml version="1.0" encoding="UTF-8" ?>
<REQUEST>
<CONTENT>
<DEVICE>
<AUTHSNMP>1</AUTHSNMP>
<CONTACT>OMISSIS</CONTACT>
<DESCRIPTION>ProCurve J9021A Switch 2810-24G, revision N.11.69, ROM
N.10.01 (/sw/code/build/bass)</DESCRIPTION>
[...]
and this is good, also seems to work on GLPI (eg, on my device i've
some ''fusioninventory data''). Perfectly.
2) after that, you can bind another task, the 'netinventory' one, that
scan all the SNMP data and import it in GLPI, the ''static'' one
(number of ports, ...) and the dynamic one (MAC address connected,
counters, ...).
Again this task can be schaduled, also binding it to a particular
agent/host, but also run manually with 'fusioninventory-netinventory'.
But this seems not to work. If i run:
fusioninventory-netinventory --verbose --host 10.5.1.210
i get rougly the same data of the previous 'netdiscovery' task,
while if i run a snmpwalk i get:
snmpwalk -Os -c public -v 1 10.5.1.210 > /tmp/ttt
root@lupus:~# wc -l /tmp/ttt
32886 /tmp/ttt
What i'm missing?! Thanks.
--
dott. Marco Gaiarin GNUPG Key ID: 240A3D66
Associazione ``La Nostra Famiglia'' http://www.sv.lnf.it/
Polo FVG - Via della Bontà , 7 - 33078 - San Vito al Tagliamento (PN)
marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797
Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
http://www.lanostrafamiglia.it/chi_siamo/5xmille.php
(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
_______________________________________________
Fusioninventory-user mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/fusioninventory-user