5 Replies Latest reply on Nov 4, 2013 9:26 AM by tdanner

    Polling - Next Poll Time Problem



      When I created a node via SWIS at C#, "Next Poll Time" set to node creating time (GETDATE()) and not polling for the next time. Is there any way to poll automatically via SWIS? Or can you tell me right way to do this?


        • Re: Polling - Next Poll Time Problem

          You can cause a node to be polled like this:


          Invoke-SwisVerb $swis Orion.Nodes PollNow @("N:123")

            • Re: Polling - Next Poll Time Problem

              I took error, "verb not found". My code is below and I use Orion SDK v1.7


                          var swis = new InfoServiceProxy(address, binding, credentials);

                          XmlDocument xdoc = new XmlDocument();

                          XmlElement[] elem = new System.Xml.XmlElement[1];

                          XmlElement xel = xdoc.CreateElement("NetObjectID");

                          xel.InnerText = nodeID.ToString();

                          elem[0] = xel;



                              swis.Invoke("Orion.Nodes", "PollNow", elem);

                              Constants.logger.Debug(String.Format("{0} ID poll", nodeID));


                          catch (Exception exc)


                              Constants.logger.Error(String.Format("{0} ID not poll.", nodeID), exc);