#SnapDiff V1/2 API example
1 messages · Page 1 of 1 (latest)
sure. All you need is the NetApp Manageabillity SDK (and from that only the three files NaServer.py, NaErrno.py and NaElement.py). Let me see if I can post my simple sample script here...
okay, should have figured that it's too large for Discord 🙂
you can find the sample script here
should be self-explanatory (if you give one snapshot name, it diffs against the AFS, if you give two, it diffs between those two.. You can and should filter the output to only give you changes where the actual data has changed, and not metadata)
and always clean up the iterators at the end, there were some bugs in the past where the filer could panic if too many ZAPI iterators were active 🙂
also please be aware that this code is from 2015 and does not contain lots of error checking etc. so use it at your own risk and don't blame me if anything breaks (although I have just tested it against a 9.16.1P5 system and it still works, so there's that)