Hello Twack community,
We are in the process of replacing old switches with new switches and have some questions regarding moving away from the WebUI. The goal is to utilize SWIS is the following:
- Identify all interfaces monitored for a particular switch IP.
- Delete all interfaces monitored for a particular switch IP.
- Update the IP of the switch if it has changed.
- Rediscover interfaces and specify those that need to be monitored.
- Update customer fields with appropriate values.
Is it safe to delete the interfaces via the URI fetched using the following SWQL? I want to ensure that I am not breaking any types of dependencies and introducing problems. The idea is to run the SQL command below via Python and then loop through the URIs returned and remove them via swis.delete(interface_uri). Thanks in advance.
SELECT [Nodes].Caption AS [Node]
, [Nodes].IPAddress
, [Nodes].Vendor
, [Nodes].Interfaces.Caption AS [Interface]
, [Nodes].Interfaces.uri
FROM Orion.Nodes AS [Nodes]
WHERE [Nodes].IPAddress = '10.70.35.150' AND [Nodes].Vendor = 'Cisco'