OCS Inventory NG Forums

OCS Inventory NG, an OpenSource computer inventory and package deployement system for Windows and Unix

You are not logged in.

#1 2007-12-17 11:39:11

bob
New member
Registered: 2007-12-14
Posts: 2

OCS Mac OS 10.5 "Could not find SPIDEDataType in system_profiler XML."

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

#2 2007-12-18 09:53:05

OlivierBo
New member
Registered: 2007-12-18
Posts: 5

Re: OCS Mac OS 10.5 "Could not find SPIDEDataType in system_profiler XML."

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

#3 2007-12-18 13:45:00

ganex
New member
Registered: 2007-05-23
Posts: 3

Re: OCS Mac OS 10.5 "Could not find SPIDEDataType in system_profiler XML."

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

#4 2007-12-19 09:09:11

OlivierBo
New member
Registered: 2007-12-18
Posts: 5

Re: OCS Mac OS 10.5 "Could not find SPIDEDataType in system_profiler XML."

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

#5 2007-12-19 14:54:36

jschubert
New member
Registered: 2007-12-11
Posts: 6

Re: OCS Mac OS 10.5 "Could not find SPIDEDataType in system_profiler XML."

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

#6 2007-12-19 15:50:31

OlivierBo
New member
Registered: 2007-12-18
Posts: 5

Re: OCS Mac OS 10.5 "Could not find SPIDEDataType in system_profiler XML."

You're welcome jschubert smile

Some workarounds seem to be working. The main issue is about storage drives, isn't it?

Cheers,
OlivierBo

Offline

#7 2007-12-19 16:47:14

jschubert
New member
Registered: 2007-12-11
Posts: 6

Re: OCS Mac OS 10.5 "Could not find SPIDEDataType in system_profiler XML."

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 wink

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

#8 2007-12-20 17:11:32

bob
New member
Registered: 2007-12-14
Posts: 2

Re: OCS Mac OS 10.5 "Could not find SPIDEDataType in system_profiler XML."

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

#9 2007-12-21 08:22:22

OlivierBo
New member
Registered: 2007-12-18
Posts: 5

Re: OCS Mac OS 10.5 "Could not find SPIDEDataType in system_profiler XML."

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

#10 2010-05-19 10:56:40

neoloop
New member
Registered: 2010-05-18
Posts: 3

Re: OCS Mac OS 10.5 "Could not find SPIDEDataType in system_profiler XML."

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

Board footer

Powered by FluxBB