Windows installer
By default, the installer will bring you to the graphical user interface unless you use the /i /quiet options, calling it from command line.
GLPI-Agent-1.8-x64.msi /quiet SERVER=<URL>
or:
msiexec /i GLPI-Agent-1.8-x64.msi /quiet SERVER=<URL>
All options can be defined in several places; the last taking precedence on all others:
default values,
values from the current GLPI Agent installation,
values from the command line,
values from the graphical installer.
Note
When using command line parameters, you should keep in mind:
parameters beggining with a slash are indeed
msiexec.exeoptions,an equal sign is always required for other parameters:
TAG=prod,options names are case-sensitive,
options values are not case-sensitive, unless specified,
the equal sign must not be preceded or followed with a space character:
LOCAL = C:\tempis incorrect,if a value contains a space, it must be surrounded with single
'or double quotes",if you want to set a empty value, put an empty string (
LOCAL=orLOCAL="").
Attention
Don't use PowerShell as commandline interpreter: it changes some environment context the installer doesn't handle well.
Command line parameters
/iSpecify this is a normal installation. This is indeed a
msiexec.exeoption.When used with
msiexec.exe, it must be used just before the MSI package path./quietSilent installation. This is indeed a
msiexec.exeoption. (By default: No)ADD_FIREWALL_EXCEPTION=1Adds GLPI Agent to the Windows Firewall exception list. (By default:
0for No)ADDITIONAL_CONTENT=filename(needs MSI installer >= 1.3)Specifies an XML file whose content will be automatically merged with output. If inventory format is JSON, you can also specify a JSON file from which
contentbase node will be merged. (By default: empty)ADDLOCAL=feature[,feature[...]]This parameter permits to select features to install. (By default: empty string)
The feature can take the following values:
ALL: All included tasks are selected for installationfeat_AGENT: to restrict to the minimum installation with agent and Inventory taskfeat_NETINV: to select NetDiscovery and NetInventory tasks for installationfeat_DEPLOY: to select Deploy task for installationfeat_COLLECT: to select Collect task for installationfeat_WOL: to select WakeOnLan task for installation
The base feature is
feat_AGENTwhich is always selected and includes Inventory task. Since v1.8, no other task is selected by default.
AGENTMONITOR=1(needs MSI installer >= v1.5)Install Glpi-AgentMonitor (See GLPI-Agent Monitor project).
Only applicable if GLPI-Agent is installed as a service (i.e.
EXECMODE=1).AGENTMONITOR_NEWTICKET_URL=URL(needs MSI installer >= v1.8)Sets Glpi-AgentMonitor URL for new ticket feature. (By default: empty string)
You only need to set this URL if the Glpi-AgentMonitor guessed one is not the expected one.
Only applicable if GLPI-Agent is installed as a service and Glpi-AgentMonitor installed (i.e.
EXECMODE=1andAGENTMONITOR=1).BACKEND_COLLECT_TIMEOUT=180Timeout for task
Inventorymodules execution. (By default:180seconds)It is also used as based timeout for
RemoteInventorytimeouts computation. You may experience datas loss duringRemoteInventorytask if this value is too short.CA_CERT_DIR=pathnameAbsolute path to the standard certificate directory of certificate authorities (CA). (By default: empty)
The use of this parameter is incompatible with the use of the
CA_CERT_FILEparameter. TheCA_CERT_DIRandCA_CERT_FILEparameters are mutually exclusive.A standard certificate directory must contain the certificate files corresponding to different certificate authorities in Privacy Enhanced Mail (PEM) format, and their names must correspond to the hash value of the certificate's subject field, with extension
.0.For example, if you want to include the certificate file FICert_Class1.crt in the directory pathname, you must calculate the hash value of the certificate's subject field using, for example, OpenSSL
C:\> openssl.exe x509 -in C:\FICert_Class1.crt -subject_hash -noout b760f1ce
and afterwards, move or copy the certificate file to the directory pathname with the name
b760f1ce.0.move.exe C:\FICert_Class1.crt pathname\b760f1ce.0CA_CERT_FILE=filenameFull path to the certificates file of certification authorities (CA). (By default: empty)
The use of this parameter is incompatible with the use of the
CA_CERT_DIRparameter. TheCA_CERT_DIRandCA_CERT_FILEparameters are mutually exclusive.filename must have extension
.pem(Privacy Enhanced Mail) and can contain one or more certificates of certificate authorities. To concatenate multiple certificate files into one file you can make use, for example, of the command copy.copy.exe FICert_Class1.crt+FICert_Class2.crt FICerts.pemDEBUG=levelSets the debug level of the agent. (By default:
0)level can take one of the following values:
0: Debug off1: Normal debug2: Full debug
DELAYTIME=limitSets an initial delay before first contact with a remote destination (see
SERVER). This delay is calculated at random between limit/2 and limit seconds. (Default:3600seconds)This parameter is ignored for remote destinations after the first contact with each one, in favor of the specific server parameter (PROLOG_FREQ or Contact expiration).
The
DELAYTIMEparameter comes into play only if GLPI Agent runs in server mode (seeEXECMODE).EXECMODE=valueSets the agent execution mode. (By default:
1)mode can take one of the following values:
1forService: The agent runs as a Windows Service (always running)2forTask: The agent runs as a Windows Task (runs at intervals)3forManual: The agent doesn't run automatically (noService, noTask)
The mode
Serviceis known also as server mode.The mode
Taskis only available on Windows XP (or higher) and Windows Server 2003 (or higher) operative systems.FULL_INVENTORY_POSTPONE=value`(needs MSI installer >= v1.8)Sets the expected number of full inventory postpone. (By default:
14)See full-inventory-postpone configuration for more details.
HTML=1Save the inventory as HTML instead of XML or JSON. (By default:
0for No)The
HTMLparameter comes into play only if you have also indicated a value for theLOCALparameter.HTTPD_IP=ipIP address by which the embedded web server should listen. (By default:
0.0.0.0)HTTPD_PORT=portIP port by which the embedded web server should listen. (By default:
62354)HTTPD_TRUST={ip|range|hostname}[,{ip|range|hostname}[...]]Trusted IP addresses that do not require authentication token by the integrated web server. (By default: 127.0.0.1/32)
ip is an IP address in dot-decimal notation (ex. "127.0.0.1") or in CIDR notation (ex. "127.0.0.1/32")
range is an IP address range in dot-decimal notation (ex. "192.168.0.0 - 192.168.0.255" or "192.168.0.0 + 255") or in CIDR notation (ex. "192.168.0.0/24")
hostname is the name of a host (ex. "itms.acme.org")
Keep in mind that
HTTPD_TRUSTdoes not have to include the hostname part of those URIs that are set up inSERVERbecause they are tacitly included. The following is an example, both configurations are equal:... HTTPD_TRUST="127.0.0.1/32,itms.acme.org" \ SERVER="http://itms.acme.org/glpi/"
... HTTPD_TRUST="127.0.0.1/32" \ SERVER="http://itms.acme.org/glpi/"
INSTALLDIR=pathnameSets the installation base directory of the agent. (By default:
C:\Program Files\GLPI-Agent)pathname must be an absolute path.
JSON=0(needs MSI installer >= 1.3)Don't save the local inventory as JSON instead of XML. (By default:
1for Yes)The
JSONparameter comes into play only if you have also indicated a value for theLOCALparameter.LAZY=1Contact server only if the server expiration delay has been reached. (By default:
1)This option is only used if you set
EXECMODE=2to use Windows Task scheduling.LISTEN=1(needs MSI installer >= 1.3)Force agent to always listen for requests on httpd interface, even when no target is defined with server or local option. (By default:
0for No)Very useful in combination with Inventory Server plugin.
LOCAL=pathnameWrites the results of tasks execution into the given directory. (By default: empty)
You must indicate an absolute pathname or an empty string (""). If you indicate an empty string, the results of tasks execution will not be written locally.
You can use the
LOCALandSERVERoptions simultaneously.LOGFILE=filenameWrites log messages into the file filename. (By default:
C:\Program Files\GLPI-Agent\logs\glpi-agent.log)You must indicate a full path in filename. The
LOGFILEparameter comes into play only if you have also indicatedfileas a value of theLOGGERparameter, which is the default.LOGFILE_MAXSIZE=sizeSets the maximum size of logfile (see
LOGFILE) to size in MBytes. (By default: 4 MBytes)LOGGER=backend[,backend]Sets the logger backends. (By default:
file)backend can take any of the following values:
file: Sends the log messages to a file (seeLOGFILE)stderr: Sends the log messages to the console
NO_CATEGORY=category[,category[...]]Do not inventory the indicated categories of elements. (By default: empty)
category can take any value listed by the following command:
"C:\Program Files\GLPI-Agent\glpi-agent" --list-categoriesNO_COMPRESSION=1(needs MSI installer >= 1.3)Disable compression when exchanging informations with GLPI Server. (By default:
0)NO_HTTPD=1Disables the embedded web server. (By default:
0)NO_P2P=1Do not use peer to peer to download files. (By default:
0)NO_SSL_CHECK=1Do not check server certificate. (By default:
0)NO_TASK=task[,task[...]]Disables the given tasks. (By default: empty)
task can take any of the following values:
Deploy: Task DeployESX: Task ESXInventory: Task InventoryNetDiscovery: Task NetDiscoveryNetInventory: Task NetInventoryWakeOnLan: Task WakeOnLan
If you indicate an empty string (""), all tasks will be executed.
PASSWORD=passwordUses password as password for server authentication. (By default: empty)
The
PASSWORDcomes into play only if you have also indicated a value for theSERVERparameter.PROXY=URIUses URI as HTTP/S proxy server. (By default: empty)
QUICKINSTALL=1Don't ask for detailed configurations during graphical install. (By default:
0)REINSTALL=feat_AGENTUse this option only in the case you need to change the agent configuration using the same installer. (Not used by default)
REMOTE=remote:definition(needs MSI installer >= 1.3)Specify a remote inventory definition to be used by Remote inventory task. (By default: empty)
REMOTE_WORKERS=max(needs MSI installer >= v1.5)Set the maximum number of remote inventory to process at the same time. (By default:
1)RUNNOW=1Launches the agent immediately after its installation. (By default:
0)SCAN_HOMEDIRS=1Allows the agent to scan home directories for virtual machines. (By default:
0)SCAN_PROFILES=1Allows the agent to scan softwares installed in users profiles. (By default:
0)SERVER=URI[,URI[...]]Sends results of tasks execution to given servers. (By default: empty)
If you indicate an empty string (""), the results of tasks execution will not be written remotely.
You can use the
SERVERandLOCALparameters simultaneously.SNMP_RETRIES=max(needs MSI installer >= v1.9)Set the maximum number of time a SNMP request could be retried again on no device response. (By default:
0)Only used by NetDiscovery and NetInventory tasks.
SSL_CERT_FILE=filename(needs MSI installer >= 1.3)Specifies the file containing SSL client certificate to use when connecting to server target or for WinRM remote inventory. (By default: empty)
SSL_FINGERPRINT=fingerprint(needs MSI installer >= 1.3)Specifies the fingerprint of the ssl server certificate to trust.
The fingerprint to use can be retrieved in agent log by temporarily enabling no-ssl-check option.
TAG=tagMarks the computer with the tag tag . (By default: empty)
TASKS=task[,task[,...]]Plan tasks in the given order. (By default: empty)
Not listed tasks won't be planned during a run, unless
,...is specified at the end.task can take any of the following values:
Deploy: Task DeployESX: Task ESXInventory: Task InventoryNetDiscovery: Task NetDiscoveryNetInventory: Task NetInventoryWakeOnLan: Task WakeOnLan
If you indicate an empty string (""), all tasks will be executed. If you indicate
,...at the end, all not listed tasks will be added in any order. You can indicate a task more than one time if this makes sens.TASK_DAILY_MODIFIER=modifierDaily task schedule modifier. (By default:
1day)modifier can take values between 1 and 365, both included.
The
TASK_DAILY_MODIFIERparameter comes into play only if you have also indicateddailyas value of theTASK_FREQUENCYoption.TASK_FREQUENCY=frequencyFrequency for task schedule. (By default:
hourly)frequency can take any of the following values:
minute: At minute intervals (seeTASK_MINUTE_MODIFIERparameter)hourly: At hour intervals (seeTASK_HOURLY_MODIFIERparameter)daily: At day intervals (seeTASK_DAILY_MODIFIERparameter)
TASK_HOURLY_MODIFIER=modifierHourly task schedule modifier. (By default:
1hour)modifier can take values between 1 and 23, both included.
The
TASK_HOURLY_MODIFIERparameter comes into play only if you have also indicatedhourlyas value of theTASK_FREQUENCYparameter.TASK_MINUTE_MODIFIER=modifierMinute task schedule modifier. (By default:
15minutes)modifier can take the any value from 1 to 1439.
The
TASK_MINUTE_MODIFIERparameter comes into play only if you have also indicatedminuteas value of theTASK_FREQUENCYparameter.TIMEOUT=180Sets the limit time (in seconds) to connect with the server. (By default:
180seconds)The
TIMEOUTparameter comes into play only if you have also indicated a value for theSERVERparameter.USER=userUses user as user for server authentication. (By default: empty)
The
USERparameter comes into play only if you have also indicated a value for theSERVERparameter.VARDIR=pathnameSets the vardir base directory of the agent. (By default:
C:\Program Files\GLPI-Agent\var)This parameter can be used when the agent is installed in a shared storage.
pathname must be an absolute path.