Discussion:
[Fusioninventory-user] Really, really, i don't understand how SNMP works...
Marco Gaiarin
2012-07-03 14:46:09 UTC
Permalink
I'm still busy on trying to deploy FusionInventory on my organization,
but still i'm stopped on some trouble, the big one is SNMP.

I've setup a test environment (GLPI 0.80.7, FI 0.80+1.4, debian lenny)
and i'm trying to setup SNMP, using as test targets a printer and a
switch. Both works:

meti:~# snmpwalk -v 2c -c public rezza | head
SNMPv2-MIB::sysDescr.0 = STRING: ProCurve J9085A Switch 2610-24, revision R.11.60, ROM R.10.06 (/sw/code/build/nemo(R_ndx))
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.11.2.3.7.11.76
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (422942585) 48 days, 22:50:25.85
[...]

meti:~# snmpwalk -v 2c -c public hpclj4550 | head
SNMPv2-MIB::sysDescr.0 = STRING: HP ETHERNET MULTI-ENVIRONMENT,ROM L.21.21,JETDIRECT,JD84,EEPROM L.21.22,CIDATE 07/06/2001
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.11.2.3.9.1
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (19365160) 2 days, 5:47:31.60
[...]


I've tried to setup a ''net discovery'', but really i've not found a
way to do so: the manual say little or nothing, or at least i don't
understand it.

The i've tried to associate OID and other information to the switch and
printer, eg on the 'FusInv SNMP' page, i setup the 'SNMP models' and
the 'SNMP authentication' (as 'Public community v2c'), then i push
'Update' but nothing happen.


What i'm missing? Really i don't understand how make SNMP work...
please help me... 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)sv.lnf.it tel +39-0434-842711 fax +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)
David DURIEUX
2012-07-03 15:01:47 UTC
Permalink
Le Tue, 3 Jul 2012 16:46:09 +0200
Post by Marco Gaiarin
I'm still busy on trying to deploy FusionInventory on my organization,
but still i'm stopped on some trouble, the big one is SNMP.
I've setup a test environment (GLPI 0.80.7, FI 0.80+1.4, debian lenny)
and i'm trying to setup SNMP, using as test targets a printer and a
meti:~# snmpwalk -v 2c -c public rezza | head
SNMPv2-MIB::sysDescr.0 = STRING: ProCurve J9085A Switch 2610-24,
revision R.11.60, ROM R.10.06 (/sw/code/build/nemo(R_ndx))
SNMPv2-SMI::enterprises.11.2.3.7.11.76
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (422942585) 48 days,
22:50:25.85 [...]
meti:~# snmpwalk -v 2c -c public hpclj4550 | head
SNMPv2-MIB::sysDescr.0 = STRING: HP ETHERNET MULTI-ENVIRONMENT,ROM
L.21.21,JETDIRECT,JD84,EEPROM L.21.22,CIDATE 07/06/2001
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.11.2.3.9.1
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (19365160) 2 days,
5:47:31.60 [...]
I've tried to setup a ''net discovery'', but really i've not found a
way to do so: the manual say little or nothing, or at least i don't
understand it.
The i've tried to associate OID and other information to the switch and
printer, eg on the 'FusInv SNMP' page, i setup the 'SNMP models' and
the 'SNMP authentication' (as 'Public community v2c'), then i push
'Update' but nothing happen.
What i'm missing? Really i don't understand how make SNMP work...
please help me... Thanks.
The best way is to do a network discovery, where agent discover and
associate SNMP model if device supported. This task get few
informations of devices, but reuired to identify them.

One you have do this the first time, you will do a network inventory
(SNMP) to get all data of the devices.


