--v1 and --v2c options are available since glpi-agent 1.5

--backend-collect-timeout option is available since glpi-agent 1.6


glpi-netinventory - Standalone network inventory


glpi-netinventory [options] [--host <host>|--file <file>]

  --host <HOST>          target host
  --port <PORT[,PORT2]>  SNMP port (161)
  --protocol <PROT[,P2]> SNMP protocol/domain (udp/ipv4)
  --file <FILE>          snmpwalk output file
  --community <STRING>   community string (public)
  --credentials <STRING> SNMP credentials (version:1,community:public)
  --timeout <TIME>       SNMP timeout, in seconds (15)
  --backend-collect-timeout <TIME>
                         base expiration timeout, in seconds (180)
  --type <TYPE>          force device type
  --threads <COUNT>      number of inventory threads (1)
  --control              output control messages
  --debug                debug output
  -h --help              print this message and exit
  --version              print the task version and exit


glpi-netinventory can be used to run a network inventory task without a GLPI server.


--host HOST

Run an online inventory against given host. Multiple usage allowed, for multiple hosts.

--port PORT[,PORT2]

List of ports to try, defaults to: 161

Set it to 161,16100 to first try on default port and then on 16100.


List of protocols to try, defaults to: udp/ipv4

Possible values are: udp/ipv4,udp/ipv6,tcp/ipv4,tcp/ipv6

--file FILE

Run an offline inventory against snmpwalk output, stored in given file. Multiple usage allowed, for multiple files.

--communty STRING

Use given string as SNMP community (assume SNMPv1)


Use SNMP v1. This is the default.


Use SNMP v2c.

--credentials STRING

Use given string as SNMP credentials specification. This specification is a comma-separated list of key:value authentication parameters, such as:

  • version:2c,community:public

  • version:3,username:admin,authpassword:s3cr3t,privpassword:s3cr3t

  • etc.

Supported keys are:

  • version with value set to 1, 2c or 3

In the case version is set to 1 or 2c:

  • community

In the case version is set to 3:

  • username (required)

  • authpassword

  • authprotocol with value set to md5 (the default if not set) or sha

  • privpassword (required if authpassword is set)

  • privprotocol with value set to des (the default if not set), aes or 3des

--timeout TIME

Set SNMP timeout, in seconds.

--backen-collect-timeout TIME

Set base expiration timeout, in seconds. It is used to set one device scan: 180 by default, means 900 (5x180) by device.

--type TYPE

Force device type, instead of relying on automatic identification. Currently allowed types:







--threads count

Use given number of inventory threads.


Output server-agent control messages, in addition to inventory result itself.


Turn the debug mode on. Multiple usage allowed, for additional verbosity.


Run an inventory against a network device, using SNMP version 2c authentication:

$> glpi-netinventory --host --credentials version:2c,community:public

Run an inventory against a network device, using SNMP version 3 authentication and forcing its type:

$> glpi-netinventory --host my.device --type NETWORKING \
--credentials version:3,username:admin,authpassword:s3cr3t,privpassword:s3cr3t