Hello!
We have found we need to restart the Solarwinds services on a regular basis on the nodes that host the main engine and pollers. Currently we have a powershell script which we run with task schedular (see below). We've found that while the services start that Solarwinds is not stable and requires a manual restart using the Orion Manager. Looking at various posts we are unable to find an ideal solution. Does anyone know of a way to automatically restart the services so that Solarwinds is bounced in a stable manner? Are we missing any services from our script?
#Stop-Services
Get-WmiObject -Class Win32_Service | Where-Object { $_.PathName -match "Solarwinds*"} | Stop-Service | Sort-Object status
Get-WmiObject -Class Win32_Service | Where-Object { $_.PathName -match "SMSvcHost.exe"} | Stop-Service
Get-WmiObject -Class Win32_Service | Where-Object { $_.PathName -match "mqsvc.exe"} | Stop-Service
#Suspend activety for 5 seconds
Start-Sleep -s 5
#Start-Services
Get-WmiObject -Class Win32_Service | Where-Object { $_.PathName -match "Solarwinds*"} | Start-Service
Get-WmiObject -Class Win32_Service | Where-Object { $_.PathName -match "SMSvcHost.exe"} | Start-Service
Get-WmiObject -Class Win32_Service | Where-Object { $_.PathName -match "mqsvc.exe"} | Start-Service
#Suspend activety for 5 seconds
Start-Sleep -s 5