We are trying to automate automatic deployment of Linux servers. Our challenge is that as soon as we install the SW agent on a node it registers into SW. When a vm is destroyed and later re-provisioned with same ip and cname, a duplicate is created within SW. We would like prevent the SW Linux agent from creating a duplicate. Is there any way to automatically kill a registered node whenever that particular node destroyed. Also, we would like to automate adding custom properties from SW end without any human intervention using a script or calling an API or etc. Probably I am looking for a script that I can run against the SW API that will delete a node. I will take responsibility for running the script prior to decommissioning the device. I would welcome a script or some pointers in perl.
Thanks in advance.
Thanks & Regards,
Documentation for Orion's API is here: Home · solarwinds/OrionSDK Wiki · GitHub
For Perl, we only have a very minimal sample: OrionSDK/query.pl at master · solarwinds/OrionSDK · GitHub
But it's a REST API (REST · solarwinds/OrionSDK Wiki · GitHub ) so you should be able to work out how to do the other operations from Perl. Let me know if something is unclear.