Software Development Kit (SDK) and API Discussions

Can't read snapshot contents using Read-NcDirectory (Record doesn't exist)

DavidsMidnightMagic
293 Views

Hello community,

 

I try to read the contents of a volume snapshot by using Read-NcDirectory but I get always "WARNING: Record doesn't exist".

The volume itself is readable, also the .snapshot directory, but not the contents of a snapshot.

Using NFS or CIFS there is no problem to read the contents.

 

snapdir-acces of the volume: true

172.17.208.200 is a Vserver LIF.

Login user role: vsadmin

Login user application: http

PSTK Version: 9.16.1.2501

ONTAP Version: 9.12.1P3

 

PS C:\Windows\system32> Connect-NcController 172.17.208.200

Name                 Address           Vserver              Version
----                 -------           -------              -------
172.17.208.200       172.17.208.200    mytestvs             NetApp Release 9.12.1P3: Tue May 02 13:02:11 UTC 2023


PS C:\Windows\system32> Read-NcDirectory -Path /vol/mytestvol/.snapshot

Name                                     Type            Size      Created     Modified Owner Group   Perm Empty
----                                     ----            ----      -------     -------- ----- -----   ---- -----
.                                        directory       4 KB    5/19/2021    2/27/2025     0     0    777 False
..                                       directory       4 KB    5/19/2021    1/31/2025     0     0    777 False
daily.2025-02-21_0010                    directory       4 KB    5/19/2021    1/31/2025     0     0    777 False

PS C:\Windows\system32> Read-NcDirectory -Path /vol/mytestvol/.snapshot/daily.2025-02-21_0010
WARNING: Record doesn't exist
PS C:\Windows\system32>

 

Every hint / idea is welcome.

1 REPLY 1

Sanaman
210 Views

I have no problem in reading my snap directory folder

PS C:\Users\user\Scripts> Connect-NcController mycontroller

Name Address Vserver Version
---- ------- ------- -------
mycontroller 10.100.100.100 NetApp Release 9.14.1P10: Thu Nov 28 12:32:16 UTC 2024

 

PS C:\Users\user\Scripts> Read-NcDirectory -Path /vol/Apps/.snapshot/daily.2025-02-27_0010

Name Type Size Created Modified Owner Group Perm Empty
---- ---- ---- ------- -------- ----- ----- ---- -----
. directory 4 KB 3/10/2019 12/07/2024 0 0 777 False
.. directory 4 KB 12/11/2021 4/03/2025 0 0 777 False
Suppliers directory 4 KB 8/10/2019 8/10/2019 0 1 777 False
STP directory 4 KB 8/10/2019 8/10/2019 0 1 777 False
PurchaseOrders directory 4 KB 8/10/2019 9/10/2019 0 1 777 False
SAP directory 4 KB 8/10/2019 8/10/2019 0 1 777 False
reports directory 4 KB 10/12/2019 10/12/2019 0 1 777 False
Holdings directory 4 KB 8/10/2019 8/10/2019 0 1 777 False
Angels directory 4 KB 8/11/2019 8/11/2019 0 1 777 False

Public