William Lam, the guy who made the GettoVCB script, has releases another great script to VMware Code Central. With  ftCLI.pl, the vSphere Admin can manage VMware Fault Tolerance through the Service Console or other supported CLI.

Description: Managing VMware Fault Tolerant via the command line.
Params
: The following operations are supported: create|enable|disable|stop
Assumption
: Your environment is FT capable and is configured properly
Requirement
:
vSphere vCenter 4.0
ESX(i) 4.0
Advanced, Enterprise, Enterprise Plus or Eval licensing

With the script, you can initially configure a virtual machine for Fault Tolerance,(temporarily) enable and disable the feature and completely remove FT from a VM. As stated above, you still need to configure the VMware ESX(i) host for VMware Fault Tolerance.

To create a newly fault tolerant VM, you’ll want to use create operation and specify the VM that you would like to protect (A valid host within the cluster will be selected for you):

[[email protected] ~]$ ./ftCLI.pl --server reflex.primp-industries.com
  --username primp --vmname Devastator --operation create
Enter password:
Creating FT secondary VM for "Devastator" ...
        Successfully created FT protection for "Devastator"!

If you have fault tolerant enabled on a specific VM and would like to disable, you’ll want to use disable operation:

[[email protected] ~]$ ./ftCLI.pl --server reflex.primp-industries.com
  --username primp --vmname Devastator --operation disable
Enter password:
Disabling FT secondary VM for "Devastator" on host
  "everest.primp-industries.com" ...
        Successfully disabled FT protection for "Devastator"!

If you have fault tolerant disabled on a specific VM and would like to re-enable, you’ll want to use enable operation:

[[email protected] ~]$ ./ftCLI.pl --server reflex.primp-industries.com
  --username primp --vmname Devastator --operation enable
Enter password:
Enabling FT secondary VM for "Devastator" on host
  "everest.primp-industries.com" ...
        Successfully enabled FT protection for "Devastator"!

If you like to turn off fault tolerant completely and destroy the secondary VM, you’ll want to use stop operation:

[[email protected] ~]$ ./ftCLI.pl --server reflex.primp-industries.com
  --username primp --vmname Devastator --operation stop
Enter password:
Turning off FT for secondary VM for Devastator ...
        Successfully stopped FT protection for "Devastator"!