How to programmatically Exchange data (key-value pairs) with operating system called?

Hi all

Is there a programmatic way to Exchange data (of the key-value pairs) with the guest OS?

We have an application that runs inside comments, and we want that this application in order to use this mechanism to Exchange data. At this point, the guest have no network connectivity. One thing that might work for us is to use the registry to the guest operating system. But I'm not sure how to handle the registry of the guest operating system.

We looked in the VirtualMachineConfigInfo.extraConfig property, but these key-value pairs are not accessible from the comments (at least this is what I know)

any ideas?

Thank you

Onur

I think that it is better to use an environment variable or file to Exchange data with the guest operating system.

http://www.doublecloud.org/2012/03/set-environment-variables-in-guest-operating-system-on-VMware/

http://www.doublecloud.org/2012/03/read-environment-variables-in-guest-operating-system-on-VMware/

If you really want the registry value,

http://www.doublecloud.org/2012/02/run-program-in-guest-operating-system-on-VMware/

http://en.Wikipedia.org/wiki/Windows_Registry#Command_line_editing

Good luck!

Steve, author of the Open Source, VMware VI and vSphere SDK VI Java API

Tags: VMware

Similar Questions

  • Don't forget to call with several key-value pairs

    I'm looking to invoke the application Remember and I try to send a title and a due date. The problem is that I don't know the format for sending multiple data items. Can someone help me with the format what should I use to having an remember entry created with a title and a due date?

    function invokeRemember (someTitle, someDate) {}
    BlackBerry.Invoke.Invoke ({}
    target: "sys.pim.remember.composer."
    Action: "bb.action.ADD."
    URI: "remember://notebookentry?title=" + someTitle + '& duedate =' + someDate;
    (}, onInvokeSuccess, onInvokeError);
    }

    I think "Ivoking Basic Applications" page shows how to do this: https://developer.blackberry.com/html5/documentation/remember.html

    It looks like you can send the following in the field of the URI:

    You can also add the following key-value pairs by adding a question mark (?) after the URI:
    
    title=
    description=
    duedate=<# SECONDS SINCE EPOCH>
    status=NotActionable, Completed, NotCompleted
    notebookid=:
    tags=
    
  • What is the best way to move with esx3.5 vmtools key/value pairs?

    Hello

    I found both candidates to store the key/value pairs for a vmware client. My ultimate goal is to run a process on the VC box that updates these data, and then read through the software tools of vm on the host (somehow) were invited.

    The first method is through 'guestinfo' settings which can be adjusted in four ways:

    Add the variable of the vmx fileprompt.
    Set the variable manually on the client (using vmwareservice.exe - cmd "infoset");
    using vmware-cmd (vmware-cmd & lt; vm-cfg-path & gt; setguestinfo & lt; variable & gt; & lt; value & gt;)
    the use of vmcom.dll COM objects (seems to be deprecated in ESX 3.5)
    These variables are easily accessible on the client by running vmwareservice.exe - cmd 'info-get guestinfo.variablename '. However, I cannot find a convenient way (better based on powershell) of their definition of a scheduled task or service to VC area.

    The second method is the customfields of guests in VItoolkit property, which can be defined as follows:

    get - vm MyVMName | Game-CustomField-nameOfValue name-value DataToBeStored
    Unfortunately, I am unable to access these data in the comments, and indeed I do not know if this is possible. If this isn't the case, I guess my only recourse would be to write a tool to connect to Web services on the VC box with a low privilege account. I prefer not to do this because it means the network infrastructure implementation to point the guest to the right VC, development of custom etc permissions...

    So, my questions are:

    • Is it possible to define variables of guestinfo through VI Toolbox, running on the virtual circuit?

    • Is it possible to read customfields on the client, through the vmtools?

    • Or is there another method to make this key/value data exchange?

    You can add/edit entries in the VMX file like this

    $vm = get-vm  | Get-View
    
    $vmConfigSpec = New-Object VMware.Vim.VirtualMachineConfigSpec
    $vmConfigSpec.extraconfig += New-Object VMware.Vim.optionvalue
    $vmConfigSpec.extraconfig[0].Key= "guestinfo"
    $vmConfigSpec.extraconfig[0].Value = "whatever"
    
    $vm.ReconfigVM($vmConfigSpec)
    
  • To access the inside loops key/value pairs

    According to the docs of Shopify, liquid allows access to key/value pairs in for loops, as follows:

    {% for item in hash %}   {{point [0]}}: {{point [1]}} {% endfor %}

    This does not work in the liquid renderer in British Colombia; the output of the key/value tags are empty. Here is an example of using the always available this.urlculture global object:

    {   ...   {"urlculture": {"ModuleName": "urlculture", "culture": "EN"},...}

    {% for obj in this.urlculture %}

    {{ obj | json }}
    Key: {{obj [0]}}
    Value: {{obj [1]}}
    {% endfor %}

    This is the result I get:

    {
      "Key": "moduleName",
      "Value": "urlculture"
    }
    
    Key:
    Value:
    
    {
      "Key": "culture",
      "Value": "EN"
    }
    
    Key:
    Value: 

    Access by name (such as {{ obj.Key }} ) also fails.

    Am I missing something, or is this all just not yet implemented?

    Also, why isn't the nice formatting illustrated in this visible post editor in the current post code?

    Thank you, Robert.

    This was a great find. And you'll be happy to learn that we have set and it will work in the next version (unfortunately the hotfix does not update today, we have deployed on the beta version).

    You will then be able to do things like:

    {% for getParam in globals.get %}
    {{getParam[0]}} = '{{getParam[1]}}'
    {% endfor %}

    -Lucian

  • How can I get a copy of my lost 'product key' for my Vista operating system?

    How can I get a copy of my lost 'product key' for my Vista operating system?

    How can I get a copy of my lost 'product key' for my Vista operating system?

    It is quite difficult to 'lose '.

    1. If you have a desktop computer, the product key is on the side or rear.

    2. If you have a portable computer, the product key is down.

    All else fails:
    13 free product key finder programs
    http://pcsupport.about.com/od/productkeysactivation/TP/topkeyfinder.htm

    Belarc Advisor
    http://www.Belarc.com/free_download.html

  • How to deal with operating system windows 8.1 and apps on usb device

    Hi, I have a laptop Lenovo G505. Windows 8 64-bit was preinstalled in it. Later, I upgraded to 8.1. Laptop is almost 9 months and still under warranty. Since a few days, built Lenovo solution Center alert this analysis of hardware detected failures in one or more devices. On suggestion of Lenovo, I ran hdtune pro app in my machine and it also detected 3 hard drive errors. As my machine is under warranty, Lenovo is ready to replace my hard drive with a new one. But they say that it is the responsibility of the customer to return the windows 8.1 operating system and install in the new drive and their liability is limited to the replacement of the hard disk only. I am not computer savvy and I request concerned to guide me how to deal with operating system windows 8.1 on external media like USB, DVD, and install in the new drive. I also installed a number of apps and paid games. Therefore, I would like to resume these games also files so that I need not buy again. Assistance in this regard is required.

    Hello Mohan,

    Thanks for posting your query in Microsoft Community Forum.

    I can of course understand the situation and will be happy to help with your query.

    Let me ask you;

    • You have the key product for Windows 8 or 8.1?

    You can create an installation media (DVD/USB) for Windows 8.1 and re-install when you want. However, in order to create an installation media for Windows 8.1, you need the product key. If you don't have the product key for Windows 8.1, you can not create installation media.

    You can create the installation media for Windows 8 by using the product key Windows 8 If you have. In this case, install you Windows 8 first and then go to Windows 8.1 through store.

    As far as your paid apps (purchased by store) are concerned, you should be able to install them as soon as you sign in with the same Microsoft Account where apps were purchased.

    You can see the steps indicated by Ronnie Vernon replied on 24 December2013, re - install paid apps.

    You can follow the steps below to create installation media.

    1. Run the program Windows 8.1 configuration or installation of Windows 8 (depending on the availability of the product key for the specific operating system.
    2. When you are prompted to run or save the file, choose run

    3. When you are prompted to enter a product key, enter the 25-character product key, that you received when you purchased Windows 8.1 (or Windows 8).

    4. When you are prompted to install Windows 8.1 (or Windows 8), select install by creating media and then click Next.

    5. Select the type of media you want to use: either a Flash DRIVE or a DVD.

    To create a USB flash drive

    1. Click on the USB flash drive.

    2. Plug the USB key into a USB port on your PC.

    3. When you are prompted, select the USB key that you want to use, and then click Next.

      If you have files on the USB flash drive, it will remove them.

    To create a DVD

    1. Click on the ISO file , and then select the location where to save the ISO file.

    2. Insert a blank recordable DVD into your DVD drive.

    3. Burn the ISO of the DVD file using Windows disc Image burner, or another program DVD burning.

    Note: Ensure that the USB or DVD key that you use has nothing else stored on it and has a sufficient free space to download the Windows 8.1 Installer: about 2.3 GB for the 64-bit version.

    You can also read the article below to create a USB stick recovery.

    Create a recovery USB disk

    Hope this information is useful. Please feel free to answer in the case where you are facing in the future other problems with Windows.

    Thank you.

  • My HARD drive is toast. Can I reuse my key of the Windows operating system to reinstall the same OS on a new HARD drive?

    My HARD drive is toast. Can I reuse my key of the Windows operating system to reinstall the same OS on a new HARD drive?

    You are allowed to change a hard disk with an OEM license

    If you have problems with Activation, which you shouldn't, try this method:

    Try this and take the Option phone hang for a real person explain to the:

    http://www.Microsoft.com/Windows/Windows-Vista/quick-start/activation-FAQ.aspx

    FAQ of activation to the. link above

    1. click on start and in the search for box type: slui.exe 4

    2. press enter on your keyboard

    3. Select your country.

    4. take the phone activation option and brace yourself for a real person. mm

    See you soon.

    Mick Murphy - Microsoft partner

  • Where to find the product key on the Windows operating system?

    Can someone tell me where to find the product key for my windows operating system? I was told that appears when you select "my computer > properties" and on the bottom of all these technical features, it is perhaps not the right code. I have no way to prove or disprove it, so I would like to help. I am looking for the product key, because my friend needs his drive hard flashed and I have a CD of the operating system on his computer, but I don't want to use my key.

    Can someone tell me where to find the product key for my windows operating system? I was told that appears when you select "my computer > properties" and on the bottom of all these technical features, it is perhaps not the right code. I have no way to prove or disprove it, so I would like to help. I am looking for the product key, because my friend needs his drive hard flashed and I have a CD of the operating system on his computer, but I don't want to use my key.

    Look for the sticker on the computer in question and use the product probably printed on that key.  (If a laptop - be sure to look under the battery - inside the battery compartment).

  • I have a new computer with operating system Windows 10. Sometimes items automatically starts searching for photos of my external hard drive to download. I don't want these pictures to include. How can I keep items the search from my computer

    I have a new computer with operating system Windows 10. How can I keep the elements search my computer for the pictures to download in elements? I want to control what is added to the elements.

    Harold8838 wrote:

    I have a new computer with operating system Windows 10. How can I keep the elements search my computer for the pictures to download in elements? I want to control what is added to the elements.

    It is in the file menu of the Organizer (watched folders).
    Don't include no matter what path if you do not want the Organizer to look for new files.

  • Would like to know which table in the repository contains the value of the operating system

    Hello

    I would like to know which table in the repository contains the value of "Owner operating system".

    Any ideas.

    Thank you
    Paul

    The following query should help you:

    SELECT t.target_name agent_name, cm.string_value mgmt_targets Os_User t, mgmt_metrics m.
    cm mgmt_current_metrics WHERE t.target_type = 'oracle_emd. '
    AND m.target_type = 'oracle_emd' AND t.target_guid = cm.target_guid AND cm.metric_guid = m.metric_guid
    AND m.metric_name = 'EMDIdentity' AND m.metric_column = 'username' AND m.type_meta_ver = t.type_meta_ver;

    Best regards
    Vincent

  • Add key/value pairs to an ArrayList from a HashMap in

    I'm trying to create a HashMap, loop through this hash table, and finally, I try to create an ArrayList of key/value - of the HashMap pairs - containing, in its set of value, a parameter value. I know that maybe it's a little difficult to understand, so I provided my code to make sense what I'm trying to accomplish.
    package data;
    
    import java.util.ArrayList;
    import java.util.HashMap;
    import java.util.Iterator;
    import java.util.Map;
    
    public class ProductInventory 
    {  
        private Map <String, ArrayList<String>> product;
        private ArrayList <String> buildProduct;
        private ArrayList <ArrayList<String>> addProduct;
    
        public ProductInventory()
        {   
            /** Set default values **/
    
            product = new <String, ArrayList<String>> HashMap();
            buildProduct = new ArrayList<String> ();
            addProduct = new ArrayList<ArrayList <String>> ();
            
            /** START - Create ArrayList for each item and add to HashMap**/
    
            ArrayList <String> c1 = new ArrayList<String>();
            ArrayList <String> c2 = new ArrayList<String>();
    
            c1.add("computer"); c1.add("Apple"); c1.add("iPad2"); c1.add("499.00");
            c2.add("computer"); c2.add("Asus"); c2.add("Zenbook"); c2.add("1449.00");
    
            ArrayList <String> tv1 = new ArrayList<String>();
            ArrayList <String> tv2 = new ArrayList<String>();
    
            tv1.add("television"); tv1.add("Panasonic"); tv1.add("Viera"); tv1.add("899.00");
            tv2.add("television"); tv2.add("Samsung"); tv2.add("Series 6"); tv2.add("1597.00");
    
            ArrayList <String> a1  = new ArrayList<String>();
            ArrayList <String> a2 = new ArrayList<String>();
    
            a1.add("audio"); a1.add("Bose"); a1.add("321 GS Series III"); a1.add("999.00");
            a2.add("audio"); a2.add("Onkyo"); a2.add("HT-S3400"); a2.add("329.00"); 
    
            /** END - Create ArrayList for each item and add to HashMap **/
    
            /** Add entrys to HashMap **/
    
            product.put("CMC769LLA",c1);
            product.put("CUX31EDH72",c2);
            product.put("TVTCL50E3",tv1);
            product.put("TVUN55D6000",tv2);
            product.put("A321GSIIIBK",a1);
            product.put("AHTS3400",a2);
    
        }
    
        /** For the sake of this example, the productAttribute parameter will be equal to "computer"  **/
        
        public void setProducts(String productAttribute)
        {
                for (Map.Entry <String, ArrayList<String>> entry : product.entrySet()) /** Loop through all entrys in the HashMap **/
                {              
                    for (String s: entry.getValue()) /** Loop through all values in HashMap**/
                    {
                        /** Add product attributes **/
                        if (s.equals(productAttribute))  /** Check to see if param exists in the value set**/
                        {
                           /** Add key to buildProduct ArrayList **/
                            buildProduct.add(entry.getKey()); 
    
                             /*Loop through values of the corresponding key and add to buildProduct*/
                            for (Iterator<String> i = entry.getValue().iterator(); i.hasNext();)
                            {    
                                    Object item = i.next(); 
                                    buildProduct.add(item.toString());
                            }
                            
                            /** Add buildProduct arrayList to product arrayList **/
                            addProduct.add(buildProduct);
                            break; /** Exit nested loop**/
                        }
                    }
                }  
        }
    }
    For the desired output, it can be assumed that the value of the productAttribute parameter is "computer."

    Output current of the ArrayList addProduct:
    Size of ArrayList: [2]
    Content of each element:
    [0] - (Size [10]
          [0] - "CMC769LLA"
          [1] - "Computer"
          [2] - "Apple"
          [3] - "iPad2"
          [4] - "499.00"
          [5] - "CUX31EDH72"
          [6] - "Computer"
          [7] - "Asus"
          [8] - "Zenbook"
          [9] - "1449.00"
    [1] - (Size [10])
         /**  It includes the exact same content as element [0] **/
    Desired output of the ArrayList addProduct:
    Size of ArrayList: [2]
    Content of each element:
    [0] - (Size [5])
          [0] - "CMC769LLA"
          [1] - "Computer"
          [2] - "Apple"
          [3] - "iPad2"
          [4] - "499.00"
    [1] - (Size [5])
          [0] - "CUX31EDH72"
          [1] - "Computer"
          [2] - "Asus"
          [3] - "Zenbook"
          [4] - "1449.00"
    I can't understand what I'm doing wrong. Any help would be greatly appreciated.

    You have defined buildProduct and then add to it.

    buildProduct = new ArrayList ();
    

    Do this assignment at the top of each loop so that a new ArrayList is allocated.

    1 buildProduct = new ArrayList () ;
    2. Add your 4 things using buildProduct.add
    3. Add buildProduct to your 'mother' object - addProduct.add (buildProduct);
    4. loop back to step 1 and create a new arraylist to the next set of elements

  • Need help to build the query/pl-sql block to get the query result and the name of column from DB table in the form of key-value pairs.

    Hi Experts,

    I have a DB table has columns of more than 50.

    I question this table, it should only return one line at any time. as sqldeveloper below image.

    here, I need to build block pl/sql-query, Discover the column in the table as a key and query result as values.

    Eg:     Key                         -  Value

    TASK_EVENT_ID - 1765

    EVENT_TYPE - ASR_UPDATE

    ... etc until all of the columns in my table.

    Experts please comment on that point, appreciate your help on this.

    Thank you

    -Vincent.

    Here is an approach using DBMS_SQL to iterate over the columns of key / value to assign... (Little code snipped for brevity)

    create or replace procedure (task_expired)

    v_store_id in full,

    v_task_action_id in full,

    v_job_id in full

    )

    as

    -[SNIP code...]

    v_sql VARCHAR2 (4000): = ' select * from my_table where PK = 123';  -Your SQL here!

    v_v_val VARCHAR2 (4000);

    v_n_val NUMBER;

    v_d_val DATE;

    v_ret NUMBER;

    c NUMBER;

    d NUMBER;

    col_cnt INTEGER.

    f BOOLEAN;

    rec_tab DBMS_SQL. DESC_TAB;

    col_num NUMBER;

    vAsString VARCHAR2 (4000);

    BEGIN

    -[SNIP code...]

    Message_properties. CORRELATION: = "EDF_EVENT";

    MSG: = SYS. AQ$ _JMS_BYTES_MESSAGE. Construct();

    Msg.set_string_property ('queueName', ' shipping/csi_cth');

    Msg.set_string_property ('MODE', 'CR8');

    c: = DBMS_SQL. OPEN_CURSOR;

    DBMS_SQL. PARSE (c, v_sql, DBMS_SQL. NATIVE);

    d: = DBMS_SQL. Execute (c);

    DBMS_SQL. DESCRIBE_COLUMNS (c, col_cnt, rec_tab);

    1.col_cnt J

    LOOP

    CASE rec_tab (j) .col_type

    WHEN 2 THEN

    DBMS_SQL. DEFINE_COLUMN (c, j, v_n_val);      -Number

    WHEN 12 CAN

    DBMS_SQL. DEFINE_COLUMN (c, j, v_d_val);      -Date

    ON THE OTHER

    DBMS_SQL. DEFINE_COLUMN (c, j, v_v_val, 2000);   -Else treat as varchar2

    END CASE;

    END LOOP;

    LOOP

    v_ret: = DBMS_SQL. FETCH_ROWS (c);

    WHEN OUTPUT v_ret = 0;

    1.col_cnt J

    LOOP

    -Fetch each column to the correct data type based on coltype

    CASE rec_tab (j) .col_type

    WHEN 2 THEN

    DBMS_SQL. COLUMN_VALUE (c, j, v_n_val);

    vAsString: = to_char (v_n_val);

    WHEN 12 CAN

    DBMS_SQL. COLUMN_VALUE (c, j, v_d_val);

    vAsString: = to_char (v_d_val, ' DD/MM/YYYY HH24:MI:SS');

    ON THE OTHER

    DBMS_SQL. COLUMN_VALUE (c, j, v_v_val);

    vAsString: = v_v_val;

    END CASE;

    Msg.set_string_property (rec_tab (j) .col_name, vAsString);

    END LOOP;

    END LOOP;

    DBMS_SQL. CLOSE_CURSOR (c);

    DBMS_AQ. ENQUEUE (queue_name-online 'cbus.aqjms_common',

    Enqueue_options => Enqueue_options,

    Message_properties => Message_properties,

    Payload-online msg,

    Msgid => Message_handle);

    dbms_output.put_line ('00 Msgid =' |) Message_handle);

    dbms_output.put_line('===Done=');

    -[SNIP code...]

    END;

    /

  • Key value pair relational table - cross tab / pivot out?

    I have a Table of KVP and the structure is ID, Key, Value and this is the sample values...

    Table with values

    ID, Key, Value
    TABLE 1, TRUE
    1, AGE GROUP, 10
    1, TRAVEL, Y
    2, TABLE, FALSE
    2, AGE GROUP, 20
    2, TRAVEL, N

    I want to turn it these date like below (output)

    ID, STATUS, AGE GROUP, TRAVEL
    1, TRUE, 10, Y
    2, FALSE, 20 N

    I read on analysis crossroads/pivot - but not able to make a query that can give me the output above. The structure of the table cannot be changed...! My bad.

    Is it possible in sql, to do my output to look like above?

    It is possible if you know all the possible values for the KEY:

    with t as (
               select 1 id,'STATUS' key,'TRUE' val from dual union all
               select 1,'AGE GROUP','10' from dual union all
               select 1,'TRAVEL','Y' from dual union all
               select 2,'STATUS','FALSE' from dual union all
               select 2,'AGE GROUP','20' from dual union all
               select 2,'TRAVEL','N' from dual
              )
    select  id,
            max(case key when 'STATUS' then val end) status,
            max(case key when 'AGE' then val end) age,
            max(case key when 'AGE GROUP' then val end) "AGE GROUP",
            max(case key when 'TRAVEL' then val end) travel
      from  t
      group by id
    /
    
            ID STATUS AGE   AGE GROUP TRAVEL
    ---------- ------ ----- --------- ------
             1 TRUE         10        Y
             2 FALSE        20        N
    
    SQL> 
    

    If you are on 11g, you can use the PIVOT, but again, he must know the columns resulting from the outset.

    Another thing, you could do is to return a list CSV key of all the values in a column using STRAGG (or LISTAGG if you are on 11.2), hierarchical queries, XML or WM_CONCAT without papers.

    SY.

  • Shape of the apex - how to get the primary key value manually?

    Hello

    Whenever I create form by using wizard Apex, he asks me to specify the trigger/sequence/pl/sql function to fill the primary key value.

    However, if I want to specify primary key myself (ie. undetermined generated automatically), how I can clarify that?

    Thanx

    Hello

    You mean by yourself: by hand or by a pl/sql?

    If you say by trigger, the system does not take on what number is sent. If you can give it "manually".

    May I ask what is the reason for this?

    See you soon,.

    Arnaud

  • How to transfer old data from windows.old in my system update?

    Hello community,

    I tried to update my Windows 7 Ultimate RC on a version of Windows 7 Professional from MSDNAA. Unfortunately, all my data that I really need is now in the windows.old folder.
    1. is it possible to transfer to the new system (including drivers and system entries) so I don't have to do it manually?
    OR
    2. can I get back to my old version? I'd rather have the return as a non-RC-Windows data.

    Thank you for answering,
    Julius

    Hello Jules, welcome.

    I would recommend that you take a look at these steps here. Please make a backup of important files in your operating system current and all what you find important in directories Windows.old before trying this manual restoration of the BONES.

    http://support.Microsoft.com/kb/933168

    Let us know if it works,

    Thank you! Ryan Thieman
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for