To begin, see this is a good beginning.
Marco Gaiarin
2012-07-04 08:46:33 UTC
Permalink
Mandi! David DURIEUX
In chel di` si favelave...
Post by David DURIEUX
The best way is to do a network discovery, where agent discover and
associate SNMP model if device supported. This task get few
I know my devices, so i prefere to enable SNMP on a per-device basis,
while scanning all the network for finding SNMP devices...


Anyway...
Post by David DURIEUX
informations of devices, but reuired to identify them.
One you have do this the first time, you will do a network inventory
(SNMP) to get all data of the devices.
To begin, see this is a good beginning.
0) Ok, on 'Home > Plugins > FusionInventory' i push 'Discover the
network', the radar.

1) then i setup a ip range, for now a subclass of my network (10.19.1.1
-> 10.19.1.254), defining no ''permanent tasks''.
Hit 'Next'.

2) SNMP auth have the predefined public authentication for v1 and v2c,
leave untouched, hit 'Next'.

3) link rules; as in my previous thread i've disabled the last 'Unknown
device import' and created a recipe 'Unknown device with serial'.
Anyway, hit 'Next'.

4) i add a task, name 'Discover test', 'Active' of course 'yes', mode
push, priodicity none; I've leaved 'Definition' and 'Action' as is.
Hit 'Next'.

5) cheched the new task, then hit 'Force start'. Nothing happen, i go
to 'task running result' but the page are empty.


So i go back to 4) and define as 'Definition' the ip ranges defined in
1), and as 'Action' 'Auto management dynamic of agents'.

Same result, nothing happens.
--
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)sv.lnf.it tel +39-0434-842711 fax +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)
David DURIEUX
2012-07-04 08:54:37 UTC
Permalink
Le Wed, 4 Jul 2012 10:46:33 +0200
Post by Marco Gaiarin
Mandi! David DURIEUX
In chel di` si favelave...
Post by David DURIEUX
The best way is to do a network discovery, where agent discover and
associate SNMP model if device supported. This task get few
I know my devices, so i prefere to enable SNMP on a per-device basis,
while scanning all the network for finding SNMP devices...
Anyway...
Post by David DURIEUX
informations of devices, but reuired to identify them.
One you have do this the first time, you will do a network inventory
(SNMP) to get all data of the devices.
To begin, see this is a good beginning.
0) Ok, on 'Home > Plugins > FusionInventory' i push 'Discover the
network', the radar.
1) then i setup a ip range, for now a subclass of my network (10.19.1.1
-> 10.19.1.254), defining no ''permanent tasks''.
Hit 'Next'.
2) SNMP auth have the predefined public authentication for v1 and v2c,
leave untouched, hit 'Next'.
3) link rules; as in my previous thread i've disabled the last 'Unknown
device import' and created a recipe 'Unknown device with serial'.
Anyway, hit 'Next'.
4) i add a task, name 'Discover test', 'Active' of course 'yes', mode
push, priodicity none; I've leaved 'Definition' and 'Action' as is.
Hit 'Next'.
5) cheched the new task, then hit 'Force start'. Nothing happen, i go
to 'task running result' but the page are empty.
So i go back to 4) and define as 'Definition' the ip ranges defined in
1), and as 'Action' 'Auto management dynamic of agents'.
Same result, nothing happens.
Wizard in plugins 0.80+x.x not really good (better in version 0.83+x.x
but not yet released). So try to use menu 'task management'

