Retrieval computer Information via RPC API

mirkt
Beiträge: 95
Registriert: 05 Jun 2013, 09:39
Wohnort: Lithuania

Re: Retrieval computer Information via RPC API

Beitrag von mirkt »

Have you tried n.wenselowski suggestion using JSONRPCBackend class from OPSI.Backend.JSONRPC?

Code: Alles auswählen

#!/usr/bin/python
# -*- coding: utf-8 -*-

from OPSI.Backend.JSONRPC import JSONRPCBackend

if __name__ == '__main__':
    opsi = JSONRPCBackend(address = 'YOUR_SERVER', username = 'USERNAME', password = 'PASSWORD')
    print opsi.productOnClient_getHashes(actionRequest = 'setup')
    opsi.backend_exit()
Antworten