VMware Cloud Community
admin
Immortal
Immortal

Any Body have any thoughts on this problem

I’m able to mount the drives when using bpbrowse-start or copy the .vmdk files when using vcbmounter. So it would seem that things are correct in the config.js file. It’s just that the bpstart_notify.bat script won’t work. When I run it independently from a command line, I get a syntax error.

C:\Program Files\VERITAS\NetBackup\bin>call "C:\Program Files\VMware\VMware Consolidated Backup Framework\netbackup\pre-command.bat" NT_RTVMWVC1

The syntax of the command is incorrect.

If I run pre-command.bat by itself with the policy name specified, nothing happens.

0 Kudos
2 Replies
peetz
Leadership
Leadership

The syntax error you get is because of an annoying "feature" in the Windows cmd-script language. There is a line

for /f %%i in ...

in the file. The double % is only valid syntax if the script-file is executed by an independamt cmd.exe instance. If you call the script interactively (which you are doing by using the internal command call[/i]) then a single % sign would be required.

So, execute it again, but without using call[/i].

\- Andreas

Twitter: @VFrontDe, @ESXiPatches | https://esxi-patches.v-front.de | https://vibsdepot.v-front.de
peetz
Leadership
Leadership

The script also assumes a pre-defined env. variable called VCBBASE.

If you call the script independently from the VCB framework (which probably defines the variable before calling the script) you need to define it yourself:

set VCBBASE="C:\Program Files\VMware\VMware Consolidated Backup Framework"

or

set VCBBASE="C:\Program Files\VMware\VMware Consolidated Backup Framework\netbackup"

Not sure which one it is looking for.

Twitter: @VFrontDe, @ESXiPatches | https://esxi-patches.v-front.de | https://vibsdepot.v-front.de