FUSIONI...VENTORY(1p)
π fusioninventory-netinventory(1p) π
okay bestie, sit down, hydrate, because we're about to learn the standalone network inventory tool and honestly? it ate. β¨
this is a User Contributed Perl Documentation page for the 1p manual section, and it's literally your girl fusioninventory-netinventory. no GLPI server required, we're going rogue (respectfully). π¦
β¨ NAME β¨
fusioninventory-netinventory β Standalone network inventory π
πΈ SYNOPSIS πΈ
fusioninventory-netinventory [options] [--host <host>|--file <file>]
Options:
--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)
--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
like, yes, that's the whole vibe check in one code block. copy it, don't touch it, it's perfect. π
π DESCRIPTION π
fusioninventory-netinventory can be used to run a network inventory task without a GLPI server.
that's it. that's the pitch. no server, no problem, main character energy. π
π«Ά OPTIONS π«Ά
--host HOSTβ run an online inventory against the given host. you can use this multiple times if you've got multiple hosts, because why settle for one. β¨--port PORT[,PORT2]β the list of ports to try, and it defaults to:161
set it to 161,16100 to first try the default port and then try 16100. yes, it tries them in order, it's polite like that. π
--protocol PROTOCOL[,PROTOCOL2]β the list of protocols to try, defaulting to:udp/ipv4
possible values are: udp/ipv4,udp/ipv6,tcp/ipv4,tcp/ipv6 β pick your fighter. π
--file FILEβ run an offline inventory againstsnmpwalkoutput stored in the given file. multiple usage allowed, for multiple files. ngl this is the cozy offline mode. π--communty STRINGβ use the given string as the SNMP community (this assumes SNMPv1).
bestie, real talk: the flag is spelled--communtyin this manual, missing ani, and no we are not fixing it. it's iconic, it's canon, we leave it exactly as written. don't come for me. π
--credentials STRINGβ use the given string as an SNMP credentials specification. this spec is a comma-separated list ofkey:valueauthentication parameters, such as:version:2c,community:publicversion:3,username:admin,authprotocol:sha,authpassword:s3cr3tetc.
the way that's just a little config language inside one flagβ¦ obsessed. π
--timeout TIMEβ set the SNMP timeout, in seconds. no default listed here in the options, but the synopsis above says(15), so. you know. iykyk. β--type TYPEβ force the device type instead of letting it do its little automatic identification thing. currently allowed types are:COMPUTERNETWORKINGPRINTERSTORAGEPOWERPHONE
pick one, be decisive, slay. π₯
--threads countβ use the given number of inventory threads. parallelize, queen. πΈ--controlβ output server-agent control messages in addition to the inventory result itself. bonus content fr fr. π--debugβ turn debug mode on. multiple usage allowed, for additional verbosity. yes you can stack it. yes that's a little unhinged. no you don't have to. π
π§ EXAMPLES π§
run an inventory against a network device, using SNMP version 2c authentication:
$> fusioninventory-netinventory --host 192.168.0.1 \
--credentials version:2c,community:public
run an inventory against a network device, using SNMP version 3 authentication and forcing its type:
$> fusioninventory-netinventory --host my.device --type NETWORKING \
--credentials version:3,username:admin,authprotocol:sha,authpassword:s3cr3t
look at those backslashes. look at that indentation. immaculate. no cap. πβ¨
okay so that's genuinely everything, bestie. go inventory something. π
this page was brought to you by perl v5.38.2 and dated 2024-05-15, and yes that's your footer energy, we're mentioning it here instead of copying a boring line at the bottom. bye bestie!! ππ¦π
π¦ where this page comes from
- debian trixie: fusioninventory-agent-task-network 1:2.6-4 Β· GPL-2.0-or-later
- ubuntu resolute: fusioninventory-agent-task-network 1:2.6-4 Β· GPL-2.0-or-later
- ubuntu stonking: fusioninventory-agent-task-network 1:2.6-4 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms