NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Active IQ Unified Manager Discussions

Run Nodeshell Command ifstat in Powershell

El_Feuro
4,476 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
4,401 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
4,402 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