Only thing I want is to inventory my network devices via SNMP without configure each field of information. That is a slave work. Unfortunely GLPI documentation doesnt give a clear example of how to do this. Could you please give me a hand and explain me how to execute a glpi-netinventory scan (for a given host, like 10.7.100.3) and import this information to my GLPI server?
I am using:
glpi-agent_1.6.1
glpi-agent-task-network_1.6.1
OS: Ubuntu 20.04
Server: glpi-10.0.10
Aditional info: The agent is installed on same GLPI server and the server has access to isolated network for network devices, through VPN. Network devices are under 10.7.100.0/24, while GLPI server is glpi.ecasa.avianet.cu. The agent config is as follow:
Theglpi-netdiscovery does not create the folder netinventory inside the glpi-agent config directory. It just created the netdiscovery folder. Your first command with netinventory does not create a netinventory folder, it just create a file specified for output. In my case:
It only created the file 10.7.100.3.xml on your root directory, not inside the agent folder as expected (it can be fixed specifying the complete path, but you still have to create the netinventory folder first)
Anyway, the output of the previous command is as follow:
[debug] Current netinventory run expiration timeout: 1.0 hour
[debug] using 1 netinventory worker
[debug] #1, full snmp scan of 10.7.100.3 with credentials 1
[debug] #1, full match for sysobjectID .1.3.6.1.4.1.2011.10.1.43 in database
Only thing I want is to inventory my network devices via SNMP without configure each field of information. That is a slave work. Unfortunely GLPI documentation doesnt give a clear example of how to do this. Could you please give me a hand and explain me how to execute a
glpi-netinventory
scan (for a given host, like10.7.100.3
) and import this information to my GLPI server?I am using:
glpi-agent_1.6.1
glpi-agent-task-network_1.6.1
Ubuntu 20.04
glpi-10.0.10
10.7.100.0/24
, while GLPI server is glpi.ecasa.avianet.cu. The agent config is as follow:The
glpi-netdiscovery
does not create the foldernetinventory
inside the glpi-agent config directory. It just created thenetdiscovery
folder. Your first command withnetinventory
does not create anetinventory
folder, it just create a file specified for output. In my case:Created the file
10.7.100.3.xml
Its contents is as follow:
But when used
glpi-netinventory
command:It only created the file
10.7.100.3.xml
on your root directory, not inside the agent folder as expected (it can be fixed specifying the complete path, but you still have to create thenetinventory
folder first)Anyway, the output of the previous command is as follow:
When you check the file
10.7.100.3.xml
, is empty.I can execute an snmpwalk to the network device:
The output is as follow:
Trying again with glpi-netinventory command, this time more simple:
The output show error communication via SNMP using the agent:
Why is not working the netinventort using the agent, when snmpwalk is able to query the remote network device using this protocol?
Originally posted by @Franco-Sparrow in https://github.com/glpi-project/glpi-agent/issues/205#issuecomment-1858868828