Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.11.1 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

force remote inventory

Hi, ocsinventory very good program. Meets our requirements. But I'm having some problems.all inventory information in the first installation came to the server, but the changes are not transferred. Now it doesn't seem to do anything. How can I force the inventory? This is a very important problem. Otherwise, it's like manual, the fact that we have an agent doesn't mean anything.

help please

regards
in OCS Inventory NG agent for Windows by (130 points)

2 Answers

+1 vote

Hi @nalan,

By default, the OCS agent send an inventory every 24 hours if it is powered on and connected to the network :

This period can be changed in OCSReports (PROLOG_FREQ in Config > Config > Server)
> for example: every hour - be careful not to saturate the server if you have many machines)

On Windows (x64) client machine, you can also force the inventory by running the following file by AD, GPO, scheduled task, or PSExec :

C:\Program Files (x86)\OCS Inventory Agent\OCSInventory.exe

Another option : During the installation of the agent, you can request the execution of the inventory at each startup of the machine (INVENTORY_ON_STARTUP=1 parameter in ocsinventory.ini agent file)

Regards, Stéphane

by (32.6k points)
0 votes

steph78630 answers is correct, but you may wonder why you should use a schedules task or psexec.

the reasson is that if you double click on

C:\Program Files (x86)\OCS Inventory Agent\OCSInventory.exe

the client send the inventory, but a potentially downloaded packaged will be installed as the the user which doubleclicks on the exe file.

Most programms won't be installed correctly this way.

(please correct me if i am wrong)

to mitigate this behaviour i wrote a windows script with a SED command which does the following.

1. It stops the ocsinventory service

2. it will modify the TTO_WAIT from whatever it is to TTO_WAIT=5

in ocsinventory.ini under C:\ProgramData\OCS Inventory NG\Agent

3. It starts the service

so with this script a inventory will be sent immediately to server and package downloading beginns if you want to deploy a package.

by (22.6k points)
 
Powered by Question2Answer
...