0 Replies Latest reply on Feb 15, 2016 8:51 AM by jmiddleton

    Download NCM config's via SDK in Python




      Just in case anyone else gets stuck with this unhelpful message from Orion when triggering NCM configuration downloads with the Python SDK:

      Could not cast or convert from System.String to System.Guid[]

      It's down to nodeId needing to be an array!


      Some example code:


      node_ids = []
      transfer_id = {}
      node_data = swis.query("SELECT NodeID FROM Cirrus.Nodes WHERE NodeCaption=@node", node=node)
      orion_data = swis.invoke("Cirrus.ConfigArchive",  "DownloadConfig", node_ids, "running")
      transfer_id['running'] = orion_data[0]