private void builtinOptions()
        {
            OptionSpec url         = new OptionSpec("url", "String", 1, "VI SDK URL to connect to", null);
            OptionSpec userName    = new OptionSpec("userName", "String", 1, "Username to connect to the host", null);
            OptionSpec password    = new OptionSpec("password", "String", 1, "password of the corresponding user", null);
            OptionSpec config      = new OptionSpec("config", "String", 0, "Location of the VI perl configuration file", null);
            OptionSpec protocol    = new OptionSpec("protocol", "String", 0, "Protocol used to connect to server", null);
            OptionSpec server      = new OptionSpec("server", "String", 0, "VI server to connect to", null);
            OptionSpec portNumber  = new OptionSpec("portNumber", "String", 0, "Port used to connect to server", "443");
            OptionSpec servicePath = new OptionSpec("servicePath", "String", 0, "Service path used to connect to server", null);
            OptionSpec sessionFile = new OptionSpec("sessionFile", "String", 0, "File containing session ID/cookie to utilize", null);
            OptionSpec help        = new OptionSpec("help", "String", 0, "Display user information for the script", null);
            OptionSpec ignorecert  = new OptionSpec("ignorecert", "String", 0, "Ignore the server certificate validation", null);
            OptionSpec ssoUrl      = new OptionSpec("ssoUrl", "String", 0, "Single Sign On Server URL", null);
            OptionSpec disablesso  = new OptionSpec("disablesso", "String", 0, "Disable the use of SSO server for login, and use deprecated login mechanism instead. 'false' by default", null);

            builtInOpts.Add("url", url);
            builtInOpts.Add("username", userName);
            builtInOpts.Add("password", password);
            builtInOpts.Add("config", config);
            builtInOpts.Add("protocol", protocol);
            builtInOpts.Add("server", server);
            builtInOpts.Add("portnumber", portNumber);
            builtInOpts.Add("servicepath", servicePath);
            builtInOpts.Add("sessionfile", sessionFile);
            builtInOpts.Add("help", help);
            builtInOpts.Add("ignorecert", ignorecert);
            builtInOpts.Add("ssoUrl", ssoUrl);
            builtInOpts.Add("disablesso", disablesso);
        }
 public static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[1];
     useroptions[0] = new OptionSpec("hostip", "String", 1
                                     , "IP of the host"
                                     , null);
     return useroptions;
 }
 private static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[1];
     useroptions[0] = new OptionSpec("storagepodname", "String", 1
                                    , "Storage pod name"
                                    , null);
     return useroptions;
 }
 /// <summary>
 /// This method is used to add application specific user options 
 /// </summary>
 ///<returns> Array of OptionSpec containing the details of application 
 /// specific user options 
 ///</returns>
 ///
 public static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[1];
     useroptions[0] = new OptionSpec("vmname", "String", 1
                                     , "Name of the Virtual Machine"
                                     , null);
     return useroptions;
 }
Пример #5
0
 public static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[1];
     useroptions[0] = new OptionSpec("vmpath", "String", 1
                                     , "Path of Virtual Machine"
                                     , null);
     return useroptions;
 }
Пример #6
0
 private static OptionSpec[] constructOptions() {
    OptionSpec [] useroptions = new OptionSpec[2];
    useroptions[0] = new OptionSpec("entityname","String",1
                                   ,"Name of the virtual entity"
                                   ,null);
    useroptions[1] = new OptionSpec("foldername","String",1,
                                    "Name of the folder",
                                    null);
    return useroptions;
 }
 /// <summary>
 /// This method is used to add application specific user options
 /// </summary>
 ///<returns> Array of OptionSpec containing the details of
 /// application specific user options
 ///</returns>
 private static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[2];
     useroptions[0] = new OptionSpec("dcName", "String", 1
                                 , "Name of the Datacenter"
                                 , null);
     useroptions[1] = new OptionSpec("vmDnsName", "String", 1,
                                  "Virtual machine dns name",
                                  null);
     return useroptions;
 }
Пример #8
0
 public static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[3];
     useroptions[0] = new OptionSpec("vmname", "String", 1
                                     , "Name of the virtual machine"
                                     , null);
     useroptions[1] = new OptionSpec("snapshotname", "String", 0
                                     , "Name of the snapshot name"
                                     , null);
     useroptions[2] = new OptionSpec("description", "String", 0
                                     , "Description"
                                     , null);
     return useroptions;
 }