David
++
Marco Gaiarin
2012-07-04 09:59:08 UTC
Permalink
Mandi! David DURIEUX
In chel di` si favelave...
Post by David DURIEUX
Wizard in plugins 0.80+x.x not really good (better in version 0.83+x.x
but not yet released). So try to use menu 'task management'
Done. I've created a generic task 'network discovery' and two specific
task for a printer an a switch, but both return 'error' with no more
info.

I've also fired up a tshark session on port 161, but there's no request
at all: seems to me that there's some dependencies/tools/... missing,
but nothing appear on logs (apache and GLPI).

Strictly speaking: seems to me that network discovery does nothing.


Some hints on debug?
--
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)sv.lnf.it tel +39-0434-842711 fax +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)
Guillaume Rousse
2012-07-04 11:39:02 UTC
Permalink
Post by Marco Gaiarin
Some hints on debug?
use command-line fusioninventory-netdiscovery, available from the
developement version.
--
If you take more than your fair share of objectives, you will get more
than your fair share of objectives to take
-- Murphy's Military Laws n?45
Marco Gaiarin
2012-07-04 16:04:45 UTC
Permalink
Mandi! Guillaume Rousse
In chel di` si favelave...
Post by Guillaume Rousse
Post by Marco Gaiarin
Some hints on debug?
use command-line fusioninventory-netdiscovery, available from the
developement version.
Need a full GPI setup, or works standalone? I've to stay on 0.80
because i've some plugin dependency lockdown, and really, i've no time
now to setup a test GLPI installation.
--
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)sv.lnf.it tel +39-0434-842711 fax +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)
Guillaume Rousse
2012-07-04 17:28:25 UTC
Permalink
Post by Marco Gaiarin
Mandi! Guillaume Rousse
In chel di` si favelave...
Post by Guillaume Rousse
Post by Marco Gaiarin
Some hints on debug?
use command-line fusioninventory-netdiscovery, available from the
developement version.
Need a full GPI setup, or works standalone? I've to stay on 0.80
because i've some plugin dependency lockdown, and really, i've no time
now to setup a test GLPI installation.
Standalone.

That's the whole purpose of those executables (one for each of
netdiscovery and netinventory): you do not need a GLPI server. You do
need the discovery.xml file shipped in server source, tough.
--
"This won't hurt, I promise
-- Murphy's Laws on Sex n?59
Marco Gaiarin
2012-07-05 12:31:37 UTC
Permalink
Mandi! Guillaume Rousse
In chel di` si favelave...
Post by Guillaume Rousse
Post by Guillaume Rousse
use command-line fusioninventory-netdiscovery, available from the
developement version.
That's the whole purpose of those executables (one for each of
netdiscovery and netinventory): you do not need a GLPI server. You
do need the discovery.xml file shipped in server source, tough.
Agent?! But the ''server'' (GLPI) part use the agent for net/snmp
discovery?!


Eg, i've to install libfusioninventory-agent-task-netdiscovery-perl and
libfusioninventory-agent-task-snmpquery-perl to make it work?

And your repository (http://debian.fusioninventory.org/debian/) are
still on 2.1, not on 2.2...
--
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)sv.lnf.it tel +39-0434-842711 fax +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)
Guillaume Rousse
2012-07-05 14:02:54 UTC
Permalink
Post by Marco Gaiarin
Mandi! Guillaume Rousse
In chel di` si favelave...
Post by Guillaume Rousse
Post by Guillaume Rousse
use command-line fusioninventory-netdiscovery, available from the
developement version.
That's the whole purpose of those executables (one for each of
netdiscovery and netinventory): you do not need a GLPI server. You
do need the discovery.xml file shipped in server source, tough.
Agent?! But the ''server'' (GLPI) part use the agent for net/snmp
discovery?!
I guess you just understood why you didn't achieved anything sofar :)
The server part is just a control and collect point for agent execution,
it doesn't perform any task by itself.
Post by Marco Gaiarin
Eg, i've to install libfusioninventory-agent-task-netdiscovery-perl and
libfusioninventory-agent-task-snmpquery-perl to make it work?
For your original need, yes. To debug the issue using the tools I
mentionned, that's useless, those packages are too old.
Post by Marco Gaiarin
And your repository (http://debian.fusioninventory.org/debian/) are
still on 2.1, not on 2.2...
I explicitely mentioned 'developement version', which is not even
released yet, not even packaged. You can grab it from github:
https://github.com/fusinv/fusioninventory-agent-task-netdiscovery
https://github.com/fusinv/fusioninventory-agent-task-snmpquery
--
Only passengers seated in window seats ever have to get up to go to the
lavatory
-- Murphy's Laws for Frequent Flyers n?7
Marco Gaiarin
2012-07-05 16:23:09 UTC
Permalink
Mandi! Guillaume Rousse
In chel di` si favelave...
Post by Guillaume Rousse
Post by Marco Gaiarin
Agent?! But the ''server'' (GLPI) part use the agent for net/snmp
discovery?!
I guess you just understood why you didn't achieved anything sofar
A-ha! Better later then ever... ;-)))
Post by Guillaume Rousse
:) The server part is just a control and collect point for agent
execution, it doesn't perform any task by itself.
Ok. I've grabbed thru php code, and not founding a single 'exec()'
function i supposed also that GLPI does not exec the agent, but use an
agent (via the internel protocol, via TCP/IP) to do a SNMP discovery.
I have all my agents running on cron, so clearly there's no agent
running. ;)

