Seite 2 von 2

Re: Retrieval computer Information via RPC API

Verfasst: 25 Mär 2015, 00:17
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()