Пример #9
0
 public static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[3];
     useroptions[0] = new OptionSpec("DatacenterName", "String", 1
                              , "Name of the Datacenter"
                              , null);
     useroptions[1] = new OptionSpec("vmPath", "String", 1,
                                     "A path to the VM inventory, example:Datacentername/vm/vmname",
                                     null);
     useroptions[2] = new OptionSpec("CloneName", "String", 1,
                                     "Name of the Clone",
                                     null);
     return useroptions;
 }
 public static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[3];
     useroptions[0] = new OptionSpec("hostname", "String", 1
                                     , "Name of the host"
                                     , null);
     useroptions[1] = new OptionSpec("memorysize", "Integer", 1,
                                     "Size of the memory",
                                     null);
     useroptions[2] = new OptionSpec("cpucount", "Integer", 1,
                                     "Number of the CPU count",
                                     null);
     return useroptions;
 }
        /*
         * taking out value of a particular key in the Hashtable
         * i.e checking for required =1 options
         */
        private ArrayList getValue(Hashtable checkOptions)
        {
            IEnumerator It  = checkOptions.Keys.GetEnumerator();
            ArrayList   vec = new ArrayList();

            while (It.MoveNext())
            {
                String     str   = It.Current.ToString();
                OptionSpec oSpec = (OptionSpec)checkOptions[str];
                if (oSpec.getOptionRequired() == 1)
                {
                    vec.Add(str);
                }
            }
            return(vec);
        }
Пример #12
0
 public static AppUtil initialize(String name, OptionSpec[] userOptions, String[] args)
 {
     AppUtil cb = new AppUtil(name);
     if (userOptions != null)
     {
         cb.addOptions(userOptions);
         cb.parseInput(args);
         cb.validate();
     }
     else
     {
         cb.parseInput(args);
         cb.validate();
     }
     return cb;
 }
        private Boolean checkDatatypes(Hashtable Opts, String keyValue, String keyOptions)
        {
            Boolean valid = false;

            valid = Opts.ContainsKey(keyValue);
            if (valid)
            {
                OptionSpec oSpec    = (OptionSpec)Opts[keyValue];
                String     dataType = oSpec.getOptionType();
                Boolean    result   = validateDataType(dataType, keyOptions);
                return(result);
            }
            else
            {
                return(false);
            }
        }
Пример #14
0
 private static OptionSpec[] constructOptions() {
   OptionSpec [] useroptions = new OptionSpec[5];
   useroptions[0] = new OptionSpec("dcName","String",1
                                  ,"Name of the Datacenter"
                                  ,null);
   useroptions[1] = new OptionSpec("vmDnsName","String",0,
                                   "Virtual machine dns name",
                                   null);
   useroptions[2] = new OptionSpec("hostDnsName","String",0
                                   ,"Host machine DNS name"
                                   ,null);
   useroptions[3] = new OptionSpec("vmPath","String",0,
                                   "VM path",
                                   null);
   useroptions[4] = new OptionSpec("vmIP","String",0
                                   ,"VM IP Address"
                                   ,null);
   return useroptions;
 } 
        private void print_options(Hashtable Opts)
        {
            String      type       = "";
            String      defaultVal = "";
            IEnumerator It;
            String      help        = "";
            ICollection generalKeys = (ICollection)Opts.Keys;

            It = generalKeys.GetEnumerator();
            while (It.MoveNext())
            {
                String     keyValue = It.Current.ToString();
                OptionSpec oSpec    = (OptionSpec)Opts[keyValue];
                if ((oSpec.getOptionType() != null) && (oSpec.getOptionDefault() != null))
                {
                    type       = oSpec.getOptionType();
                    defaultVal = oSpec.getOptionDefault();
                    Console.WriteLine("   --" + keyValue + " < type " + type + ", default " + defaultVal + ">");
                }
                if ((oSpec.getOptionDefault() != null) && (oSpec.getOptionType() == null))
                {
                    defaultVal = oSpec.getOptionDefault();
                    Console.WriteLine("   --" + keyValue + " < default " + defaultVal + " >");
                }
                else if ((oSpec.getOptionType() != null) && (oSpec.getOptionDefault() == null))
                {
                    type = oSpec.getOptionType();
                    Console.WriteLine("   --" + keyValue + " < type " + type + " >");
                }
                else if ((oSpec.getOptionType() == null) && (oSpec.getOptionDefault() == null))
                {
                    Console.WriteLine("   --" + keyValue + " ");
                }
                help = oSpec.getOptionDesc();
                Console.WriteLine("      " + help);
            }
        }
