You are not logged in.
Pages: 1
En exécutant /usr/local/sbin/ocs_mac_agent.php, j'obtiens l'erreur suivante: "Could not find SPIDEDataType in system_profiler XML. Corrupted output?".
Impossible de trouver une solution si tant est qu'elle existe!
Merci d'avance!
Offline
Bonjour à tous,
Ayant le même problème sur Leopard "Could not find SPIDEDataType in system_profiler XML. Corrupted output?", j'ai juste supprimé du fichier ocs_mac_agent.php les lignes faisant appel à "SPIDEDataType" et "SPSCSIDataType". J'ai relancé en root ocs_mac_agent.php et le tour était joué.
Offline
Bonjour,
J'ai supprimé toutes les lignes contenant ces variables. Mais toujours rien à faire.
Combien de ligne avez-vous supprimer ? Commentées ??
Avez-vous d'autres expériences ?
Merci
Offline
Hello Ganex,
J'ai supprimé "SPIDEDataType" Ligne 722/colonne 167, les lignes 912 et 913 et la ligne 984 et toute la section "function _doDrivesAndStorages()" qui faisait référence à "SPIDEDataType".
Je peux t'envoyer mon .php si tu veux ? J'ai également supprime "SPSCSIDataType" car j'avais le même souci avec cette variable.
Amclt,
OlivierBo
Last edited by OlivierBo (2007-12-19 09:10:46)
Offline
Sorry don't speak French
The script checks to see if you are running 10.4 if not it assumes 10.3. There is a new version in the works that should fix this. Please be patient and a fix will be released.
Offline
You're welcome jschubert ![]()
Some workarounds seem to be working. The main issue is about storage drives, isn't it?
Cheers,
OlivierBo
Offline
If you do a search for "_is10_4" in the code you see it is all over the place. A quick hack to this is in one of the other posts, basically you tell it 10.5 is also 10.4 ![]()
Just looked at the other post and he has more there then needs to be.
Find this line:
$this->_is10_4 = (strpos($this->_OSXVer, '10.4') === 0);
And replace with this one:
$this->_is10_4 = ((strpos($this->_OSXVer, '10.4') === 0) || (strpos($this->_OSXVer, '10.5') === 0));
This won't fix everything, but will get you the basics.
Last edited by jschubert (2007-12-19 16:49:17)
Offline
Merci OlivierBo, j'ai supprimé tous les "SPIDEDataType" et SPSCSIDataType" du fichier /etc/local/sbin/ocs_mac_agent.php.
Ca fonctionne nickel, il remonte toutes les infos dans OCS et GLPI sauf, évidement, ce qui concerne les HDD.
En attendant la version corrigée...
Merci.
Offline
De rien Bob. Je vais tester aujourd'hui la nouvelle version 10.4 de l'agent OCS qui supporte Leopard ;-)
Très bonne journée et très bonnes fêtes à tous.
Happy season's greeting
Offline
bonjour.
J'ai le meme probleme.
Pouvez vous m'envoyer le fichier ocs_mac_agent.php?
j'ai toujours j'erreur.
merci d'avance
Offline
Pages: 1