Gestalt:Desktop dk$ sudo vi /etc/ocsinventory-client/ocsinv.conf Password: Gestalt:Desktop dk$ sudo /usr/local/sbin/ocs_mac_agent.php [ INFO ] OCS Mac Agent started at Sun, 25 Nov 2007 10:28:25 +0100 [ INFO ] No new update needed for this agent [ INFO ] Starting inventory of Gestalt [ ERROR ] Could not find SPIDEDataType in system_profiler XML. Corrupted output? Gestalt:Desktop dk$ system_profiler -xml > myMac.spx Gestalt:Desktop dk$ sudo ocs_mac_agent.php -l . -x [ INFO ] OCS Mac Agent started at Sun, 25 Nov 2007 10:30:58 +0100 [ INFO ] Starting inventory of Gestalt [ ERROR ] Could not find SPIDEDataType in system_profiler XML. Corrupted output? Gestalt:Desktop dk$ sudo ocs_mac_agent.php -help [ ERROR ] Console_Getopt: unrecognized option -- e OCS Mac Agent version 4.3 Copyright (c) 2004-2006 Jason Rust OCS Mac Agent is a command line PHP script which will inventory an OSX client and post the data back to an OCS Inventory-NG communications server. Usage: /usr/local/sbin/ocs_mac_agent.php [options] Configuration: Configuration is located in /etc/ocsinventory-client/ocsinv.conf Log: Logs recorded to /var/log/ocsinv.log Options: -h, --help Show this help message -x, --xml Write the data as uncompressed XML. Only useful in conjunction with --local -u, --url url Specify the URL of the OCS Inventory-NG communication server -l --local dir Dump the data to a file instead of trying to post it to the OCS Inventory-NG communication server. -i --input file Use an spx xml file as input instead of calling System Profiler. Report any bugs to: jrust@rustyparts.com Gestalt:Desktop dk$ sudo ocs_mac_agent.php -l . -x -i myMac.spx [ INFO ] OCS Mac Agent started at Sun, 25 Nov 2007 10:31:28 +0100 [ INFO ] Using Input file for XML data: myMac.spx [ ERROR ] Could not find SPIDEDataType in system_profiler XML. Corrupted output? Gestalt:Desktop dk$ #---------- Gestalt:Desktop dk$ scp root@10.0.1.4:/iphone.spx . root@10.0.1.4's password: iphone.spx 100% 7442 7.3KB/s 00:00 Gestalt:Desktop dk$ sudo ocs_mac_agent.php -l . -x -i iphone.spx Password: [ INFO ] OCS Mac Agent started at Sun, 25 Nov 2007 10:38:59 +0100 [ INFO ] Using Input file for XML data: iphone.spx [ ERROR ] Could not find SPHardwareDataType in system_profiler XML. Corrupted output? Gestalt:Desktop dk$