Die Suche ergab 10 Treffer
- 04 Nov 2014, 11:18
- Forum: Support Communautaire
- Thema: Récupération d'information ordinateur via l'API RPC
- Antworten: 6
- Zugriffe: 7608
Re: Récupération d'information ordinateur via l'API RPC
Bonjour à tous, j'ai trouvé la solution !! Si vous souhaitez comme moi réaliser des actions avec le RPC d'OPSI en python. Dans cette exemple, j’effectue une requête RPC au serveur OPSI avec cette méthode : productOnClient_getHashes from os import * from sys import * import httplib import base64 impo...
- 30 Okt 2014, 13:17
- Forum: Free support
- Thema: Retrieval computer Information via RPC API
- Antworten: 10
- Zugriffe: 7545
Re: Retrieval computer Information via RPC API
hi i found the solution !! If you want do something with opsi rpc in python ! In this example, i request rpc opsi server about this method : productOnClient_getHashes Do this : from os import * from sys import * import httplib import base64 import string import json def main(): payload = {"meth...
- 29 Okt 2014, 16:41
- Forum: Free support
- Thema: Retrieval computer Information via RPC API
- Antworten: 10
- Zugriffe: 7545
Re: Retrieval computer Information via RPC API
Hi, i test it and when i run this command i have this : {"result": null, "id": null, "error": {"message": "Opsi bad rpc error: Failed to
decode rpc: No JSON object could be decoded", "class": "OpsiBadRpcError"}}
im lost..
decode rpc: No JSON object could be decoded", "class": "OpsiBadRpcError"}}
im lost..
- 23 Okt 2014, 17:59
- Forum: Support Communautaire
- Thema: Récupération d'information ordinateur via l'API RPC
- Antworten: 6
- Zugriffe: 7608
Re: Récupération d'information ordinateur via l'API RPC
En fait je souhaiterai savoir qu'elle est l'URL pour dialogué via RPC . Quand j'utilise cette url : http://opsiserveur/rpc sa ne fonctionne pas. Lorsque je saisie cette url : http://opsiserveur/rpc?{%20"method":%20"productOnClient_getHashes",%20"params":%20[],%20"i...
- 23 Okt 2014, 17:56
- Forum: Free support
- Thema: Retrieval computer Information via RPC API
- Antworten: 10
- Zugriffe: 7545
Re: Retrieval computer Information via RPC API
In fact i want to know how to speak with opsi with rpc protocol.. What is the url i must use to get information with rpc. This URL : https://myopsiserver/rpc?{%20"method":%20"productOnClient_getHashes",%20"params":%20[],%20"id":%201%20,%20"actionRequest&q...
- 23 Okt 2014, 13:59
- Forum: Support Communautaire
- Thema: Récupération d'information ordinateur via l'API RPC
- Antworten: 6
- Zugriffe: 7608
Re: Récupération d'information ordinateur via l'API RPC
Merci pour votre retour, en fait je souhaiterai passer par l'API JSON RPC mais je ne sais pas comment l’interroger en python.
Ce n'est pas très documenté.
Ce n'est pas très documenté.
- 22 Okt 2014, 11:49
- Forum: Free support
- Thema: Retrieval computer Information via RPC API
- Antworten: 10
- Zugriffe: 7545
Re: Retrieval computer Information via RPC API
Hi thank you for your reply,
I want to use the output in python script this will allow me to use this list of computer to query an other API.
thanks
I want to use the output in python script this will allow me to use this list of computer to query an other API.
thanks
- 22 Okt 2014, 11:43
- Forum: Support Communautaire
- Thema: Récupération d'information ordinateur via l'API RPC
- Antworten: 6
- Zugriffe: 7608
Re: Récupération d'information ordinateur via l'API RPC
Merci beaucoup pour votre réponse, :D mais je souhaiterai ne pas passer par la ligne de commande car il faut être root pour lancer cette commande. Et cette ligne serait intégré à une machine X qui se connecterai au serveur OPSI en SSH avec un utilisateur qui n'est pas root :| et dont les identifiant...
- 21 Okt 2014, 18:40
- Forum: Free support
- Thema: Retrieval computer Information via RPC API
- Antworten: 10
- Zugriffe: 7545
Retrieval computer Information via RPC API
Hello everyone, this is my first topic on this forum so be cool : D. The purpose of my topic is: retrieve the name of machines which has the "actionRequest" Setup. Via the web interface of opsi: https://XXX.yourdomain.fr/interface/extend/configed (opsiconfd interface page) The Path on: int...
- 21 Okt 2014, 18:28
- Forum: Support Communautaire
- Thema: Récupération d'information ordinateur via l'API RPC
- Antworten: 6
- Zugriffe: 7608
Récupération d'information ordinateur via l'API RPC
Bonjour à tous, c'est mon premier topic sur ce forum alors soyez indulgent :D . L'objectif de mon topic est le suivant : Pouvoir récupérer le nom des machines ayant l'attribut "actionRequest" sur Setup. Via l'interface web d'opsi : https://XXX.votredomain.fr/interface/extend/configed (opsi...