Active IQ Unified Manager Discussions
Active IQ Unified Manager Discussions
Hi,
Are there any way in CLI or powershell/dataontap to list the contents of a snapshot ?
In UM GUI restore only displays 7 items at the time.
~pal
Solved! See The Solution
Hi,
You could potentially list the contents of the volume snapshot\directory using the Read-NcDirectory CmdLet. EG
PS C:\> get-help Read-NcDirectory NAME Read-NcDirectory SYNOPSIS List the contents of a directory. SYNTAX Read-NcDirectory [-Path] <String> [-Attributes <FileInfo>] [-VserverContext <String>] [-Controller <NcController[]>] [<CommonParameters>] Read-NcDirectory -Template [-VserverContext <String>] [-Controller <NcController[]>] [<CommonParameters>]
I posted an example here (for 7-mode) but the same principle applies. You'd just need to adjust the CmdLets for cDOT and the mount point of the directory (including the snapshot name) you wanted to list files in.
Hope that helps
/Matt
Hi,
You could potentially list the contents of the volume snapshot\directory using the Read-NcDirectory CmdLet. EG
PS C:\> get-help Read-NcDirectory NAME Read-NcDirectory SYNOPSIS List the contents of a directory. SYNTAX Read-NcDirectory [-Path] <String> [-Attributes <FileInfo>] [-VserverContext <String>] [-Controller <NcController[]>] [<CommonParameters>] Read-NcDirectory -Template [-VserverContext <String>] [-Controller <NcController[]>] [<CommonParameters>]
I posted an example here (for 7-mode) but the same principle applies. You'd just need to adjust the CmdLets for cDOT and the mount point of the directory (including the snapshot name) you wanted to list files in.
Hope that helps
/Matt
Exactly what i was looking for !
Thx Matt