09-01-2015 06:05 AM
Hi there,
I just imported one backup image which was produced using a different NBU domain. NBU is telling me, using bpimagelist, that the backup image exists (after the Import). Now, I'd like to get a full listing (text that I can redirect to a file) of that backup image's contents, so that I can show it to the owners of the data, and then let them sleep well. bplist is telling me that "no entity was found", even though I try to use it in the simplest of ways (only specifying the dates range and the name of the client). Any ideas? Thanks! :)
Solved! Go to Solution.
09-01-2015 07:36 AM
OK. I think I got it. The "-PI" option seems to have done the trick. I am getting something now.. Just redirected the output to a text file so that I can take a look afterwards.
09-01-2015 06:10 AM
Now I tried something, which is to complicate the syntax a little bit by adding -keyword "" and the options -C and -S. For -C, I put the client's name (as read on the image's name) and, for -S, I put the original Master server's name. The error I get now is:
EXIT STATUS 135: client is not validated to perform the requested operation
09-01-2015 06:13 AM
bplist is the correct command, but the options supplied need to be 100% correct.
First option you need to double-check is the client name. It needs to be exactly as per the name in the image:
CLIENT1 != Client1 != client1 != client1.fqdn.
The next option to double-check is date-range of original backup.
Can you show us extract of Results of successfully imported image?
This will help to determine correct bplist options.
*** EDIT ****
-S must be the name of the master server where you have imported the image and where you may want to run the restore.
09-01-2015 06:24 AM
The "No.Restrictions" file didn't help. Actually, I can browse the image using the BAR utility, and then restore without any problem. What I'd like to get is a listing in text format. Still investigating..
09-01-2015 06:26 AM
Thanks, Marianne. I'll try that.
09-01-2015 06:33 AM
As stated by others - you must get the syntax exactly right.
If you can restore from it, and browse it in a GUI - then you can definitely list it. If your list command fails, then your list command is incorrect.
09-01-2015 06:33 AM
A "No.Restrictions" file completely opens up your backup environment and allows any client to restore any other client data.
It is quite rare to implement that file - unless security is of zero concern to you.
09-01-2015 06:35 AM
No.Restrictions is only neccessary if you want to initiate the restore from another client.
Carefully look at the options that you select in BAR GUI:
Server Name (Master)
Client Name
Policy Type
Backup date
If the options used with bplist matches those used in BAR, the command will work.
You may wat to create bplist and bprestore log folders on the master under netbackup\logs.
After successful browse in BAR GUI, have a look at the options logged in bplist log.
Another 'must-have' log folder is bprd on the master.
If the folder does not exist, create it and restart NBU to enable the log.
**** EDIT ****
I found and example from an old bprd log after successful browse in BAR:
00:30:02.215 [4824.6664] <2> fileslist: client = fpserver
....
00:30:02.215 [4824.6664] <2> fileslist: client_type = 17
.....
00:30:02.215 [4824.6664] <2> fileslist: starttime = 1283506090
00:30:02.215 [4824.6664] <2> fileslist: endtime = 1283506090
With this type of info, we can work out bplist command.
09-01-2015 07:01 AM
Hi sdo,
Actually this is an ad-hoc environment with no clients (except the Master server itself), built on purpose to import backup images taken on another master server. Anyway thanks, these comments are always useful and a good reminder. :)
09-01-2015 07:05 AM
Hi,
I got entries like those after creating the log dirs, raising verbosity to 3 (should I go up to 5?) and then launching my bplist command. This looked interesting:
db_getCLIENT_by_hostname: cannot access() C:\Program Files\Veritas\NetBackup\db\client: No such file or directory (2)
The bplist log file didn't appear until I launched bplist on a cmd window. BAR doesn't make the bplist log file appear (pity).
09-01-2015 07:13 AM
I don't think you need to increase logging level.
bprd log will help. I'm sure about that.
The snippet that I have posted above was from GUI browse.
Just remember to restart NBU after creating bprd folder.
09-01-2015 07:34 AM
NBU version in the original NBU server and this one coincide (7.6.0.4). I don't mean they should, but they coincide.
Client name is correct. Dates range is actually wider than needed. I made sure there's no other backup image from the same policy in the same time range that could be creating confusion.
Just as a reminder: I managed to import the backup image. I can browse its contents on BAR.
After browsing on BAR, I looked and the bprd log and saw the same error message I was reporting before, hence it actually has no importance. The name of the client is correct. NBU server name is correct (the one I am trying to run this on). Start time and end time appear as numbers, but that should be OK, too. Filepath appears in Unix format, cool, although I tried with/ '/', "/', \, '\' "\" and the end of the bplist command, with no success. There's a "sched_type" parameter on bprd log file that I don't know how to translate into bplist syntax.
09-01-2015 07:36 AM
OK. I think I got it. The "-PI" option seems to have done the trick. I am getting something now.. Just redirected the output to a text file so that I can take a look afterwards.
09-01-2015 07:49 AM
Something like '-R /' will also work. or '-R 5 /' for 5 levels deep.
Without a starting point, the search will be done as per the folder where you issue the command from.
09-02-2015 01:20 AM
Thanks a lot Marianne and sdo. I got the listing and my user (customer) is happy. :)