Forcing an inventory refresh for the old agent

Document created by Joseph Brown Employee on Jan 24, 2017
Version 1Show Document
  • View in full screen mode

The agent's inventory is automatically refreshed about every 24 hours of operation of the computer (it has to be turned on).


The agent is runs as a windows service and will trigger a refresh based on that schedule.


To optimize for outbound bandwidth utilization, the agents will randomize the next inventory refresh around the 24 hour timeframe so that not all agents report together at the same time.


For Windows:

To force an inventory refresh for a single computer through command line:


"c:\program files\samanage\ocsinventory" /force /debug /server= /tag=




"c:\program files (x86)\samanage\ocsinventory" /force /debug /server= /tag=


For Macs:

sudo launchctl start org.ocsng.agent


Note: Please make sure you have the latest Mac agent installed:


For Linux:
sudo ./ocsinventory-agent --server --tag= ACCOUNTNAME --force --debug


Old Mac Agent Command Line:

sudo php /usr/local/sbin/ocs_mac_agent.php


This document was generated from the following discussion: The specified item was not found.