I tried to script the following to collect some information that I would normally have to SSH into the filer to collect. Trying to get this to run but it seems to just hang and cannot break out of it.
$filerName = "napp01"
$credential = Get-Credential
$command = "priv set diag;sysstat -M 1"
Connect-NaController -Name $filerName -Credential $credential
Invoke-NAssh -Controller $filerName -Command $command -Credential $credential
Any help would be appreciated. Thank you in advance.