Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Import-Module DataONTAP
$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.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Can you confirm what version of Ontap and Powershell you running?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The filer is 8.1.4P7
Powershell version is 5.1.19041.610
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Are you connecting to the Controller via RPC or HTTP/HTTPS?
Thanks