This indeed explain me the 'Auto management dynamic of agent': by
default GLPI polls for every registered agent and use a random agent to
do discovery (probably to share load). Right?

So i've started the agent as a daemon on the same server that run GLPI
and ''lock'' the agent choice to the only agent running.

Now, if i start a task, at least end with status OK, but still does not
work, eg, there's no SNMP data catched.
A 'discovery' task still does not work (return error).
Post by Guillaume Rousse
I explicitely mentioned 'developement version', which is not even
released yet, not even packaged.
Ok, but windows is just on 2.2: i can use a windows agent to make some
test? I'm a bit scared to do a manual installation...


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)sv.lnf.it tel +39-0434-842711 fax +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)
David DURIEUX
2012-07-08 09:12:26 UTC
Permalink
Le Thu, 5 Jul 2012 18:23:09 +0200
Post by Marco Gaiarin
Mandi! Guillaume Rousse
In chel di` si favelave...
Post by Guillaume Rousse
Post by Marco Gaiarin
Agent?! But the ''server'' (GLPI) part use the agent for net/snmp
discovery?!
I guess you just understood why you didn't achieved anything sofar
A-ha! Better later then ever... ;-)))
Post by Guillaume Rousse
:) The server part is just a control and collect point for agent
execution, it doesn't perform any task by itself.
Ok. I've grabbed thru php code, and not founding a single 'exec()'
function i supposed also that GLPI does not exec the agent, but use an
agent (via the internel protocol, via TCP/IP) to do a SNMP discovery.
I have all my agents running on cron, so clearly there's no agent
running. ;)
This indeed explain me the 'Auto management dynamic of agent': by
default GLPI polls for every registered agent and use a random agent to
do discovery (probably to share load). Right?
It find an agent allowed to do what you want (netdiscovery, network
inventory...)
Post by Marco Gaiarin
So i've started the agent as a daemon on the same server that run GLPI
and ''lock'' the agent choice to the only agent running.
Now, if i start a task, at least end with status OK, but still does not
work, eg, there's no SNMP data catched.
A 'discovery' task still does not work (return error).
What error ?
Post by Marco Gaiarin
Post by Guillaume Rousse
I explicitely mentioned 'developement version', which is not even
released yet, not even packaged.
Ok, but windows is just on 2.2: i can use a windows agent to make some
test? I'm a bit scared to do a manual installation...
So may wait a little
Post by Marco Gaiarin
Thanks.
Marco Gaiarin
2012-07-10 10:24:15 UTC
Permalink
Mandi! David DURIEUX
In chel di` si favelave...
Post by David DURIEUX
Post by Marco Gaiarin
A 'discovery' task still does not work (return error).
What error ?
Classic red rectangle with 'error' inside; no more clue.
Anyway, i've leave the wizard on they own and create a task, and the
task creted manually run, return green rectangle with 'OK'.
Still does nothing, but... ;)))


