Microsoft Virtualization Discussions

I need help with a script

CASTROJSEC

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

1 ACCEPTED SOLUTION

coreywanless

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

1 REPLY 1

coreywanless

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

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public