Microsoft Virtualization Discussions

Running native commands via powershell

davidrnexon
6,496 Views

Hi,

Is there any ontap powershell cmdlet that allows you to run native commands on the filer.

For example: <powershell command> "node run <nodename> sysstat" (For c-mode) ? OR

<powershell command> "reallocate status" (For c-mode)

2 REPLIES 2

vinith
6,496 Views

Hey David,

You can use Invoke-NcSsh cmdlet for running native cli commands via powershell. and example below.

C:\PS>Invoke-NcSsh system health status show

KZAWILINSKI
6,496 Views

If you run sysstat (I would assume the same would apply to any command with similar functionality) without setting it to run for a specific number of cycles there is no way to send a break so it would just hang. I would be awesome to be able to run a full perfstat using this, it seems that the ssh client works way better than any other I have yet seen and would give the data collection a little boost in efficiency.

Public