12-19-2013 01:02 PM
Hi All,
I have created flash backup user scripts for 12 servers. out of that 6 server's scripts are having issue. I unable to get any error msg .
I need your help.
Scripts are as follows.
D:
cd Veritas\NetBackup\bin
bpbackup.exe -i -p xxx_D_W_M_STBY_xxxx_Flash -s D_xxxx -S xxx
Master server Solaris sparc and NBU 7.5.0.6
Media server windows 2008 and NBU 7.5.0.4
Kindly confirm any logs needed.
Thanks and regards,
Sagar
Solved! Go to Solution.
12-30-2013 12:23 AM
The actual issue here was the fact that you tried to run immediate backup (-i) of a normal scheduled policy from a client without a Server entry for the client on the master.
User type backup with a user type schedule (no -i) does not need a Server entry on the master.
12-19-2013 03:09 PM
12-19-2013 03:31 PM
Yes policy executing successfully manually. I need to check the permissions.
12-19-2013 03:36 PM
permission seems not be an issue. everything is right about permissions.
when i tried to execute the script from master from /netbackup/bin path. it executed successfuly on master. But it did not happened on client side. all 12 servers are same configuration.
12-19-2013 03:58 PM
I'm a UNIX guy, so I could be totally wrong, but I think it works on your master because you're actually calling bpbackup from the folder it's contained in - check your path to bpbackup on your clients (I'm more used to seeing C:\Program Files\VERITAS\NetBackup\bin, for instance.)
Does "cd" work within a script? Maybe call bpbackup using the full path instead of trying to cd to the directory and then call it?
12-19-2013 04:22 PM
I have tried all possible ways to execute the scripts. will u give me a example how should script write with direct path?
cd is happening on the server.
D:
cd Veritas\Netbackup\bin\bpbackup.exe -i -p DAKC_W_M_xxxx_Flash -s W_xxxx -S xxx
12-19-2013 04:24 PM
I'm a unix guy also ...
I would image this:
d:\veritas\netbackup\bin\bpbackup.exe -i -p xxx_D_W_M_STBY_xxxx_Flash -s D_xxxx -S xxx
It is better to put the NBU paths
<install path>\veritas\netbackup\bin
<install path>\veritas\netbackup\bin\admincmd
<install path>\veritas\volmgr\bin
... into the OS PATH variable, that way you can just type the command without having to cd to the dir.
Eg.
12-19-2013 04:33 PM
Dear,
I have tried the script as per your suggestion. script is executed but not coming in activity monitor.
First time I am facing this user script issue.
12-19-2013 09:11 PM
ONLY NBU server can execute 'bpbackup -i'.
-i is immediate backup, similar to right-click on master server GUI to run policy manually.
Add a SERVER entry on the master server for this client hostname to allow -i option.
To troubleshoot, create bprd log folder on the master and restart NBU to enable the log.
bprd log will show incoming backup request and how master server was handling the request.
Logs on the client should be bpbackup folder and possibly a log file that you can add with -L option in bpbackup command.
PS:
Best to specify command in script as follows:
D:\Veritas\Netbackup\bin\bpbackup.exe -i -p DAKC_W_M_xxxx_Flash -s W_xxxx -S xxx
12-19-2013 11:12 PM
OK - so your colleague followed my advice and added bp.conf entry on the master server:
SERVER = HBRABKPWEB1
12-19-2013 11:14 PM
Thats a good point Marianne - -i is server only.
WHy not just run the jobs via nbpem ... make your life a lot easier ....
12-29-2013 11:41 PM
We have changed all the policies to Standard as the these servers are having some patches issue.
Thanks for you support.
12-30-2013 12:23 AM
The actual issue here was the fact that you tried to run immediate backup (-i) of a normal scheduled policy from a client without a Server entry for the client on the master.
User type backup with a user type schedule (no -i) does not need a Server entry on the master.
01-05-2014 10:43 PM
Hi Marianne ,
these policies were flash backup policies not normal policies and also we tried i option because there was no backup window mentioned in policy and no path. So we tried to created the user flash backup policy with i option.
We entered all the required entries in media and master server.
Thanks,
Sagar