
Solved!
Go to SolutionNDMP (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
Responses (4)
Solutions (0)

Paul_K
8 Posts
622
0
Posted 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.