Page 1 of 1

monitor using powershell

Posted: Wed Sep 23, 2020 6:03 am
by abhi2101
Hi

Which powershell commands can i use to check the status of disk drives ?

Re: monitor using powershell

Posted: Wed Sep 23, 2020 6:57 am
by yaroslav (staff)
Greetings,

Welcome to StarWind Forum.
Are you looking for checking HA device health?
You can find the scripts at C:\Program Files\StarWind Software\StarWind\StarWindX\Samples\powershell.
You can use enumDevicesTargets.ps1 and SyncHADeviceAdvanced.ps1 to enlist targets and check HA device synchronization status respectively.
Please note that those are sample scripts; the latter can be run only for 1 device. With some changes, you can fit those scripts to your needs.
Let me know if you have additional questions.

Re: monitor using powershell

Posted: Fri Sep 25, 2020 7:10 am
by abhi2101
how can i check the health status using these scripts.

I am particularly interested in find status of
synchronisation channel
heartbeat channel. and
partner

as per the screenshot attached.

Re: monitor using powershell

Posted: Fri Sep 25, 2020 7:31 am
by yaroslav (staff)
Greetings,
This implies that both sync and heartbeat channels are down.
Can you ping these IP addresses? Normally, if you see that sign you should try disabling jumbos on your NICs, check the driver, and firmware versions. There might be a faulty NIC too. First, try pinging.

Re: monitor using powershell

Posted: Fri Sep 25, 2020 7:47 am
by abhi2101
yes, the channels are down.

my query is how we can get these status using powershell ?

Re: monitor using powershell

Posted: Fri Sep 25, 2020 8:13 am
by yaroslav (staff)
At this point, there is no way to get that in PowerShell using the existing scripts.
You are always welcome to develop your own script though using the parts of the existing ones.

Re: monitor using powershell

Posted: Fri Sep 25, 2020 8:37 am
by abhi2101
you mean that there is enough commands in the supplied scripts which can help us do that ?

Re: monitor using powershell

Posted: Fri Sep 25, 2020 9:09 am
by yaroslav (staff)
No, currently, there is no such a ready script and I am not sure if there are the commands that enable checking StarWind VSAN links' health status.
Regular ping -t here should be enough I guess; if there is an interruption or delay, the alert has to be generated.

Re: monitor using powershell

Posted: Fri Sep 25, 2020 7:19 pm
by yaroslav (staff)
I have just realized that you can set up notifications for these events in application logs https://www.starwindsoftware.com/help/E ... dVSAN.html.