Пример #16
0
 private static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[9];
     useroptions[0] = new OptionSpec("dcname", "String", 1
                                    , "Datacenter name"
                                    , null);
     useroptions[1] = new OptionSpec("sdrsname", "String", 1,
                                     "Name for the new storage pod",
                                       null);
     useroptions[2] = new OptionSpec("behavior", "String", 0,
                                     "Storage DRS behavior, true if automated. It is manual by default.",
                                      null);
     useroptions[3] = new OptionSpec("iolatencythreshold", "String", 0,
                                     "Storage DRS makes storage migration"
                                     + "recommendations if I/O latency on one (or more)"
                                     + "of the datastores is higher than the specified"
                                     + "threshold. Range is 5-50 ms, default is 15ms",
                                       null);
     useroptions[4] = new OptionSpec("spacethreshold", "String", 0,
                                     "Storage DRS makes storage migration"
                                     + "recommendations if space utilization on one"
                                     + "(or more) of the datastores is higher than the"
                                     + " specified threshold. Range 50-100%, default is 80%,",
                                     null);
     useroptions[5] = new OptionSpec("utilizationdiff", "String", 0,
                                     "Storage DRS considers making storage migration"
                                    + "recommendations if the difference in space"
                                    + "utilization between the source and  destination"
                                    + "datastores is higher than the specified threshold."
                                    + "Range 1-50%, default is 5%",
                                       null);
     useroptions[6] = new OptionSpec("ioloadimbalancethreshold", "String", 0,
                                     " Storage DRS makes storage migration"
                                     + "recommendations if I/O load imbalance"
                                     + "level is higher than the specified threshold."
                                     + "Range is 1-100, default is 5",
                                      null);
     useroptions[7] = new OptionSpec("loadbalinterval", "String", 0,
                                    " Specify the interval that storage DRS runs to"
                                    + "load balance among datastores within a storage"
                                    + "pod. it is 480 by default.",
                                      null);
     useroptions[8] = new OptionSpec("datastore", "String", 0,
                                     "Name of the datastore to be added in StoragePod.",
                                     null);
     return useroptions;
 }
 private static OptionSpec[] constructOptions() {
    OptionSpec [] useroptions = new OptionSpec[1];
    useroptions[0] = new OptionSpec("taskname","String",1
                                    ,"Name of the task to be scheduled"
                                    ,null);
    return useroptions;
 }
 private static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[3];
     useroptions[0] = new OptionSpec("host", "String", 1
                                    , "Name of the host"
                                    , null);
     useroptions[1] = new OptionSpec("info", "String", 0,
                                     "Type of info required,only [cimticket] for now",
                                     "cimticket");
     useroptions[2] = new OptionSpec("file", "String", 0,
                                     "Full path of the file to save data to"
                                     , "cimTicketInfo.txt");
     return useroptions;
 }
Пример #19
0
 public static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[3];
     useroptions[0] = new OptionSpec("vmname", "String", 1
                                     , "Name of Virtual Machine"
                                     , null);
     useroptions[1] = new OptionSpec("operation", "String", 1
                                     , "Operation [on|off|suspend|reset|rebootGuest]"
                                     , null);
     useroptions[2] = new OptionSpec("hostname", "String", 1
                                     , "Name of the host system"
                                     , null);
     return useroptions;
 }
Пример #20
0
 ///<summary>
 ///This method is used to add application specific user options 
 ///</summary>
 ///<returns> Array of OptionSpec containing the details of application specific user options 
 ///</returns>
 public static OptionSpec[] constructOptions() {
   OptionSpec[] useroptions = new OptionSpec[4];
   useroptions[0] = new OptionSpec("vmname", "String", 1
                             , "Name of the virtual machine"
                             , null);
   useroptions[1] = new OptionSpec("localpath", "String", 1,
                                    "Localpath to copy files",
                                    null);
   useroptions[2] = new OptionSpec("datacentername", "String", 1,
                                    "Name of the datacenter",
                                    null);
   useroptions[3] = new OptionSpec("datastorename", "String", 1,
                                    "Name of the datastore",
                                    null);
   return useroptions;
 }
