#SnapDiff script.

1 messages · Page 1 of 1 (latest)

runic osprey
#

I was just asked the following question.

"Someone left the company, they deleted stuff, we don't know what was deleted, can you tell us? Oh and we don't know when it was deleted"

I was thinking back in 7-mode days, I could use snapdiff and compare the daily snapshots and find out what files went missing. Is there a way to do this with cluster mode snapdiff? Does a script exist that allows you to see what files are missing between snapshots?

Thanks in advance

sick stream
#

I have just tried my old script (written for ONTAP 9.4) and it still seems to work fine with 9.14.1 😉 feel free to use it as inspiration

#

you still need the old SnapDiff API enabled though (there's a hidden command which enables SnapDiff V2, which you can get via PVR)

sick stream
#

oh wait I see it's even properly documented now here and in the KB, so no need for a PVR anymore I think?

fallow spear
#

v2 is supported again after a short hiatus. The KB has the version list. The cmd in the KB and an appropriate LIF should be all you need from the ONTAP side.

runic osprey
#

thanks, I will look at this, I was using an rsync command but that requires a metadata walk. Thanks.

runic osprey
runic osprey
sick stream
runic osprey
#

do you know the name, is it NaServer? pip couldn't find that.

sick stream
#

ah you mean how the collection is called? hmm I don't remember and I can't check right now as I'm at home... "netapp"? "ontap"? 🤔

runic osprey
#

no worries, I am googling. I installed the netapp-ontap module, but still getting an error:
ModuleNotFoundError: No module named 'NaServer'