cancel
Showing results for 
Search instead for 
Did you mean: 

User Script is not executing

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

1 Solution

Accepted Solutions
Accepted Solution!

The actual issue here was the

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.

View solution in original post

13 Replies

What happens if you take the

What happens if you take the commands and run them manually ? If the scripts really aren't executing, then nothing in NBU s going to help as it is an os problem. Do the scripts have execute permissions for example (if required in windows - not 100% sure )

Yes policy executing

Yes policy executing successfully manually. I need to check the permissions.

permission seems not be an

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.

I'm a UNIX guy, so I could be

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?

I have tried all possible

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

I'm a unix guy also ... I

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.

Add the directories the the PATH user variable (Right click computer, Properties, Advanced System Settings, Environment Variables (Path is under System variable ), For example.
 
C:\Perl\site\bin;C:\Perl\bin;C:\Oracle\Ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\Program Files\RSA SecurID Token Common;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Symantec\pcAnywhere\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Enterprise Vault\EVClient\;C:\Program Files\Symantec\Workspace Virtualization\;C:\Program Files\Veritas\NetBackup\bin;C:\Program Files\Veritas\NetBackup\bin\admincmd

Dear, I have tried the script

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.

ONLY NBU server can execute

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

OK - so your colleague

OK - so your colleague followed my advice and added bp.conf entry on the master server:

SERVER = HBRABKPWEB1

https://www-secure.symantec.com/connect/forums/unable-configure-user-script-flash-backup-windows-cli...

Thats a good point Marianne -

Thats a good point Marianne - -i is server only.

WHy not just run the jobs via nbpem ... make your life a lot easier ....

We have  changed all the

We have  changed all the policies to Standard as the these servers are having some patches issue.

Thanks for you support. yes

Accepted Solution!

The actual issue here was the

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.

View solution in original post

Hi Marianne , these policies

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