Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
    • Posted in

    Using xmlrpclib to schedule a remote command

    Posted on

    Has anyone experienced issues using this Python library? I have to use it with Satellite's API and it constantly gives me problems. For example, when trying to schedule a script remotely I use:

     

    import xmlrpclib

    earliest_occurrence = xmlrpclib.DateTime()

    client.system.scheduleScriptRun(key, id, "root", "root", 600, script, earliest_occurrence)

     

    Sometimes it works but most of the time I get this error in response:

     

    TypeError: cannot marshal objects
    TypeError: cannot marshal objects
     
    Is there a way around using this xmlrpclib function to schedule the time? I have found this library to be extremely inconsistent. Any help would be greatly appreciated.
     
    Thanks!
     

     

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat