Tal Nizani
posted this on December 20, 2010 16:41
|
The agent's inventory is automatically refreshed about every 10 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 10 hour timeframe so that not all agents report together at the same time. To force an inventory refresh for a single computer through command line: c:\program files\samanage\ocsinventory /force /server: inventory.samanage.com /tag:<YOURACCOUNT> /PNUM:80 /debug |
Comments
How is this done on a Mac?
Hi Peter,
Try this:
sudo php /usr/local/sbin/ocs_mac_agent.php
Running OSX Lion. I noticed there were 3 duplicates of the only 2 systems we have in inventory. I removed the duplicates but when I went back to my inventory there were no computers listed. I removed the program files per this document: http://support.samanage.com/entries/365335-how-do-i-remove-or-unins... and reinstalled the application. When it pulled the information back into the inventory it did not pick up the Mac address or serial number. I tried to force update per this article and received the following at the end:
[ ERROR ] Could not find SPApplicationsDataType in system_profiler XML. Corrupted output?
[ OK ] Successfully transmitted inventory
[ INFO ] Account info up to date
[ OK ] Finished. Execution time: 3.34s
I installed the software onto another computer that has not yet been used and was able to successfully retrieve the serial number, but not the MAC address. Doing a force refresh did not produce any error messages.
After reinstalling the program again it does not appear to be updating or adding this computer in at all. I am removing the files, rebooting and trying another clean reinstall to see if it resolves. I have not tried a force update on the other Mac yet. What could the problem be?