Microsoft Virtualization Discussions

I need help with a script

I am new to scripting and I am trying to figure out how to generate a report of LUN snapshots.  Any suggestions?  Thank you.


Re: I need help with a script

It would look something like this:

Import-Module DataOnTap

$password = ConvertTo-SecureString "MySuperSecretPassword" -AsPlainText –Force

$cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList "root",$password

get-nalun | export-csv C:\LunReport.csv

Of course if you have multiple filers it will get a little more complicated.

View solution in original post

Cloud Volumes ONTAP
Review Banner
All Community Forums