This post is more than 5 years old
8 Posts
0
950
NDMP (NetApp) job listing details
Does anyone know a way to dump an NDMP (NetApp) job's details to a file? Specifically, I'm looking to get a listing of all the directories that were backed up in a specific NDMP job. For Windows jobs I'd use "avtar --list" or AvFS but the results from a NDMP job aren't usable in the same fashion. I think what I need is to be able to access the Table of Contents for the NDMP job but I have no idea how I can do that.
On NDMP jobs, the "avtar --list" command returns output similar to:
/vol/Common/CommonQ/file/00/007/6ef
/vol/Common/CommonQ/file/00/007/6f0
/vol/Common/CommonQ/file/00/007/6f1
/vol/Common/CommonQ/file/00/007/6f2
/vol/Common/CommonQ/file/00/007/6f3
/vol/Common/CommonQ/file/00/007/6f4
/vol/Common/CommonQ/file/00/007/6f5
/vol/Common/CommonQ/file/00/007/6f6
/vol/Common/CommonQ/file/00/007/6f7
/vol/Common/CommonQ/file/00/007/6f8
On NDMP jobs, the AvFS mount point returns output similar to:
drwxrwxrwx 1 root root 4096 Dec 31 1969 073
drwxrwxrwx 1 root root 4096 Dec 31 1969 072
drwxrwxrwx 1 root root 4096 Dec 31 1969 071
drwxrwxrwx 1 root root 4096 Dec 31 1969 070
drwxrwxrwx 1 root root 4096 Dec 31 1969 06f
drwxrwxrwx 1 root root 4096 Dec 31 1969 06e
drwxrwxrwx 1 root root 4096 Dec 31 1969 06d
drwxrwxrwx 1 root root 4096 Dec 31 1969 06c
Paul_K
8 Posts
0
May 7th, 2013 09:00
Working with an EMC support rep, we were able to track down what command the Avamar Admin gui uses to get a directory listing. We browsed a job for restore in the gui and then immediately looked at the mcserver.log.0. Turns out it was running a normal "avtar --list" command but also included a long hex number at the end. Upon further investigation I found that the hex number could be converted to a string; the result being the absolute path of the job I was browsing. The avtar command doesn't seem to care whether the value is in hex or the decimal string value. So, the solution is to run an avtar command similar to the following (variables substituted) using the absolute path of the job you're querying:
avtar --list --verbose --noinformationals --path='$clientPath' --labelnum='$labelNum' --format='xml' '$absoluteFolderPath'
The problem is that an absolute path automatically disables directory recursion. I've had to cobble together a script that manually recurses the folder structure by running a new "avtar --list" command for each directory found. This is going to take forever to finish on my big jobs but at least I can get to the data I need.
mradamk
215 Posts
1
May 1st, 2013 07:00
Paul,
The approach you are using for Windows will work for NDMP backups as long as they are not NDMP for NetApp.
For NetApp NDMP backups I don’t believe there is a method to list the backup contents in an intelligible way.
regards,
Adam
mradamk
215 Posts
0
May 1st, 2013 07:00
On thing that may work is to install Avamar FS service on the Utility node and then navigate in the file system to /mnt/axion.
There is a chapter in the Avamar Admin guide on the use of AvFS.
Paul_K
8 Posts
0
May 1st, 2013 07:00
I was afraid of something like that. I wonder if there's a workaround since you can successfully browse the directory structure of a NetApp NDMP job using the Backup and Restore workspace of Avamar Admin.