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)

Tags: VMware

Similar Questions

  • What is the best way to move the data from the app and Server data structures?

    Hi guys,.

    I developed my application locally with Apex 4.2 and Oracle 11 g XE on Windows 7. Not far away, it is time to move the application to a server Oracle Apex. I guess that Exim is the way to go app. But what about the APA tables and data (tables/as 'customer' and 'account' created specially for the application)? I've been using a modeling tool, so I can run a DDL script to create the database server data structures. What is the best way to move the application data on the server? Is it possible to move the structures and data in a single process?

    Thank you
    Kim

    There is probably another way to get here, but in Developer SQL, on the navigation tree, expand objects until your table, right-click, and then click EXPORT... you will see all the options. It is a tedious process and it sucks IMO, but yes, it works. This is zero especially because 1) it's a table at a time, 2) If your data model is robust and has constraints and sequences and triggers, then you will need to disable all for the insert and we hope you can re-enable constraints, etc. without hitch (good luck, unless you have only a handful of tables)

    I prefer to use the oracle EXP command-line to export an entire schema, then the server target, I use IMP to import the schema. In this way, it is almost true. This makes the dirty life if you develop multiple applications in a single schema, and I felt pain - however - it is much easier to drop the tables and other objects is to create them! (thus, even if the process of EXP/IMP moved more than you wanted to "move".. blow everything you don't want on the target after the fact...)

    You can use method datapump oracle too.

    If not, what can be done, IF you have access to both servers of your instance of SQL developer (or if you can tnsping both already from the command line, you can use SQL * MORE), is to run a script that will identify the objects of your applications apex (usually by the prefix for the names of objects, such as % EBA_PROJ_ etc.) and do all the manual work for you. I've created a script that does just that so that I can pass data from dev to prod servers on a dblink. It is difficult because of the order that must be executed to disable constraints and then turn it back on and of course, more complicated if don't always precede you ALL your "objects demand '... (tables, views, triggers, sequences, functions, procs, indexes, etc.)

  • What is the best way to move another server Vcenter Server?

    Hello

    We have 3 nodes VMWARE running with VSpere 4.0.0 and a Vcenter Server 4.0.0. The server running the server Vcenter on disorders gives and must be replaced. What is the best way to move the VCenter server on the new server and keep all the settings?

    And is it possible to update at the same time to VCenter Server 4.0.1?

    Thank you

    Marcel

    There is no problem, I also think that it is the best way if you do not have a large environment - usually takes less time :-). Remove first the hosts of the other vcenter - this will make the vcenter agent to be uninstalled from the ESXs.

    Marcelo Soares

    VMWare Certified Professional 310/410

    Master virtualization technology

    Globant Argentina

    Review the allocation of points for "useful" or "right" answers.

  • What is the best way to move around in a document?

    Maybe I'm missing something obvious here, but what is the best way to move around in a document zoomed in?

    The only method I have found so far is to slide with two fingers, which maintains the resizing of the document when it moves.

    No hand tool? No way to zoom to 100%? No way to fill the screen with the document?

    Let me know, thanks.

    Hello

    Panning is done with two fingers, that is you put two fingers on the screen, then move in the same direction.

    You can also zoom by moving the fingers in the opposite direction, as when you zoom in.

    Thank you

    Ignacio

  • I currently have creative cloud of a photographer.  I must add my subscription first.  What is the best way to go with the best available prices?

    I currently have creative cloud of a photographer.  I must add my subscription first.  What is the best way to go with the best available prices?

    Hello

    Please see the pricing and membership creative cloud plans | Adobe Creative Cloud for plans.

    Otherwise, you can talk with the sales of Adobe as well.

    I recommend going for the plan of single-app.

    Kind regards

    Sheena

  • What is the best way to work with Word documents in The InDesign CS4?

    I work in Microsoft Word 2007 and all my documents have.doc format.

    What is the best way to work with Word documents in InDesign CS4?

    David Blatner says to avoid copying and pasting text from Word instead of placing (Ctrl + D).

    How to paste RTF or text Document?

    I want to do a book layout in ID CS4 and its main feature is that there is the left page with the text and the right - with graphics.

    So, if I understand correctly place the text on each page I create for example 70 Word documents and place each element on 70 pages left?

    He loks like wasting time. I have supplements another way to make such provision?  What kind?

    It is best to place any text.

    You can have all your text in a single file and debit allows you to add text, images and pages as necessary block (hold down the SHIFT key when you click the loaded text cursor), but it is somewhat atypical for the thread on one side of the spread in the perspective of automatic flow, so you don't have to set up properly.

    It is a case where a block of text that you type will work to your advantage. On your master page, add a text block to the left page, but not to the right (or at least not donned one to the right - for another project you can actually two threads of independent text). Hold the cursor of the load on a frame on the left side of a page document and auto-flux. ID will add new spreads as needed, but only to put the text on the left side.

    Peter

  • What is the best way to move and organize records

    I recently bought a Mac Pro and have bought files across the FRO my windows laptop but what is the best way to organize the files iCloud or local drive and how do I move files in my list of "all files" in individual cases.

    In case you are not aware, all the files that you put in iCloud drive are on your disk local and iCloud.

    You can go to preferences in the Finder menu and specify whether you want iCloud drive to display in the sidebar of the Finder. I find that having it in the sidebar makes it easy to use. I also have other folders I used frequently in the sidebar; You can add the system ones (Documents, downloads, etc.) using this same preferences window. You can add folders that you created them by dragging to the sidebar of a Finder window.

    A way to move files into folders that you created is to open 2 windows in the Finder and drag it from one window to the other. Another option, if you move a file in one of the folders that is displayed in the sidebar is just do it from its current location in the main area of the Finder to the folder window in the sidebar in this same window of Finder.

  • What is the best way to deal with a 'Implicit coercion' in a table to a sprite?

    Hi all!

    With the continued support of this forum, I'm getting closer to have a programme of work. I can't wait to be able to help others like me once I've finished learning the ropes of AS3.

    I'll briefly explain what I want to achieve and then followed with my question.

    Background

    I created a random number of 12 x 9 grid that fills each cell with an image, based on the numeric value of each cell. I also have a random play button that makes random numbers in the grid. The problem I am running became my click event of button to erase the current images off the grid in order to allocate the new (for example by removing the objects display battery in order to place the new ones in the same places).

    Question

    My question is this: what is the best way to manage an implicit constraint from a table to a sprite? I pasted my complete code below so that you can see how the functions are supposed to work together. My sentence is apparently not being able to use a value from array with a sprite (sprite represents the real layout of the grid on the pile of display while the table starts as a number that is assigned an image that must be transmitted to the sprite).

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

    package
    {
    import flash.display.MovieClip;
    import flash.display.DisplayObject;
    import flash.events.MouseEvent;
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.text.TextFormat;
    import flash.utils.getDefinitionByName;

    SerializableAttribute public class extends MovieClip Blanko
    {
    Contains 12 * 9 grid of cells.
    var grid: Sprite;
    Maintains the shuffle button.
    var shuffleButton:Sprite;
    Is equal to 12 columns, 9 lines.
    var cols: int = 12;
    lines of the var: int = 9;
    Equal number of grid cells (108).
    cells var: int = COL * rows;
    Sets of cell width and height to 40 pixels.
    var cellW:int = 40;
    var cellH:int = 40;
    Contains 108 images of cell.
    var imageArray:Array = [];
    Contains 108 numerical values for the cells in the grid.
    var cellNumbers:Array = [];

    Constructor calls the functions "generateGrid" and "makeShuffleButton".
    public void Blanko()
    {
    generateGrid();
    makeShuffleButton();
    }

    Creates and displays the grid 12 * 9.
    private function generateGrid (): void
    {
    grid = new Sprite;
    var i: int = 0;


    for (i = 0; i < cells; i ++)
    {
    cellNumbers.push (i % 9 + 1);
    }
    trace ("before shuffle:", cellNumbers);
    shuffleCells (cellNumbers);
    trace ("after shuffle:", cellNumbers);
    var _cell:Sprite;

    for (i = 0; i < cells; i ++)
    {

    / / This line is where the implicit constraint occurs. '_cell' is a leprechaun trying

    on a temporary basis equal to a value from array.
    _cell = drawCells (cellNumbers [i]);
    _cell.x = (I % cols) * cellW;
    _cell.y = (I / COL) * cellH;

    grid.addChild (_cell);
    }
    }

    Creates a "shuffle" button and adds a mouse click event.
    private function makeShuffleButton (): void
    {
    var _label:TextField = new TextField();
    _label. AutoSize = 'center ';
    TextField (_label) .multiline = TextField (_label) .wordWrap = false;
    TextField (_label) .defaultTextFormat is new TextFormat ("Arial", 11, 0xFFFFFF, "bold");.
    _label. Text = "SHUFFLE";
    _label.x = 4;
    _label.y = 2;
    shuffleButton = new Sprite();
    shuffleButton.graphics.beginFill (0 x 484848);
    shuffleButton.graphics.drawRoundRect (0, 0, _label.width + _label.x * 2, _label.height +)
    _label.y * 2, 10);
    shuffleButton.addChild (_label);
    shuffleButton.buttonMode = shuffleButton.useHandCursor = true;
    shuffleButton.mouseChildren = false;
    shuffleButton.x = grid.x + 30 + grid.width - shuffleButton.width;
    shuffleButton.y = grid.y + grid.height + 10;
    this.addChild (shuffleButton);
    shuffleButton.addEventListener (MouseEvent.CLICK, onShuffleButtonClick);
    }

    Erase the images of the cell, mix of their numbers and then assigned these new images.
    private function onShuffleButtonClick (): void
    {
    eraseCells();
    shuffleCells (cellNumbers);
    trace ("after shuffle:", cellNumbers);


    for (var i: int = 0; i < cells; i ++)
    {
    drawCells (cellNumbers [i]);
    }
    }

    Deletes any existing cells in the battery of the display image.
    private void eraseCells(): void
    {
    While (imageArray.numChildren > 0)
    {
    imageArray.removeChildAt (0);
    }
    }

    Changes cell phones numbers (makes random table).
    private void shuffleCells(_array:Array):void
    {
    var _number:int = 0;
    var _a:int = 0;
    var _b:int = 0;
    var _rand:int = 0;

    for (var i: int = _array.length - 1; i > 0; i-)
    {
    _rand = Math.Random () * (i - 1);
    _A = _array [i];
    _B = _array [_rand];
    _ARRAY [i] = _b;
    [_Rand] _ARRAY = _a;
    }
    }

    Retrieves and sets a custom image to a cell based on its numerical value.
    private void drawCells(_numeral:int):Array
    {
    var _classRef: Class = Class (getDefinitionByName ("skin" + _numeral));
    _classRef.x = 30;
    imageArray.push (_classRef);
    imageArray.addChild (_classRef);
    return of demonstration;
    }
    }
    }

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

    Any help with this is greatly appreciated. Thank you!

    If you want to have an array of Sprites that you later clear that is fine. But this does not mean that your function should return to it.

    You need your function to return the sprite so that you can add it to the display list and everything what you need.

    So just have the function get Sprite, push it in the "toBeClearedInTheFutureArray" and then return a reference to the currently acquired sprite.

  • What is the best way to move from an Intel iMac a iMac 4K

    I have an iMac 21 "4 k new in a few days and I wonder what the best what's the best way to migrate my old iMac to the new?

    Configuration wizard migration wizard or any transfer via time machine, then for the new iMac?

    Migration wizard is the recommended method. Here is a link to Apple description of it.

  • What is the best way to deal with the pages being removed from the site in British Colombia?

    A customer wants a page removed from their Web site; What is the best way to go about removing/deleting a page in British Colombia and keep all attributed to the laid-off page SEO ranking?

    Should I delete the page and then add URL redirect via the module to redirect BC a relevant page.

    or

    I have to keep the page alive but 301 redirect using the property of the redirection page 301 in addition to Options?

    One is better than the other?

    Redirect via the page is there if you want to keep the page for any reason content wise, etc. in the admin. Web site wise is no different. A 301 redirect is a redirect 301 Grant, there is no difference.

  • What is the best way to move a (very old) elements to a new computer?

    I hate to admit it, but I am still using Elements8 and finally buy a new computer (Windows 10). I have my ' 09 Elements8 drive and am looking forward to upgrade to the latest version of items, but what is the best (easier) way to make the move? I don't want to have to go retagging my photos. Thank you-

    connieh60299755 wrote:

    I hate to admit it, but I am still using Elements8 and finally buy a new computer (Windows 10). I have my ' 09 Elements8 drive and am looking forward to upgrade to the latest version of items, but what is the best (easier) way to make the move? I don't want to have to go retagging my photos. Thank you-

    This can help

    Organizing moving items catalogue by using the backup and restore

  • What is the best way to deal with the events of Qml-components of java script or C++?

    Hello

    Please suggest which is the best way to treat the Qml-components signal in the manuscript of java or C++.

    can read contacts in javaScript?

    When you want to make things more complex: Yes.
    QT made it much easier for me as a java developer, bb, but you will need to learn some basics.

  • What is the best way to move the node for virtual device to an IDE SCSI hard drive?

    I used PowerCLI on vSphere 5.0 5.5.

    I'm deploying VMDK that were created with a switch in Ghost from Symantec, which by default is the HDD to IDE interface.  How can I change the HD of IDE, SCSI using PowerCLI?

    We also seek to regenerate the VMDK with the correct setting in Ghost, but maybe it's not feasible.

    I looked at the post below, which seems close, but don't tell me how to change the Type as the disk ID number.

    Sort of put the virtual device node / drive SCSI ID?

    When I look at the vmdk on the host for the virtual machine, I can see that the ddb.adapterType field is set to "ide" and KB 1016192 - conversion of an IDE virtual disk to a virtual SCSI disk

    http://KB.VMware.com/selfservice/microsites/search.do?language=en_US & cmd = displayKC & externalId = 1016192

    I need to have the value of "free", but I can't manually change the vmdk file.

    In addition, the hard drive has the VM operating system already installed on it, so I don't want to just remove it.

    Another related problem is that I can not put the type of SCSi LSI Logic SAS controller LSI Logic parallel (Windows VMs does not start if it has the value LSI Logic SAS). I just get an error "inconsistent backup specified for device 0.

    Appreciate any ideas.

    I thought that I would come back and update this post.  I got it works by changing a setting when I create the VMDK.

    I changed the way I created the VMDK via the Symantec ghost32.exe (version 11.5?) application by adding the following switch:

    -vmdkAdapter = free

    Ghost32-clone, mode = restoration, src = 'SRC %', dst = "% DEST" - vmdkAdapter free course =

    It worked for my Windows 2008 VMDK, don't know what he'll do for any other type.

    At the end of the day, I have never able to edit the VMX of PowerCLI file, although I got close enough.

    Regarding PowerCLI, I think I have corrupted files on the ESXi server and could never get around it. The steps were roughly as follows

    1. the Copy-DatastoreItem cmdlet to copy the file vm.vmx on the desktop of the local computer

    "2 use Get-Content to read file and change ddb.adapterType ="ide"with ddb.adapterType. =" free ".

    3. copy a ConvertTo-LinuxLineEnding cmdlet from the internet and remove CR/LF characters to the BYTE level; because nothing else has worked.  I still don't think it worked 100%.

    4 copy-DatastoreItem to copy the vmx file to the directory of the virtual machine.

    The vmx file has the correct setting and looks ok, but I think something is broken here, because when I use the VI Client to look at the data store, there are only 2 files in the directory. I don't know which more.

    5 remove-hard drive

    6 New-hard drive - vm $vmObj - diskpath "[datastoreName] vm/vm.vmdk", at this point, I get "the path of the specified disc is inaccessible or does not exist.  It is probably because I have damaged the structure of files on the data store.

    When I delete the virtual computer in the VI Client, I can remove it with success, but I have to manually delete the directory on the data store using skip
    Control data store.

    Maureen

  • What is the best way to move a LR2 catalog without moving images?

    I have several catalogs on different drives and I now have a drive much more and have decided I want to keep all my catalogs on a disc under a folder called lightroom catellogs.

    Can I just move my .lrcat file (s) and associated to an extract or folders to the new location and wait for LR2 works fine when I open the newly moved .lrcat file?  Or are there hidden files or paths coded hard directory inside the .lrcat which could cause problems if I did?

    Mike,

    I moved the catalog files several times without problem.  I suggest you copy the catalog folder and all its contents to the new drive, without deleting the original. Make sure that Lightroom is not running when you do this.  Then open Lightroom all holding the key OPTION, and you will be presented with a pop-up allowing you to select the catalog file in the new location.  Once you select it, Lightroom should work as before.

    So go ahead and delete the previous Catalogue record.

  • What is the best way to comply with footage of 60 fps 24 fps without slowing down?

    So I understand how time remapping and reinterpret the cadence of the 60 fps footage to slow it down, but I'm at a loss as to how I can do 24 fps without just which establishes it as such, giving a jerky export.

    I'm shooting on a Rebel t3i that only allows me to shoot in 720 p at 60 frames per second. Is it possible to drop the frame rate without changing the duration while preserving quality?

    Thanks for any help in advance!

    Shiraz

    Drop your 60 p clip into a sequence of 24 p. Cliquer click with the right button, and then select frame Blend. It's about as good as you will get in Premiere Pro.

    If you need 24 p, why not shoot 1080 p? The T3i plans to 23.976 (24 p) mode 1920 x 1080 p. You can always scale the clip 1080 p to 720 p.

Maybe you are looking for

  • Portege R700 - how to replace the optical disk drive?

    HelloI would like to replace the optical disc drive (ODD) with a Solid State Drive (SSD) on my Portege R700.So my first question is: what is the way to remove the STRANGE? And my second question is: can I replace it with a Caddy drive HARD ICY BOX IB

  • Qosmio X 505-88 *-U.S. / EU power supply

    Anyone know if the X 505-88 * models can be used in the power grid with a plug adapter EU? Accept laptops power supply 110 / 230 V? I intend to buy a model from the United States and use within the EU too. Thanks in advance.

  • Norton gadget.

    My norton antivirus, used to have a small gadget that I could keep on my desk, when I renewed it, the gadget was not found... Anyone know how to get it back?

  • How can I create a new one (so I can have 2) calendar tile on my 2 surface?

    Original title: calendar tile How can I another creater (so I can have 2) calendar tile on my 2 surface

  • Toggle "scale of the contours and the effects?

    Everyone want to 'Scale Strokes & Effects' should be a toggle UI higher level preferences buried in?  I find it often useful to switch between two States scaling of the same project.Or am I missing a shortcut for this?