I will give a try to the development version of the agent, but not now,
i'm busy on other things...
--
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)sv.lnf.it tel +39-0434-842711 fax +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)
Guillaume Rousse
2012-07-10 12:19:51 UTC
Permalink
Post by Marco Gaiarin
I will give a try to the development version of the agent, but not now,
i'm busy on other things...
You need the development version of the netdiscovery and netinventory
tasks, not of the agent. Any stable 2.2.x release is enough.
--
Spray drift is selectively attracted to soybean fields.
-- The Dicamba Dictum
Marco Gaiarin
2012-07-10 16:06:39 UTC
Permalink
Mandi! Guillaume Rousse
In chel di` si favelave...
Post by Guillaume Rousse
You need the development version of the netdiscovery and
netinventory tasks, not of the agent. Any stable 2.2.x release is
enough.
I've tried, but AFAI've understood well, they need the agent perl
modeules to work...

Do you mean:
http://forge.fusioninventory.org/projects/fusioninventory-agent-task-snmpquery/files
and
http://forge.fusioninventory.org/projects/fusioninventory-agent-task-netdiscovery/files

right? I've just tried to download and run the script from here, but
asked me tons of perl library, seems to me cointained on:
http://forge.fusioninventory.org/projects/fusioninventory-agent/files

Sorry...
--
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)sv.lnf.it tel +39-0434-842711 fax +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)
Guillaume Rousse
2012-07-10 16:26:11 UTC
Permalink
Post by Marco Gaiarin
Mandi! Guillaume Rousse
In chel di` si favelave...
Post by Guillaume Rousse
You need the development version of the netdiscovery and
netinventory tasks, not of the agent. Any stable 2.2.x release is
enough.
I've tried, but AFAI've understood well, they need the agent perl
modeules to work...
http://forge.fusioninventory.org/projects/fusioninventory-agent-task-snmpquery/files
and
http://forge.fusioninventory.org/projects/fusioninventory-agent-task-netdiscovery/files
right? I've just tried to download and run the script from here, but
http://forge.fusioninventory.org/projects/fusioninventory-agent/files
If you don't install anything, and you used distinct download
directories, then you have to set your PERL5LIB environment varible to
the 'lib' directory of the agent itself:
export PERL5LIB=/path/to/agent-directory/lib

Note than if 'fusioninventory-agent' is in your path, then
'fusioninventory-agent --setup' should tells you what is this directory
(libdir: ...).
--
Sex is one of the nine reasons for reincarnation; the other eight are
unimportant
-- Murphy's Laws on Sex n?53
Marco Gaiarin
2012-07-11 16:16:57 UTC
Permalink
Mandi! Guillaume Rousse
In chel di` si favelave...
Post by Guillaume Rousse
Post by Marco Gaiarin
Post by Guillaume Rousse
You need the development version of the netdiscovery and
netinventory tasks, not of the agent. Any stable 2.2.x release is
enough.
right? I've just tried to download and run the script from here, but
http://forge.fusioninventory.org/projects/fusioninventory-agent/files
If you don't install anything, and you used distinct download
directories, then you have to set your PERL5LIB environment varible
export PERL5LIB=/path/to/agent-directory/lib
Ok. Ahem, where/how can i download the development version of
netdiscovery and netinventory tasks?
I've downloaded the latest one, but there's only a
'fusioninventory-netinventory' script, there's no a
'fusioninventory-netdiscovery' one.


Sorry, 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)sv.lnf.it tel +39-0434-842711 fax +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)
Guillaume Rousse
2012-07-11 22:00:35 UTC
Permalink
Post by Marco Gaiarin
Mandi! Guillaume Rousse
In chel di` si favelave...
Post by Guillaume Rousse
Post by Marco Gaiarin
Post by Guillaume Rousse
You need the development version of the netdiscovery and
netinventory tasks, not of the agent. Any stable 2.2.x release is
enough.
right? I've just tried to download and run the script from here, but
http://forge.fusioninventory.org/projects/fusioninventory-agent/files
If you don't install anything, and you used distinct download
directories, then you have to set your PERL5LIB environment varible
export PERL5LIB=/path/to/agent-directory/lib
Ok. Ahem, where/how can i download the development version of
netdiscovery and netinventory tasks?
I've downloaded the latest one, but there's only a
'fusioninventory-netinventory' script, there's no a
'fusioninventory-netdiscovery' one.
https://github.com/fusinv/fusioninventory-agent-task-netdiscovery ->
netdiscovery development version
https://github.com/fusinv/fusioninventory-agent-task-snmpquery ->
netinventory development version

