Ejemplo n.º 1
0
        private void getVersion(String[] args, VMotion vmotionObj)
        {
            String vmname = cb.get_option("vmname");
            String sourcehost = cb.get_option("sourcehost");
            String targethost = cb.get_option("targethost");
            String targetpool = cb.get_option("targetpool");
            String dataname = cb.get_option("targetdatastore");

            if (cb.option_is_set("validate"))
            {
                provisionChkr = cb.getConnection().ServiceContent.vmProvisioningChecker;
                Console.WriteLine("Investing the VMotion capability of VM in a Host");
                checkVMotionCompatibility(vmname, sourcehost, targethost, targetpool, dataname);
            }
            else
            {
                migrate_or_relocate_VM(vmname, sourcehost, targethost, targetpool, dataname);
            }
        }
Ejemplo n.º 2
0
        private void getVersion(String[] args, VMotion vmotionObj)
        {
            String vmname     = cb.get_option("vmname");
            String sourcehost = cb.get_option("sourcehost");
            String targethost = cb.get_option("targethost");
            String targetpool = cb.get_option("targetpool");
            String dataname   = cb.get_option("targetdatastore");

            if (cb.option_is_set("validate"))
            {
                provisionChkr = cb.getConnection().ServiceContent.vmProvisioningChecker;
                Console.WriteLine("Investing the VMotion capability of VM in a Host");
                checkVMotionCompatibility(vmname, sourcehost, targethost, targetpool, dataname);
            }
            else
            {
                migrate_or_relocate_VM(vmname, sourcehost, targethost, targetpool, dataname);
            }
        }
Ejemplo n.º 3
0
        public static void Main(String[] args)
        {
            VMotion app = new VMotion();

            cb = AppUtil.AppUtil.initialize("VMotion", VMotion.constructOptions(), args);
            Boolean valid = app.customValidation();

            if (valid)
            {
                try
                {
                    cb.connect();
                    app.getVersion(args, app);
                    cb.disConnect();
                }
                catch (Exception e)
                {
                }
                Console.WriteLine("Press any key to exit: ");
                Console.Read();
            }
        }
Ejemplo n.º 4
0
 public static void Main(String[] args)
 {
     VMotion app = new VMotion();
     cb = AppUtil.AppUtil.initialize("VMotion", VMotion.constructOptions(), args);
     Boolean valid = app.customValidation();
     if (valid)
     {
         try
         {
             cb.connect();
             app.getVersion(args, app);
             cb.disConnect();
         }
         catch (Exception e)
         {
         }
         Console.WriteLine("Press any key to exit: ");
         Console.Read();
     }
 }