Пример #21
0
 public void addOptions(OptionSpec[] userOptions)
 {
     for (int i = 0; i < userOptions.Length; i++)
     {
         if (userOptions[i].getOptionName() != null && userOptions[i].getOptionName().Length > 0 &&
            userOptions[i].getOptionDesc() != null && userOptions[i].getOptionDesc().Length > 0 &&
            userOptions[i].getOptionType() != null && userOptions[i].getOptionType().Length > 0 &&
            (userOptions[i].getOptionRequired() == 0 || userOptions[i].getOptionName().Length > 1))
         {
             userOpts.Add(userOptions[i].getOptionName(), userOptions[i]);
             // DO NOTHING
         }
         else
         {
             Console.WriteLine("Option " + userOptions[i].getOptionName()
                               + " definition is not valid");
             throw new ArgumentException("Option " + userOptions[i].getOptionName()
                                                   + " definition is not valid");
         }
     }
 }
Пример #22
0
 private void builtinOptions()
 {
     OptionSpec url = new OptionSpec("url", "String", 1, "VI SDK URL to connect to", null);
     OptionSpec userName = new OptionSpec("userName", "String", 1, "Username to connect to the host", null);
     OptionSpec password = new OptionSpec("password", "String", 1, "password of the corresponding user", null);
     OptionSpec config = new OptionSpec("config", "String", 0, "Location of the VI perl configuration file", null);
     OptionSpec protocol = new OptionSpec("protocol", "String", 0, "Protocol used to connect to server", null);
     OptionSpec server = new OptionSpec("server", "String", 0, "VI server to connect to", null);
     OptionSpec portNumber = new OptionSpec("portNumber", "String", 0, "Port used to connect to server", "443");
     OptionSpec servicePath = new OptionSpec("servicePath", "String", 0, "Service path used to connect to server", null);
     OptionSpec sessionFile = new OptionSpec("sessionFile", "String", 0, "File containing session ID/cookie to utilize", null);
     OptionSpec help = new OptionSpec("help", "String", 0, "Display user information for the script", null);
     OptionSpec ignorecert = new OptionSpec("ignorecert", "String", 0, "Ignore the server certificate validation", null);
     OptionSpec ssoUrl = new OptionSpec("ssoUrl", "String", 0, "Single Sign On Server URL", null);
     OptionSpec disablesso = new OptionSpec("disablesso", "String", 0, "Disable the use of SSO server for login, and use deprecated login mechanism instead. 'false' by default", null);
     builtInOpts.Add("url", url);
     builtInOpts.Add("username", userName);
     builtInOpts.Add("password", password);
     builtInOpts.Add("config", config);
     builtInOpts.Add("protocol", protocol);
     builtInOpts.Add("server", server);
     builtInOpts.Add("portnumber", portNumber);
     builtInOpts.Add("servicepath", servicePath);
     builtInOpts.Add("sessionfile", sessionFile);
     builtInOpts.Add("help", help);
     builtInOpts.Add("ignorecert", ignorecert);
     builtInOpts.Add("ssoUrl", ssoUrl);
     builtInOpts.Add("disablesso", disablesso);
 }
 public String get_option(String key)
 {
     if (optsEntered.ContainsKey(key))
     {
         foreach (DictionaryEntry uniEntry in optsEntered)
         {
             if (uniEntry.Key.Equals(key) && uniEntry.Value != null)
             {
                 return(uniEntry.Value.ToString());
             }
             else if (uniEntry.Key.Equals(key) && uniEntry.Value == null)
             {
                 throw new ArgumentHandlingException("Missing Value for Arguement: " + key);
             }
         }
     }
     else if (checkInputOptions(builtInOpts, key))
     {
         IEnumerator It = builtInOpts.Keys.GetEnumerator();
         while (It.MoveNext())
         {
             String strC = It.Current.ToString();
             if (strC.Equals(key))
             {
                 OptionSpec oSpec = (OptionSpec)builtInOpts[strC];
                 if (oSpec.getOptionDefault() != null)
                 {
                     String str = oSpec.getOptionDefault();
                     return(str);
                 }
                 else
                 {
                     return(null);
                 }
             }
         }
     }
     else if (checkInputOptions(userOpts, key))
     {
         IEnumerator It = userOpts.Keys.GetEnumerator();
         while (It.MoveNext())
         {
             String strC = It.Current.ToString();
             if (strC.Equals(key))
             {
                 OptionSpec oSpec = (OptionSpec)userOpts[strC];
                 if (oSpec.getOptionDefault() != null)
                 {
                     String str = oSpec.getOptionDefault();
                     return(str);
                 }
                 else
                 {
                     return(null);
                 }
             }
         }
     }
     else
     {
         Console.WriteLine("undefined variable");
     }
     return(null);
 }
