25 Replies Latest reply on Oct 9, 2017 7:38 PM by clarv02

    Trigger NCM configuration download from SDK


      Is there any way with the SDK to start a configuration download?


      For some reason my nightly backup of configs runs into some issues, but when I manually download from node details, it always works fine.


      So, I take my email report, put it in a text box in vb, parse it and get the few that had errors.  Would like to be able to take that and click 'try again on all' kind of thing.

        • Re: Trigger NCM configuration download from SDK

          In C# you may use the following snippet:


          void DL(InfoServiceProxy proxy)
                      XmlDocument doc = new XmlDocument();
          @"<?xml version=""1.0"" encoding=""utf-8""?>
            <ArrayOfguid xmlns:i=""http://www.w3.org/2001/XMLSchema-instance""
            <string xmlns=""http://schemas.microsoft.com/2003/10/Serialization/"">Running</string>
            <string xmlns=""http://schemas.microsoft.com/2003/10/Serialization/"">admin</string>
                      XmlElement[] xmlElements = doc.DocumentElement.ChildNodes.Cast<XmlElement>().ToArray();
                      proxy.Invoke("Cirrus.ConfigArchive", "Download", xmlElements);


          This post may give you idea on how to instantiate the InfoServiceProxy object which comes as parameter to this method.

          As you can see we pass array of Guids (element Arrayofguid) - they are NCM node ids. You would have to provide your Node IDs.

          To find which Node Id corresponds to IP address you may use SWQL studio and query:

          SELECT NodeID, AgentIP, AgentIPv6
          FROM Cirrus.Nodes


          The next parameter is config type, in his sample it is Running.

          The last parameter specifies the Orion user name whos account is used to download configs, in this sample it is admin.


          After you call the Download verb the statuses of download will be reflected in the Cirrus.TransferQueue entity and obviously you can follow them on NCM web.