I guess a link on those projects web page would help there. Also, we are
currently in the process of merging the two projects in a single one,
which should make documenting and using them easier.
--
The greater the importance of decisions to be made, the larger must be
the committee assigned to make them
-- Murphy's In Laws n?14
Guillaume Rousse
2012-07-12 12:22:17 UTC
Permalink
Post by Guillaume Rousse
I guess a link on those projects web page would help there. Also, we are
currently in the process of merging the two projects in a single one,
which should make documenting and using them easier.
Both plugins merged:
https://github.com/guillomovitch/fusioninventory-agent-task-network
--
One good turn gets most of the blankets
-- Murphy's Laws on Sex n?34
Marco Gaiarin
2012-07-16 14:26:58 UTC
Permalink
Mandi! Guillaume Rousse
In chel di` si favelave...
Post by Guillaume Rousse
https://github.com/guillomovitch/fusioninventory-agent-task-network
Works! Thanks!


Some data in private...
--
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)sv.lnf.it tel +39-0434-842711 fax +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)
Guillaume Rousse
2012-07-16 18:01:34 UTC
Permalink
Post by Marco Gaiarin
Mandi! Guillaume Rousse
In chel di` si favelave...
Post by Guillaume Rousse
https://github.com/guillomovitch/fusioninventory-agent-task-network
Ok, i've run the script against two printer and a switch, with this
mouse:/usr/src/fi/guillomovitch-fusioninventory-agent-task-network-6fa999f# PERL5LIB=/usr/src/fi/guillomovitch-fusioninventory-agent-6e9e57b/lib perl fusioninventory-netinventory --host baleno.sv.lnf.it --model /tmp/5838867.xml > /tmp/baleno.out
Use of uninitialized value in string eq at lib/FusionInventory/Agent/Task/NetInventory.pm line 335.
Use of uninitialized value in string eq at lib/FusionInventory/Agent/Task/NetInventory.pm line 388.
Use of uninitialized value in string eq at lib/FusionInventory/Agent/Task/NetInventory.pm line 393.
mouse:/usr/src/fi/guillomovitch-fusioninventory-agent-task-network-6fa999f# PERL5LIB=/usr/src/fi/guillomovitch-fusioninventory-agent-6e9e57b/lib perl fusioninventory-netinventory --host hpljp2055-3.sv.lnf.it --model /tmp/1701111.xml > /tmp/hpljp2055-3.out
Use of uninitialized value in string eq at lib/FusionInventory/Agent/Task/NetInventory.pm line 335.
Use of uninitialized value in string eq at lib/FusionInventory/Agent/Task/NetInventory.pm line 388.
Use of uninitialized value in string eq at lib/FusionInventory/Agent/Task/NetInventory.pm line 393.
mouse:/usr/src/fi/guillomovitch-fusioninventory-agent-task-network-6fa999f# PERL5LIB=/usr/src/fi/guillomovitch-fusioninventory-agent-6e9e57b/lib perl fusioninventory-netinventory --host himika.sv.lnf.it --model /tmp/J9021A.xml > himika.out
mouse:/usr/src/fi/guillomovitch-fusioninventory-agent-task-network-6fa999f#
Attached the file .out.
Seems that works (eg, some SNMP data are taken), but seems to me a little
''scarce''..
If you don't use models known to perfectly fit your current
hardware/firmware combination, that's the expected result..

