jackburton79 / ocs-agent

Lite inventory agent (compatibile with ocsinventory-ng and glpi)
GNU General Public License v3.0
15 stars 6 forks source link

Change agent version string #30

Closed jackburton79 closed 5 years ago

jackburton79 commented 6 years ago

Change the agent version string to be unique. It should identify the specific agent and should contain the agent version.

To be able to use a custom version string, one would then need to modify the ocsinventory server configuration, like this:

`# ===== EXTERNAL USERAGENTS =====

Path for external useragents reference file

!! WARNING !! : external agents may not be supported by OCS NG Community !

PerlSetEnv OCS_OPT_EXT_USERAGENTS_FILE_PATH /tmp/yourfile.txt

Ref: https://github.com/OCSInventory-NG/OCSInventory-Server/issues/69

jackburton79 commented 6 years ago

Commit 490f20a841274de9c23f8e87b3280c153c0b752f adds the option to specify a custom agent string. What's still missing is the ability to add the application version to the agent string.

The default agent string will stay as is, for the moment, since changing it would make the default OCSInventory installation not working with this agent.

jackburton79 commented 6 years ago

Added an option to use the new version string (--new-agent-string), which someday could become the default. This option will include the application version in the agent string.