Пример #24
0
 private static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[8];
     useroptions[0] = new OptionSpec("vmname", "String", 1
                                     , "Name of the virtual machine"
                                     , null);
     useroptions[1] = new OptionSpec("datacentername", "String", 1,
                                     "Name of the datacenter",
                                     null);
     useroptions[2] = new OptionSpec("hostname", "String", 0
                                     , "Name of the host"
                                     , null);
     useroptions[3] = new OptionSpec("guestosid", "String", 0,
                                     "Type of Guest OS",
                                     "winXPProGuest");
     useroptions[4] = new OptionSpec("cpucount", "Integer", 0
                                     , "Total CPU Count"
                                     , "1");
     useroptions[5] = new OptionSpec("disksize", "Integer", 0,
                                     "Size of the Disk",
                                     "1024");
     useroptions[6] = new OptionSpec("memorysize", "Integer", 0
                                     , "Size of the Memory in the blocks of 1024 MB"
                                     , "1024");
     useroptions[7] = new OptionSpec("datastorename", "String", 0,
                                     "Name of the datastore",
                                     null);
     return useroptions;
 }   
Пример #25
0
 public static OptionSpec[] constructOptions()
 {
    OptionSpec[] useroptions = new OptionSpec[1];
    useroptions[0] = new OptionSpec("docref", "String", 1
                                    , "Document Reference"
                                    , null);
    return useroptions;
 }
Пример #26
0
 /// <summary>
 /// This method is used to add application specific user options 
 /// </summary>
 ///<returns> Array of OptionSpec containing the details of application 
 /// specific user options 
 ///</returns>
 ///
 private static OptionSpec[] constructOptions() {
    OptionSpec [] useroptions = new OptionSpec[6];
    useroptions[0] = new OptionSpec("hostname","String",1
                                    ,"Name of the host system"
                                    ,null);
    useroptions[1] = new OptionSpec("interval","String",1,
                                    "Sampling Interval",
                                    null);
    useroptions[2] = new OptionSpec("starttime","String",0
                                    ,"In minutes, to specfiy what's start time " +
                                    "from which samples needs to be collected"
                                    ,"20");
    useroptions[3] = new OptionSpec("duration","String",0,
                                    "Duration for which samples needs to be taken",
                                    "20");
    useroptions[4] = new OptionSpec("groupname","String",1
                                    ,"cpu, mem etc..."
                                    ,null);
    useroptions[5] = new OptionSpec("countername","String",1,
                                    "usage, overhead etc...",
                                    null);
    return useroptions;
 }
 private static OptionSpec[] constructOptions() {
    OptionSpec [] useroptions = new OptionSpec[1];
    useroptions[0] = new OptionSpec("vmpath","String",1
                                   ,"A VM Inventory Path"
                                   ,null);
    return useroptions;
 }
Пример #28
0
 private static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[2];
     useroptions[0] = new OptionSpec("info", "String", 1
                                     , "[interval|counter|host]"
                                     , null);
     useroptions[1] = new OptionSpec("hostname", "String", 0,
                                     "Name of the host system",
                                     null);
     return useroptions;
 }
Пример #29
0
     private static OptionSpec[] constructOptions() {
    OptionSpec [] useroptions = new OptionSpec[3];
    useroptions[0] = new OptionSpec("host","String",0
                                   ,"Name of the host"
                                   ,null);
    useroptions[1] = new OptionSpec("portgroupname","String",1,
                                    "Name of the portgroup",
                                    null);
    useroptions[2] = new OptionSpec("datacenter","String",0,
                                    "Name of the datacenter",
                                    null);
    return useroptions;
 }
 private static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[3];
     useroptions[0] = new OptionSpec("sourcehostname", "String", 1
                                    , "Name of the host"
                                    , null);
     useroptions[1] = new OptionSpec("entityname", "String", 1,
                                     "Attached Entity Name",
                                       null);
     useroptions[2] = new OptionSpec("entitytype", "String", 1,
                                     "Attached Entity Type",
                                      null);
     return useroptions;
 }
