1 Reply Latest reply on Aug 5, 2015 4:50 AM by muralikvp

    Job Scan Fix

    dgilliam28

      I am writing a PowerShell Script to automate the IPAM Job Scan Fix in Orion (SolarWinds Knowledge Base :: IPAM Scans Not Running). Does Orion Services need to be stopped/started in any particular order when performing the task with a script?

       

      Here is my script:

       

      Stop-Service -DisplayName "AlertingEngine.exe"

      Stop-Service -DisplayName "SolarWinds.Alerting.Service.exe"

      Stop-Service -DisplayName "SolarWinds.DataProcessor.exe"

      Stop-Service -DisplayName "SolarWinds.ManagementAgent.exe"

      Stop-Service -DisplayName "SolarWinds.PollingController.exe"

      Stop-Service -DisplayName "SolarWinds.InformationService.Service.exe"

      Stop-Service -DisplayName "SolarWinds.InformationService.ServiceV3.exe"

      Stop-Service -DisplayName "jsl.exe"

      Stop-Service -DisplayName "SWJobEngineSvc.exe"

      Stop-Service -DisplayName "SWJobEngineSvc2.exe"

      Stop-Service -DisplayName "SWJobSchedulerSvc.exe"

      Stop-Service -DisplayName "NetFlowService.exe"

      Stop-Service -DisplayName "SolarWinds.BusinessLayerHost.exe"

      Stop-Service -DisplayName "SyslogService.exe"

      Stop-Service -DisplayName "SWTrapService.exe"

      Stop-Website 'SolarWinds NetPerfMon'

       

      If (test-path C:\ProgramData\Solarwinds\JobEngine\Data\JobEngine35_OLD.sdf)

      {

      remove-Item 'C:\ProgramData\Solarwinds\JobEngine\Data\JobEngine35_OLD.sdf' -force

      }

      If (test-path C:\ProgramData\Solarwinds\JobEngine\Data\JobEngine35.sdf)

      {

      rename-Item -Path 'C:\ProgramData\Solarwinds\JobEngine\Data\JobEngine35.sdf' -NewName JobEngine35_OLD.sdf

      }

      Copy-Item -Path 'C:\ProgramData\Solarwinds\JobEngine\Data\JobEngine35 - Blank.sdf' -Destination C:\ProgramData\Solarwinds\JobEngine\Data\JobEngine35.sdf

       

      Start-Service -DisplayName "AlertingEngine.exe"

      Start-Service -DisplayName "SolarWinds.Alerting.Service.exe"

      Start-Service -DisplayName "SolarWinds.DataProcessor.exe"

      Start-Service -DisplayName "SolarWinds.ManagementAgent.exe"

      Start-Service -DisplayName "SolarWinds.PollingController.exe"

      Start-Service -DisplayName "SolarWinds.InformationService.Service.exe"

      Start-Service -DisplayName "SolarWinds.InformationService.ServiceV3.exe"

      Start-Service -DisplayName "jsl.exe"

      Start-Service -DisplayName "SWJobEngineSvc.exe"

      Start-Service -DisplayName "SWJobEngineSvc2.exe"

      Start-Service -DisplayName "SWJobSchedulerSvc.exe"

      Start-Service -DisplayName "NetFlowService.exe"

      Start-Service -DisplayName "SolarWinds.BusinessLayerHost.exe"

      Start-Service -DisplayName "SyslogService.exe"

      Start-Service -DisplayName "SWTrapService.exe"

      Start-Website 'SolarWinds NetPerfMon'

      Write-host "Completed"