First...great initial release of a powershell interface. I have been pestering my NetApp team for one for the last year. As I have started playing with it, I have noticed some things that are difficult to use. As an example, the get-nasnapshot command's accesstime property has a type of System.Int64. A date time value would have been much easier to work with. I end up using code that looks ike this:
Get-NaVol myvolume | Get-NaSnapshot | select Name, @{Name="AccessTime"; Expression = {([datetime]"1/1/1970").AddSeconds($_.AccessTime).ToLocalTime()}}
Additionally, the NetApp.Ontapi.Filer.Snapshot.SnapshotInfo object doesn't relate back to a volume. I would love to use a simple expression to find all snapshots older than 7 days on a filer (something that wsa easily doable using the CodePlex PoshOnTap project):
get-navol | get-nasnapshot | where-object {$_.AccessTime -lt (Get-Date).AddDays(-7)}) | sort AccessTime
Are there plans to release a v2 with more nice-to-haves? Am I misunderstanding the best way to accomplish some of these tasks?