I want to setup maintenance window on a specific site (Custom Property) when ever a device will go down maintenance window should get created and once the device is up the maintenance should get Cancelled/delecte
Go to Manage nodes and the go to Group by and go to the custom property part.From there you can click on nodes that you want to do the maintenance mode.documentation.solarwinds.com/.../core-setting-device-management-states-sw2036.htmYou can also check Alerts and dependency and groupings.solarwindscore.my.site.com/.../Alerting-on-Groups-vs-Custom-Properties
my bad i forgot to mention need to setup maintenance via automation, whenever nodes goes down in a group with specific Site ID the whole group should goes into maintenance once the device is back up the maintenance should gets deleted automatically.
You CAN do this via automation, it'd be probably a triggered script in an alert action that feeds in the siteID to a script ready to receive that
HOWEVER, i think you're trying to setup dependencies from scratch, dependencies are probably what you want, you'd set each site up as a group, and put your uplink router as the parent of that group.If you had a site with a monitored random server, i dont think you'd actually want to mute the whole site on the event that random server was decommed.
That sound much more like you need to use dependencies.e.g. Router at Site x goes down, and all other nodes are dependent on it so they get marked as unavailable. If this isn't your desired outcome then you'll be looking at scripting as Adam suggests.
I also suggest dependencies
I have a question over here if i setup maintenance on the group with specific SiteID will it create the Maintenance on all the devices that are in the SolarWinds environment?
I dont believe you can maintenance a group, you'd need to maintenance mode all the children
Is there any way we can achieve this via scripting/SQL/SWQL Queries
To set up a maintenance window for a specific site based on device status, you can use monitoring tools or automation scripts that trigger when a device goes down. When the device is detected as down, the maintenance window can be created, and once the device is back up, the window can be automatically canceled or deleted. For more detailed solutions, you might find helpful information in resources like urdu science articles, which often cover automation and monitoring techniques.