VMware Cloud Community
beverlyclaire
Contributor
Contributor

How to manually run TSMIM's pre-command.bat & post-command.bat

Hello all,

I've successfully configured VCB, TSM V5.3 and VMware's integration module TSMIM to run scheduled backup jobs of our virtual machines using the batch files provided by TSMIM.

C:\Program Files\VMware\VMware Consolidated Backup Framework\tsm

pre-command.bat

post-command.bat

When installing the module, the commands are copied to the TSM BA Client directory:

C:\Program Files\Tivoli\tsm\baclient

pre-command.bat

post-command.bat

The TSM client option files have the following lines:

PRESCHEDULECMD "pre-command.bat job_name guestos_list"

POSTSCHEDULECMD "post-command job_name"

Using TSM's scheduler function, the commands are run on schedule, creating the virtual machine snapshots and then deleting them after the backup job is finished.

What I would like to know is how to run the above pre- and post- commands without using TSM's scheduler (for example, using instead Windows' task scheduler, or a third-party job management software). I've tried running them on the DOS prompt, but the snapshots aren't created. Is there a way to manually create the virtual machine snapshots with the above commands?

The README-tsm.html that comes with the integration module indicates that it is possible to run the commands manually, but doesn't give any particulars.

Thank you for your help.

0 Kudos
6 Replies
gdesmo
Enthusiast
Enthusiast

I am trying to run the install that you speak of. But I am getting a path not found. All mine are default. Did you run into this?

C:\Program Files\VMware\VMware Consolidated Backup Framework\tsm>install.bat

TSM BackupClient path on this server

? y

Path to VMware VCB Integration Framework

? y

Configuration Summary

=====================

Path to VMware VCB Integration Framework:

-->y

TSM BackupClient path on this server:

-->y

Confguration Path ok

y/N? y

Error: Path not found

Error Code: 76

C:\Program Files\VMware\VMware Consolidated Backup Framework\tsm>

Ok I got it to work be providing paths.

C:\Program Files\VMware\VMware Consolidated Backup Framework\tsm>install.bat

TSM BackupClient path on this server

?

Path to VMware VCB Integration Framework

?

Configuration Summary

=====================

Path to VMware VCB Integration Framework:

-->C:\Program Files\VMware\VMware Consolidated Backup Framework

TSM BackupClient path on this server:

-->C:\Program Files\Tivoli\TSM\baclient

Confguration Path ok

? y

Please review the VCB Framework configuration file

C:\Program Files\VMware\VMware Consolidated Backup Framework\config\config.js

and the Tivoli Storage Manager Interoperability Module configuration file

C:\Program Files\VMware\VMware Consolidated Backup Framework\tsm\config.js

Do you want to review the VCB Framework configuration file

C:\Program Files\VMware\VMware Consolidated Backup Framework\config\config.js

now

? y

Do you want to review the Tivoli Storage Manager Interoperability Module configu

ration file C:\Program Files\VMware\VMware Consolidated Backup Framework\tsm\co

nfig.js

now

? y

For more information on how to use VCB with Tivoli Storage Manager,

please refer to C:\Program Files\VMware\VMware Consolidated Backup Framework\tsm

\README-tsm.html

Do you want to review this documentation now

? y

Tivoli Storage Manager VCB Interoperability Module has been successfully install

ed.

Note: Tivoli Storage Manager services needs to be stopped and restarted for envi

ronment variables to take effect.

0 Kudos
sbeaver
Leadership
Leadership

What commands are you using with the pre-command and post-command? This works for me with out issue and also you can use the vcbMounter.exe command

Steve Beaver

VMTN Forum Moderator

*Virtualization is a journey, not a project.*

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
0 Kudos
Rob_R_
Contributor
Contributor

So I'm in the midst of getting VCB configured with TSM, I've installed the TSMIM's and TSM Client 5.5 and am now configuring the preferences. According to the document I'm working off of it says to set the pre-command in the preferences for the schedule tab of the BAClient with "pre-command.bat VCB vm1.company.com-FullVM vm2.company.com-FullVM .... ". Is this correct? I have to actually list all the VM's I want to copy through the client in that little text box?

0 Kudos
gdesmo
Enthusiast
Enthusiast

Yes you are correct. List them all in that little box Smiley Happy

Or you can list them in your .opt file on your vcb proxy. Under the VMLIST command.

Check page 343...

0 Kudos
Rob_R_
Contributor
Contributor

Thanks GDesmo, I'll give it a go.

0 Kudos
ealaqqad
Enthusiast
Enthusiast

Just a small update that I thought many of you would like. With the release of TSM 5.5 and even better in TSM 6.0, IBM has improved the integration with VMware VCB.

They have included the "backup vm" command, which will allow you to back virtual machines using VCB & TSM without having to write or modify any scripts.

For more info please check my post at:

IBM Tivoli Storage Manager - TSM guide to securing VMware

I hope this will make up some TSM administrators day & get them to like VMware better :).

I hope this help some one, if it does please reward points.

Enjoy,

Eiad Al-Aqqad

System X & Storage Technical Specialist

Founder of http://www.VirtualizationTeam.com

Regards, Eiad Al-Aqqad Technology Consultant @ VMware b: http://www.VirtualizationTeam.com b: http://www.TSMGuru.com
0 Kudos