Forum Discussion
Anonymous
5 years agoYou'd have to write a bit of powershell code to fetch the current SDT status from the LM API. Generate an API token and set the ID and key as a properties on the group containing your servers. I recommend calling these properties after your datasource since that is how it will be used. Once you have that setup, you can pull those values into your posh script and call the Devices endpoint: https://www.logicmonitor.com/swagger-ui-master/dist/#/Devices/getAllSDTListByDeviceId. I believe the "isEffective" attribute should do it. You can pull in the system.deviceId property to construct the API call url.
I know this is a bit bare bones. Let me know if you want more detail on what the script strategy would be.
Related Content
- 7 months ago
- 10 months ago
- 2 months ago
- 10 months ago