Active IQ Unified Manager Discussions

Run Nodeshell Command ifstat in Powershell

El_Feuro
2,688 Views
Spoiler
 

Hi,

 

I want to run a nodeshell command in Powershell. Is it possible?

Especially I want to get the amount of CRC errors on e0a and e0b ports.

For this purpose I use the "node run -node * ifstat e0a" command.

How can I check the CRC eroros on this ports and get informed wehn they increase?

 

Regard

Peter

1 ACCEPTED SOLUTION

donny_lang
2,613 Views

You can use the "Invoke-NcSsh" cmdlet to run any command (including nodeshell commands) like this:

 

Invoke-NcSsh -Command "node run -node * ifstat e0a" 

However, you may be able to also do it a little more elegantly and without a dependence on SSH by using the code posted by @asulliva in this thread: https://community.netapp.com/t5/Data-ONTAP-Discussions/Getting-interface-CRC-errors-using-NMSDK-API/td-p/131663

 

Donny

View solution in original post

1 REPLY 1

donny_lang
2,614 Views

You can use the "Invoke-NcSsh" cmdlet to run any command (including nodeshell commands) like this:

 

Invoke-NcSsh -Command "node run -node * ifstat e0a" 

However, you may be able to also do it a little more elegantly and without a dependence on SSH by using the code posted by @asulliva in this thread: https://community.netapp.com/t5/Data-ONTAP-Discussions/Getting-interface-CRC-errors-using-NMSDK-API/td-p/131663

 

Donny

Public