This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

FixOrionVolume.ps1

Script: FixOrionVol.ps1

Author: Ben Scherer

Description:  This script will fix monitoring of volumes that are reporting down in orion due to being formatted, having label changed,etc..

Resources:

    http://vwiki.co.uk/SNMP_and_PowerShell

    http://sharpsnmplib.codeplex.com/releases/view/78947

    https://thwack.solarwinds.com/community/labs_tht/orion-sdk

3/28/2016 - Updated regex

3/28/2016 - added debug

FixOrionVolume.ps1
Parents
  • I am using Alert Manager(Screenshot below).

    I could probably remove the -IP parameter and just pull it from the nodes table.

    See this   FixAllOfflineVol_Windows.ps1  for the same version of the script,except it will pull back a list of all offline windows volumes and attempt to fix them.  I just threw this together pretty quickly and did a quick test to make sure it didnt blow anything up. But i would look it over yourself too.

    powershell.exe -f f:\scripts\fixorionvolume.ps1 -swishost <OrionHost>-ip ${N=SwisEntity;M=Node.IP_Address} -username <username> -password <password> -volumeid ${N=SwisEntity;M=VolumeID}

    pastedImage_10.png

    pastedImage_0.png

Reply
  • I am using Alert Manager(Screenshot below).

    I could probably remove the -IP parameter and just pull it from the nodes table.

    See this   FixAllOfflineVol_Windows.ps1  for the same version of the script,except it will pull back a list of all offline windows volumes and attempt to fix them.  I just threw this together pretty quickly and did a quick test to make sure it didnt blow anything up. But i would look it over yourself too.

    powershell.exe -f f:\scripts\fixorionvolume.ps1 -swishost <OrionHost>-ip ${N=SwisEntity;M=Node.IP_Address} -username <username> -password <password> -volumeid ${N=SwisEntity;M=VolumeID}

    pastedImage_10.png

    pastedImage_0.png

Children
No Data