FUSION...Y-AGENT(1p)
π FUSIONINVENTORY-AGENT β the 1p page, User Contributed Perl Documentation section π
okay so bestie, you're looking at FUSIONINVENTORY-AGENT(1p) β yes it lives in the User Contributed Perl Documentation section, iconic, no notes. Let's get into it π
β¨ NAME β¨
fusioninventory-agent β the FusionInventory agent, and it's out here doing the absolute most for Linux/UNIX and Windows and MacOSX π literally all the platforms, she contains multitudes π
π¦ SYNOPSIS π¦
fusioninventory-agent [options] [--server server|--local path]
Target definition options
-s --server=URI send tasks result to a server
-l --local=PATH write tasks results locally
Target scheduling options
--delaytime=LIMIT maximum delay before first target,
in seconds (3600). It also defines the
maximum delay on network error. Delay on
network error starts from 60, is doubled at
each new failed attempt until reaching max
--lazy do not contact the target before
next scheduled time
--set-forcerun set persistent state 'forcerun' option so a run
will be started immediately during a start or init
Task selection options
--list-tasks list available tasks and exit
--no-task=TASK[,TASK]... do not run given task
--tasks=TASK1[,TASK]...[,...] run given tasks in given order
Inventory task specific options
--no-category=CATEGORY do not list given category items
--scan-homedirs scan user home directories (false)
--scan-profiles scan user profiles (false)
--html save the inventory as HTML (false)
-f --force always send data to server (false)
--backend-collect-timeout=TIME timeout for inventory modules
execution (30)
--additional-content=FILE additional inventory content file
Package deployment task specific options
--no-p2p do not use peer to peer to download
files (false)
Network options
-P --proxy=PROXY proxy address
-u --user=USER user name for server authentication
-p --password=PASSWORD password for server authentication
--ca-cert-dir=DIRECTORY CA certificates directory
--ca-cert-file=FILE CA certificates file
--no-ssl-check do not check server SSL certificate
(false)
-C --no-compression do not compress communication with server
(false)
--timeout=TIME connection timeout, in seconds (180)
Web interface options
--no-httpd disable embedded web server (false)
--httpd-ip=IP network interface to listen to (all)
--httpd-port=PORT network port to listen to (62354)
--httpd-trust=IP trust requests without authentication
token (false)
--listen enable listener target if no local or
server target is defined
Logging options
--logger=BACKEND logger backend (stderr)
--logfile=FILE log file
--logfile-maxsize=SIZE maximum size of the log file in MB (0)
--logfacility=FACILITY syslog facility (LOG_USER)
--color use color in the console (false)
Configuration options
--config=BACKEND configuration backend
--conf-file=FILE configuration file
--conf-reload-interval=<SECONDS> number of seconds between two
configuration reloadings
Execution mode options
-w --wait=LIMIT maximum delay before execution,
in seconds
-d --daemon run the agent as a daemon (false)
--no-fork don't fork in background (false)
-t --tag=TAG add given tag to inventory results
--debug debug mode (false)
--setup print the agent setup directories
and exit
--version print the version and exit
--no-win32-ole-workaround [win32 only] disable win32 work-around
used to better handle Win32::OLE apis.
!!! Use it at your own risk as you may
experiment perl crash under win32 !!!
πΈ DESCRIPTION πΈ
So the fusioninventory-agent agent? It's a generic multi-platform agent, and she is versatile bestie. Like, she can perform a large array of management tasks β local inventory, software deployment, network discovery, the whole lineup π
You can run her standalone (solo main character energy, no server needed, periodt) or you can pair her up with a compatible server β think OCS, GLPI, OTRS β where that server acts as your centralized control point π
fr fr, that's the vibe. The options are where it gets juicy, and there's a LOT of them, so stay tuned π«Ά
βοΈ OPTIONS βοΈ
okay bestie, most of these come in a short form and a long form, and they're literally just vibes of each other. watch:
% fusioninventory-agent -s localhost
% fusioninventory-agent --server localhost
same thing. twins. π
π― Target definition options
-s,--server=URIβ sends the results of your task execution to the given server, periodt.
if the URI doesn't start with http:// or https://, the agent is like "ok that's a hostname bestie" and rewrites it as:
% --server=http://example/plugins/fusioninventory
and generally the OCS Inventory server URL looks like this:
http://example/ocsinventory
while FusionInventory for GLPI is giving this one:
http://example/glpi/plugins/fusioninventory/front/plugin_fusioninventory.communication.php
you can drop multiple values in there, separated by commas. β¨
-l,--local=PATHβ writes the results of task execution locally instead. exact behaviour depends on the path you hand it:- if
PATHis a directory, a file will be created therein π - if
PATHis a file, it will be used directly - if
PATHis-, STDOUT will be used
- if
multiple values can be specified, using comma as a separator.
β° Target scheduling options
--delaytime=LIMITβ sets an initial delay before the first target, and the value is computed randomly betweenLIMIT / 2andLIMITseconds. ngl this setting is ignored for server targets after the initial contact, in favor of the server-specified parameter (PROLOG_FREQ).--lazyβ do not contact the target before the next scheduled time. lowkey the chillest option here.
this option is only available when the agent is not run as a server. π«Ά
π Task selection options
--list-tasksβ lists all available tasks, plus the tasks planned for execution, and exits. iconic for peekers.--no-task=TASKβ do not run the given task.
multiple values can be specified, using comma as a separator. check out option --list-tasks for the list of available tasks.
--tasks=TASKβ run the given tasks in the given order.
multiple tasks can be specified, using comma as a separator. a task can be specified several times. if '...' is given as the last element, all other available tasks are executed.
see option --list-tasks for the list of available tasks.
examples, bestie:
--tasks=inventory,deploy,inventory
first task executed is 'inventory', second task is 'deploy', third and last task is 'inventory'.
--tasks=inventory,deploy,...
first executed task is 'inventory', second task is 'deploy', and then all other available tasks are executed.
π Inventory task specific options
--no-category=CATEGORYβ do not list the given category items in the inventory.
multiple values can be specified, using comma as a separator. the available categories are:
batterycontrollercpudriveenvironmentinputlicenselocal_grouplocal_userlvmmemorymodemmonitornetworkprinterprocessslotsoftwaresoundstorageusbuservideovirtualmachine
--scan-homedirsβ allows the agent to go snooping in home directories for virtual machines. π΅οΈ--scan-profilesβ allows the agent to scan user profiles for software.--htmlβ saves the inventory as HTML. β¨
this is only used for local inventories.
-f,--forceβ sends an inventory to the server, even if this last one doesn't ask for it. yes she's that girl, she doesn't wait to be asked. π--backend-collect-timeout=TIMEβ timeout for inventory modules execution.--additional-content=FILEβ additional inventory content file.
this file should be an XML file, using same syntax as the one produced by the agent.
π¦ Package deployment task specific options
--no-p2pβ do not use peer to peer to download files.
π₯οΈ Server target specific options
-P,--proxy=PROXYβ usePROXYas HTTP proxy.
by default, the agent uses the HTTP_PROXY environment variable.
-u USER,--user=USERβ useUSERfor server authentication.-p,--password=PASSWORDβ usePASSWORDfor server authentication. π keep it secret, keep it safe.--ca-cert-dir=DIRECTORYβ CA certificates directory.--ca-cert-file=FILEβ CA certificates file.--no-ssl-checkβ do not check server SSL certificate.
bestieβ¦ skipping the SSL check is giving reckless. fine for testing, not for main character security. π
--timeout=TIMEβ timeout for server connections.
π Web interface options
--no-httpdβ disables the embedded web server.--httpd-ip=IPβ the network interface to use for the embedded web server (all).--httpd-port=PORTβ the network port to use for the embedded web server (62354).--httpd-trust=IPβ trust requests from the given addresses without an authentication token (false).
for example: "192.168.0.0/24", "192.168.168.0.5" or an IP range like "20.34.101.207 - 201.3.9.99". hostnames are also accepted. see Net::IP documentation to get more examples.
multiple values can be specified, using comma as a separator.
--listenβ this option should be used if no local or server target is defined and the agent still needs to answer http requests.--no-httpdshould not be set and--httpd-trustshould be set to enable trusted remote clients.
π Logging options
--logger=BACKENDβ the logger backend to use.
multiple values can be specified, using comma as a separator. the available backends are:
stderr: log messages directly in the console.file: log messages in a file.syslog: log messages through the local syslog server.
multiple values can be specified, using comma as a separator.
--logfile=FILEβ log messages inFILE(implies File logger backend).--logfile-maxsize=SIZEβ max logfile size in MB, default is unlimited. when the max size is reached, the file is truncated. ngl this is only useful if there's no log rotation mechanism on the system.--logfacility=FACILITYβ syslog facility to use (defaultLOG_USER).--colorβ displays color on the terminal, when the Stderr backend is used. π
this option is ignored on Windows.
π οΈ Configuration options
--config=BACKENDβ the configuration backend to use.
the available backends are:
file: read configuration from a file (default anywhere else as Windows).registry: read configuration from the registry (default on Windows).none: don't read any configuration.
--conf-file=FILEβ useFILEas configuration file (implies file configuration backend).--conf-reload-interval=SECONDSβSECONDSis the number of seconds between two configuration reloadings. default value is0, which means that configuration is never reloaded. minimum value is60. if the given value is less than this minimum, it is set to this minimum. if the given value is less than0, it is set to0.
π Execution mode options
-w LIMIT,--wait=LIMITβ wait a random delay whose value is computed randomly between0andLIMITseconds, before execution. this is useful when execution is triggered from some kind of system scheduling on multiple clients, to spread the server load. very thoughtful, very considerate. π«Ά-d,--daemonβ run the agent as a daemon.--no-forkβ don't fork in background.
this is only useful when running as a daemon.
--pidfile[=FILE]β store pid inFILEor in the default PID file.
this is only useful when running as a daemon and still not managed with a system service manager like systemd.
--tag=TAGβ add the given tag to every inventory result.--debugβ turn the debug mode on. you can use the parameter up to 3 times in a row to increase the verbosity (e.g:--debug --debug).
level 3 turns on the debug mode of some external libraries like Net::SSLeay. these messages will only be printed on STDERR. π
--setupβ print the agent setup directories and exit.--versionβ print the version and exit.
and that's a wrap bestie!! π this whole page is from perl v5.38.2, dated 2024-05-15, and it's the FusionInventory agent manual you just absolutely ate. go forth and inventory literally everything. no cap. ππ
π¦ where this page comes from
- debian trixie: fusioninventory-agent 1:2.6-4 Β· GPL-2.0-or-later
- ubuntu resolute: fusioninventory-agent 1:2.6-4 Β· GPL-2.0-or-later
- ubuntu stonking: fusioninventory-agent 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