Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.11.1 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

Réinstallation de l'agent après suppression de la machine dans le serveur : rien ne remonte

Bonjour,

 

Nous allons installer OCS inventory dans notre environnement pour la première fois. Nous sommes donc débutant sur le sujet. Nous sommes donc en phase de tests.

 

Environnement :

Nous avons installé la dernière version d'OCS + GLPI sur un serveur windows 2008r2. L'agent OCS utilisé est aussi de la dernière version. Tous les PC clients sont en Windows 7 Pro 64bits

 

Le contexte du problème :

J'installe l'agent sur mon PC de test à l'aide du script fourni sur votre wiki  ici : http://wiki.ocsinventory-ng.org/index.php/Howtos:Deploy_agent_whit_ad

Excellent ! ça fonctionne bien, c'est silencieux, on voit bien le PC apparaitre sur le serveur dans l'inventaire.

Du coup pour un test, je supprime la machine remontée sur le serveur (en gros sur le serveur à la vue "PC inventoriés" je clic sur la croie rouge.

Le problème c'est qu'ensuite, si je réinstalle l'agent sur le PC de test, ce dernier ne remonte pas sur le serveur. Même si je désinstalle l'agent sur le PC avant de réinstaller. Alors que les paramètres sont identiques... Du coup pour chaque test je dois changer de machine...

 

Pouvez vous m'aider à comprendre ce qu'il se passe svp ? J'ai peur qu'il y ai un dysfonctionnement sur notre serveur. Si c'est le cas je ne pourrais le mettre en production.

 

Merci d'avance

in OCS Inventory NG agent for Windows by (340 points)

6 Answers

0 votes
ami,
Je ne comprends pas très bien, mais nous allons essayer.

Je l'utilise aussi ce script pour déployer l'agent sur mes clients.
Si vous supprimez l'interface lors de la prochaine synchronisation, l'ordinateur va réapparaître dans l'interface du serveur.

Je suis en utilisant le traducteur google, désolé si vous ne comprenez pas tout à votre besoin.

Contact Retour si les problèmes continuent.

Cordialement,

Anderson
by (260 points)
0 votes
Hello Anderson,

thanks for your answer. I'll try to write in English so you can understand better. Sorry my English is bad and as I pass by google translation :)

Hope you understand better in this language:

This is the first time I install an OCS server and I'm a beginner.

Currently I'm testing. Among these tests, I wanted to test the uninstall. I uninstalled the agent on the PC and I removed the machine from the server by clicking the red cross.
=> So at this point the agent is no longer present on the client machine. This client machine is also deleted from the OCS server.

I try reinstall. I use the same script that worked perfectly the first time (without changes). The agent is installed on the machine but nothing is back on OCS. I thought that with the "/ now" present in the script, the machine goes back to the server immediately.

So this manipulation I made Friday before leaving for the weekend. The test PC is still not recovered in OCS ... That makes three days! I'm afraid he will have a malfunction.

BUT when I deploy the agent (always with the same script!) On another PC that has never been inventoried it works well !!! I'm going crazy ;)
 
You spoke of the frequency syncrhonisation. It is how long? Can I change it?

Good day
by (340 points)
0 votes
Re-bonjour,

Personne n'a d'idée ?

Bizarrement, sur ces PCs qui ne remontent plus après les avoir supprimé, si je tape la commande :

"C:\Program Files (x86)\OCS Inventory Agent\OCSInventory.exe" /server=http://myserver.domain.fr:8080/ocsinventory /force

Ca marche donc en forcant depuis le PC client ! Par contre j'ai peur que le PC ne soit ensuite plus mis à jour sur le serveur. Je ne comprends pas, si mon script de déploiement était mauvais, la machine ne serait jamais remontée la première fois sur le serveur !

Help please ;)
by (340 points)
0 votes
Bonjour,

 

Vraiment personne ne peut m'aider ?

En même temps normal mon problème tombe en période de vacances ;)
by (340 points)
0 votes
Bonjour,

 

Bon ben j'ai résolu mon problème !!! ;) Même si je comprends pas pourquoi au premier coup mon script fonctionnait sur les machines... Bref j'explique :

Comme le serveur sur lequel j'ai monté mon OCS/GLPI hébergeait déjà un service web sur le port 80, j'ai donc paramétré mon xamp pour attendre les connections sur 8080.

Le truc c'est que dans mon script a aucun moment je ne le spécifie...

Du coup dans l'install j'avais l'option /server=http://myservocs/ocsinventory/. J'ai donc remplacé par /server=http://myservocs:8080/ocsinventory/.

 

Bingo !!! Tout marche à tous les coups ;)

 

Ca doit vous paraitre simple, pour un débutant ça l'est moins. La personne ayant écrit le script peut il insérer cela dans les commentaires du script ? (il est bien commenté mais il manque juste ça.)

 

Bonne journée,
by (340 points)
0 votes

Bonjour,

Le script a été modifié =>  http://wiki.ocsinventory-ng.org/index.php/Howtos:Deploy_agent_whit_ad

Merci pour ton retour

Cordialement

Frank

by (88.5k points)
 
Powered by Question2Answer
...