swis.invoke("Orion.NPM.Interfaces", "Unmanage", "I:12345", '4/22/2015 6:58 PM', '4/23/2015 6:58 PM' ) did not work for me
Thanks,
Daniel
You need one more argument: a boolean that specifies whether the second time argument should be treated as an absolute datetime or an offset relative to the start datetime. I would just always pass False for that. Also, you should use the ISO format for dates. Try this:
swis.invoke("Orion.NPM.Interfaces", "Unmanage", "I:12345", ''2015-04-22T18:31:28', ''2015-04-23T18:31:28', False)
This works. I never expected it to take another argument
Now can you let me know how to simply remove the interface from monitoring?
To remove an interface entirely (permanently), get its Uri and call swis.delete() on that. SwisClient.py shows an example of how to query for the Uri of a node; doing it for an interface is similar.
This is awesome. Thanks tdanner.