For quite a long time now the ocs-ng agent version 2.1.1.1 is production running. We encountered a few problems with it (for example not displaying notification message text to user when installing software) and decided to upgrade our agents to new version numbered 2.1.1.3. New version apparently have this fixed, since on multiple test computers the message text was displayed properly. Thus, we have decided to upgrade.

In order to upgrade the agent, you need to:

  • create a new package for deployment
  • download latest version of ocs-ng agent
  • fine tune command to install agent

Assuming you already now how to deploy software using OCS and know what is the difference between “LAUNCH” and “EXECUTE” actions I will just provide essential information.

First, download new version of agent from http://www.ocsinventory-ng.org/en/ and extract OCS-NG-Windows-Agent-Setup.exe file from the archive. Then, zip it again but double check if it is zipped in root of archive, not in directory inside it.

Then fine-tune your install command for upgrade.

Mine is :

Switches are:

/S – silent

/UPGRADE – tells the installer that it is an upgrade, so stop OCS service and store success code

/NOSPLASH – do not display OCS splash message

/NO_SYSTRAY – keep OCS hidden from system tray

/NOW – run inventory after installation (sometimes it doesn’t work)

/SSL=1 – Keep SSL turned on

/SERVER – fully qualifed domain name of server with HTTPS prefix

Select Execute action

This should look like:

Click Send button, activate the package and affect computers.

Keep in mind, that this package WILL update the agent upon next inventory cycle (in our environment it is 1 hour) and will report back on NEXT cycle. So be patient. After upgrading, agent will not contact server before on it’s own.

You could of course build a small .bat file, that executes upgrade, then run inventory but this is a bit overkill for such a small change.

Ok, that’s all, pretty easy, huh?