Пример #31
0
 private static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[10];
     useroptions[0] = new OptionSpec("itemType", "String", 1
                                    , "enablenioc|addnrp|listnrp|modifynrp|reconfigurepg"
                                    , null);
     useroptions[1] = new OptionSpec("dvsname", "String", 1,
                                     "Distributed Virtual Switch name ",
                                       null);
     useroptions[2] = new OptionSpec("enablenioc", "String", 0,
                                     "If true, enables I/O control. If false, disables network I/O control",
                                     null);
     useroptions[3] = new OptionSpec("nrpsharelevel", "String", 0,
                                     "The allocation level.",
                                       null);
     useroptions[4] = new OptionSpec("nrphostlimit", "String", 0,
                                     "Numeric value: The maximum allowed usage for network clients"
                                     + "belonging to this resource pool per host.",
                                     null);
     useroptions[5] = new OptionSpec("nrpprioritytag", "String", 0,
                                     "Numeric value: The 802.1p tag to be used for this resource pool."
                                     + "Its value should be between 0-7",
                                       null);
     useroptions[6] = new OptionSpec("nrpname", "String", 0,
                                     " The user defined name for the resource pool.",
                                      null);
     useroptions[7] = new OptionSpec("nrpdesc", "String", 0,
                                    " The user defined description for the resource pool",
                                      null);
     useroptions[8] = new OptionSpec("dvpgname", "String", 0,
                                   " The name of the portgroup.",
                                     null);
     useroptions[9] = new OptionSpec("nrpshares", "String", 0,
                                 " The shares for nrp level",
                                   null);
     return useroptions;
 }
 private static OptionSpec[] ConstructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[4];
     useroptions[0] = new OptionSpec("host", "String", 1
                                    , "Name of the host"
                                    , null);
     useroptions[1] = new OptionSpec("vappname", "String", 1,
                                     "Name of the virtual appliance",
                                       null);
     useroptions[2] = new OptionSpec("localpath", "String", 1,
                                     "OVFFile local lpath",
                                      null);
     useroptions[3] = new OptionSpec("datastore", "String", 0,
                                    " Name of the datastore to be used ",
                                     null);
     return useroptions;
 }
Пример #33
0
 private static OptionSpec[] ConstructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[3];
     useroptions[0] = new OptionSpec("parentName", "String", 1
                                    , "Specifies the name of the parent folder"
                                    , null);
     useroptions[1] = new OptionSpec("itemType", "String", 1,
                                     "Host-Standalone | Cluster | Folder",
                                     null);
     useroptions[2] = new OptionSpec("itemName", "String", 1,
                                     "Name of the item being added: For Host-Standalone, "
                                     + "please specify the name of the host machine.",
                                     null);
     return useroptions;
 }
Пример #34
0
 public static OptionSpec[] constructOptions() {
    OptionSpec[] useroptions = new OptionSpec[2];         
    useroptions[0] = new OptionSpec("typename", "String", 1
                                    , "Type of managed entity"
                                    , null);
    useroptions[1] = new OptionSpec("propertyname", "String", 1
                                    , "Name of the Property"
                                    , null);
    return useroptions;
 }
Пример #35
0
 public static OptionSpec[] constructOptions()
 {
     OptionSpec[] useroptions = new OptionSpec[8];
     useroptions[0] = new OptionSpec("vmname", "String", 1,
                                     "Name of the virtual machine"
                                     , null);
     useroptions[1] = new OptionSpec("targethost", "String", 1,
                                     "Target host on which VM is to be migrated",
                                     null);
     useroptions[2] = new OptionSpec("targetpool", "String", 1,
                                     "Name of the target resource pool",
                                     null);
     useroptions[3] = new OptionSpec("priority", "String", 0,
                                     "The priority of the migration task: defaultPriority, highPriority, lowPriority",
                                     null);
     useroptions[4] = new OptionSpec("validate", "String", 0,
                                     "Check whether the vmotion feature is legal for 4.0 servers",
                                     null);
     useroptions[5] = new OptionSpec("sourcehost", "String", 1,
                                     "Name of the host containg the virtual machine.",
                                     null);
     useroptions[6] = new OptionSpec("targetdatastore", "String", 1,
                                     "Name of the target datastore",
                                     null);
     useroptions[7] = new OptionSpec("state", "String", 0,
                                     "State of the VM poweredOn,poweredOff, suspended",
                                     null);
     return useroptions;
 }