The warnings should not happen, tough. Can you open a bug report on the
forge
(http://forge.fusioninventory.org/projects/fusioninventory-agent-task-network/issues),
and attach an snmpwalk output, with numerical Oids (snmpwalk -v 1 -c
<community> -On <host>), for me to reproduce the issue ? Thanks.
Post by Marco Gaiarin
Now? ;-)
Well, either try the community tool for which David posted an
announcement last week, which is supposed to automagically gives you the
exact model you need. Or dig the code to understand how to create the
model yourself, as there is no documentation available.
--
The enemy invariably attacks on two occasions: when they're ready
-- Murphy's Military Laws n?80
Guillaume Rousse
2012-07-09 14:40:57 UTC
Permalink
Post by Marco Gaiarin
Ok, but windows is just on 2.2: i can use a windows agent to make some
test? I'm a bit scared to do a manual installation...
The agent is the same on all platforms, so you can use the one from your
choice.

However, if you want to get a grasp about what's happening, instead of
just getting empty results without feedback, you'd better get the hand a
little dirty:
- use a unix platform to have a confortable environment
- run the agent directly from command line, using the tools I suggested
earlier, rather than from the server
- forget about fancy features such as 'automatic agent management'

BTW, 'installing manually' is just downloading a tar.gz file from the
forge (for the released version), or from github (for the development
version), and decompressing into any suitable directory. You don't even
need to run 'make install', you can run everything right from this
directory.
--
If you must work on your flight, you will experience turbulence as soon
as you touch pen to paper
-- Murphy's Laws for Frequent Flyers n?5
Guillaume Rousse
2012-07-04 08:37:13 UTC
Permalink
Post by Marco Gaiarin
What i'm missing? Really i don't understand how make SNMP work...
please help me... Thanks.
See README files in recent versions of those plugins, and feel free to
contribute better explanations:

https://github.com/fusinv/fusioninventory-agent-task-netdiscovery/blob/master/README
https://github.com/fusinv/fusioninventory-agent-task-snmpquery/blob/master/README
--
BOFH excuse #248:

Too much radiation coming from the soil.
Marco Gaiarin
2012-07-04 09:50:34 UTC
Permalink
Mandi! Guillaume Rousse
In chel di` si favelave...
Post by Guillaume Rousse
See README files in recent versions of those plugins, and feel free
https://github.com/fusinv/fusioninventory-agent-task-netdiscovery/blob/master/README
https://github.com/fusinv/fusioninventory-agent-task-snmpquery/blob/master/README
These mean to me that i've to install nmap, libnet-snmp-perl and
libnet-nbname-perl (the last i think is an option).

But these modules are just installed. See also next message.
--
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)sv.lnf.it tel +39-0434-842711 fax +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)
Guillaume Rousse
2012-07-04 12:48:29 UTC
Permalink
Post by Marco Gaiarin
Mandi! Guillaume Rousse
In chel di` si favelave...
Post by Guillaume Rousse
See README files in recent versions of those plugins, and feel free
https://github.com/fusinv/fusioninventory-agent-task-netdiscovery/blob/master/README
https://github.com/fusinv/fusioninventory-agent-task-snmpquery/blob/master/README
These mean to me that i've to install nmap, libnet-snmp-perl and
libnet-nbname-perl (the last i think is an option).
But these modules are just installed. See also next message.
They are all optional for discovery, you just need at least one of them.

However, only SNMP will be able to provide a reliable identification,
and only if your *exact* combination of hardware/firmware is already
present in the model database, otherwise, you'll just get an unknown
device to import into your inventory, and inventory will be impossible
due to the lack of a suitable SNMP description model.
--
Multiple projects lead to mulitple successes
-- Anti- Murphy's Laws n?3
Marco Gaiarin
2012-07-04 16:07:22 UTC
Permalink
Mandi! Guillaume Rousse
In chel di` si favelave...
Post by Guillaume Rousse
However, only SNMP will be able to provide a reliable
identification, and only if your *exact* combination of
hardware/firmware is already present in the model database,
otherwise, you'll just get an unknown device to import into your
inventory, and inventory will be impossible due to the lack of a
suitable SNMP description model.
I've to verify the exact firmware revision for the switch, but for the
printer seems to me there's an exact match.

But indeed there's no device un ''unknown'' one.
--
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)sv.lnf.it tel +39-0434-842711 fax +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)
Loading...