deactivation of mob using plink

There are options to disable mob on your hosts esxi (not to mention an excellent my colleague) using plink and batch file, but I wanted to take a different approach that can be changed in the future for other things like that can all be made via powercli but requires vcli or shell.

Here is the command disable mob

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

Vim - cmd proxysvc/remove_service ' / mob ' "httpsWithRedirect".

Task 1. Create a text file on /tmp/file.txt with powershell/powercli and plink

Task 2. Add the above command using powershell/powercli and plink

(Task 3 Add quotes to the /mob and httpsWithRedirect using awk or sed or other method via powershell/powercli bash and plink)


Is it impossible? If yes then I'll stick to what we have right now and if not then I would appreciate some help with this.

Well, I guess I had to do it all by myself.

I forgot to come back and post the solution I found.

You can go there.

its on github.

https://github.com/gajuambi/VMware/BLOB/master/MOBdisabler1.1

only works on powershell and powercli fails

Tags: VMware

Similar Questions

  • PuTTY of appeal via Powershell using Plink - how auto answer the key question of safety

    I'm working on a script that you call PuTTY via Powershell using Plink.exe.  However, we use automatically generated keys, so I need to answer the question "do you trust this security key" during the execution of my script.

    I found through this blog (http://www.virtu-al.net/2013/01/07/ssh-powershell-tricks-with-plink-exe/), you can use ' echo y | Plink.exe", however I do not know where to put this in the script to work properly.  Any help would be appreciated!

    Thank you!

    It's the "-batch ' option.  Remove that fixed the issue.

  • Cant Pass Y using plink

    Hi all

    I'm writing a script that checks whether or not a particular user account can successfully SSH to an esx host.

    Is what I'm trying to use plink and running a simple command vmware - v, to ensure if the user account can do it through or not.

    BUT I can't go there and he throws saying error

    ========== 

    The server's host key is not cached in the registry. You have no guarantee that the server is the computer that it is. Footprint of the server's rsa2 key is: ssh - rsa 1024 7 c: 6e:9 has: 26:0 c: 86:68:ef:20:db:99:93:3e:f9:ed:b1 abandoned connection.

    Disconnected: User abandoned when host key checking

    ======

    This is how my script looks like

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

    $computer = 'host_name '.

    $user = 'user_name '.

    $pd = "XXXX".

    $plink = ' echo Y | C:\Scripts\Putty_ESX_Hosts\plink.exe ".

    $plinkoptions = ""--v - lot - pw $pd ""

    $cmd1 = 'vmware - v.

    $remoteCommand = ""' + $cmd1 + "'"

    $command = $plink + "" + $plinkoptions + "" + $user + "@" + $computer + "" + $remoteCommand

    $msg = expression invoke-Command $command

    $msg

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

    Can someone please advice?

    Thank you

    Jean Yves

    With '-batch ", plink.exe will not ask for user input. Remove this command and - if you want - change "Y echo" "echo-n" If you do not want to store the fingerprint.

    André

  • Error in MAP using PLINK.exe and PSCP.exe

    Working on a script in PowerCLI which allows me to audit security and re-concile ESXi from the security settings for all our guests. For the ESXi 'Message of the day' host, I check to see if the file ' / etc/issue "is filled with the warning banner I want and if it is not, copy the correct file. The problem is one of our environments has 20 + ESXi hosts on the same subnet. For some reason, some of the guests become ' pam_sm_authenticate: failed [error code: 40017] "and access denied when I try to run PSCP.exe and PLINK.exe. Firewalls between hosts and my script box is clean and its looks like the connection is made.  Anyone have an idea on why some hosts the same generation, config, FW rules and subnet would work for some but not others?

    -ESXi Var\log\auth error - "pam_sm_authenticate: failed [error code: 40017]."

    -Error PowerCLI\PowerShell;

    Connect to % IP % port 22 host

    Server version: SSH - 2.0 - OpenSSH_6.6.1

    Using the SSH version 2 Protocol

    We pretend that version: SSH - 2.0 - PuTTY_Release_0.61

    Diffie-Hellman group Exchange

    Make the exchange of keys Diffie-Hellman with SHA-256 hash

    Footprint of the host key is:

    SSH - rsa 2048 RSA KEY % %

    Detected-> server encryption AES-256 SDCTR customer

    Detected-> MAC Server algorithm HMAC-SHA1 customer

    Initialized AES-256 SDCTR Server-> client encryption

    HMAC-SHA1 Server detected-> client MAC algorithm

    Using the user name "root".

    ******************************************************************

    Message from the WARNING message % day\Banner %

    ******************************************************************

    Access denied

    Access denied

    Access denied

    Access denied

    Access denied

    Access denied

    Access denied

    Access denied

    Access denied

    Access denied

    Received disconnect message (Protocol error)

    Disconnect message text: too many failures for root authentication

    Server disconnect message has

    Type 2 (Protocol error):

    "Too many failures for root authentication."

    * PLINK and PSCP is part of the PuTTY application group. PLINK is to run the CLI and PSCP commands remotely, is to copy the files via SCP.

    Yes, all nodes have been running the same version.

    It seems that this could be a problem with the same or agents. We noticed while speaking with the support that only systems which were related to the area were affected. It turns out that if separate you them from the field and then stop the Service Active Directory, it will suddenly start working. Support is always trying to figure our why, as the error only we were what I mentioned in the previous announcement.

    LucD thanks for the reply.

  • After deactivation of elements using Javascript, the values are missing when the...

    .. .page is submitted.

    Friends,

    I have my page apex in the attribute of the HTML Body with some Javascript functions I wrote to determine the following:

    < pre > onLoad = "RadioGroupEnableDisable ('P213_COMPLETED', true); disableStartEndDate(); "< / pre >


    These disable a group of radio buttons and two text fields and work as expected, the values in the controls, I can't change the values and the values are changed properly when I navigate to the next record.

    However

    When I try to edit a field that allow entry and try to save the changes when the page is submitted, I have an error message stating that the required fields are null (these are the same fields that I disabled).

    Is this expected behavior? or I'm doing something very wrong?

    Any help will be very appreciated!

    Hello

    Disabled items are not submitted. It's standard HTML.
    What is your problem

    BR, Jari

  • After installing Firefox 6 it disables java 6.0.26 and says 'not compatible '. ». The latest version of java ov is 1.6.0.26 which is what most users use. What is the solution?

    This morning I installed Firefox 6 and he says that is not compatible with the Java Console 6.0.26 and deactivated. I use Windows 7 Professional 32 bit. Is this normal?

    The add-on "Java Console" is necessary only if you are a programmer writes Java code that runs in Firefox. Otherwise, this add-on is not useful. Turn it off will not affect web pages that use Java.

  • Disable iTunes using a script?

    There is a bug much despised in OS X in which iTunes opens unexpectedly and in some cases, begins to play music, a podcast, or whatever the user was listening to last. See turn off Bluetooth speaker, triggers iTunes App to open the bug can be triggered in a number of different ways, but it is not the bug I'm asking today; It is an implementation of the recommended solution.

    It turns out that the only way to eliminate the bug is to completely disable iTunes. The steps well documented to do so are:

    Go to the Applications folder > select shortcut app iTunes > select "Show Package Contents" from the context menu > content > Mac OS; within this directory, rename "iTunes" "iTunes-Disabled" and rename "iTunesHelper" "iTunesHelper-Disabled".

    The solution works perfectly. It's a shame to disable iTunes completely, but get a respite from randomly, start iTunes and interfere with my workflow far outweighs any benefit that iTunes provides, so I simply leave this option unchecked and use other audio/video playback options.

    The thing is, these days, I sometimes need iTunes to listen to downloaded television to my AppleTV box. And whenever I do, I have to cancel the steps described above in order to reactivate the iTunes. Which brings me to my question:

    Is it possible to automate the process of deactivating/activating iTunes using the method described? As perhaps some sort of script or something? Ideally, I would have a few shortcuts on my desktop which, when double-clicked, would disable or activate the product by renaming the files. Any ideas?

    Yes, it is quite easy to create two scripts, one to 'turn on' and the other to 'disable' iTunes, but before we discuss that, this bug is you're talkning about? I had never heard of him. Looking at the thread you linked to, it seems, on the contrary, a problem with some drivers of devices, not the operating system.

    Can you describe the circumstances that cause the problem to happen for you, including what specific external device is concerned, if any?

    If you want the scripts, let me know and I'll post back.

  • use of the server for executable files VI

    Hi all

    I tried to find a good explanation and example usage of VIserver to launch executables on client PC (XP) via a LAN to a PC (Win7) process controller. Basically, what I found for the controller is specified in this code snippet:

    The following was placed in the .ini file of the target at the time of construction to allow VIserver using an executable file (?):

    Server.TCP.Enabled = True
    Server.TCP.Access = "' + * '"
    Server.TCP.port = 3364
    Server.TCP.ACL = "290000000A000000010000001D00000003000000010000002A10000000030000000000010000000000"
    Server.VI.Access =""
    server.vi.callsEnabled = True
    server.vi.propertiesEnabled = True

    If a reference to an instance of application LV is open on the computer command on a specified port, and then a VI reference target

    for the .vi file (another instance?) opens on the same target for manipulation of knot VI. So what was lost for me is the executable

    I am trying to run the file. May not be wired to the terminal way to "ref Open VI". This implementation requires the .exe version and the version of VI

    I am trying to run the code? I launched with success of executable files over a LAN using plink with a script file. Problem is that I can't find a way

    get the target executables once loaded. There is most likely a C solution for this (I'll take it if anyone knows!), but since has VIserver of tools

    to control the execution, I would use it. Also, I want to understand the version of VI of the programme and the .exe in this case (s) link

    Version. Any help would be greatly appreciated.

    lb

    Ben OK,

    Your messages made me a technique to load with distance and running an exe file, built in LV8.5:

    1. to load: the controller emits a "tasklist" command to a target. The objective produces an output file of tasklist which is read by the controller. If it concludes that the target is already loaded, the controller will execute it with an invoke command node 'run a VI '.

    2. If the target is not loaded, then a script file is executed on the target via plink of the controller. This command will also start running.

    3. all the subVIs must reside on the target, as you said, even if (as in my case), the target has no LV Developer Suite installed. I placed Traoré versions of files and folders to exe in the same folder.

    4. the .ini file in the compilation has changed as shown in the first post of this thread. No special settings were used in the compilation.

    This probably isn't the exact technique you had in mind, but it doesn't seem to work... Thanks again for your help.

    lb

  • Talkstreamlive.mobi blackBerry Smartphones / tcpmp help

    I would like to be able to access Talkstreamlive.mobi using my T-Mobile BB curve.  In its current form, the "file format is not supported" when I try to listen to a program.  Is there a software I can download to make it work?  I came across the info indicating that I might need a TCPMP , but there are half a dozen "additional plugins for all platforms", so I don't know that that WOULD work.  Any help would be so appreciated!

    What are you talking about? I don't understand. TCP Media Player is for Windows Mobile, not for Blackberry? Or are you compile yourself and convert it to a Java application?

  • The execution of a command shell using vmware cli

    Is it possible to execute a command using vmware cli? I want to

    1 download a script on the server esxi - sharp put

    2. run and it would create results. - ?

    3 download results - lively get

    As demonstrated above, part 2 is not clear how. My guess is that, because of the security, it will be possible. But I want to make sure I'm not missing something.

    Let me know if you know a way out using the cli or other alternatives.

    To achieve #2 I can think of a few things, most are quite hack-ish, however:

    1. you can use plink.exe or another automateable ssh client to connect to the host and run the script.

    2. use vivid for tΘlΘcharger the/var/spool/cron/crontabs/root crontab file, change it to run the script and download it again

    3. it is a non supported VIB that adds arbitrary execution of shell to esxcli:

    http://www.v-front.de/2013/01/release-esxcli-plugin-to-run-arbitrary.html

  • Question not answered on the activation of JavaScript

    There was a question and answer on the activation/deactivation of JavaScript using "subject: config.
    Added another question, which I also have another question in response:

    «Despite my Javascript for Firefox 'active' 23 (I checked the ' topic: config "steps above), certain sites are always asking me to activate my Javascript to view content.»

    I am now running NoScript I know blocks JavaScript, but it was going on until I started NoScript.

    I hope someone can answer this question now.

    Thank you
    Bernadine

    This website message can be triggered by other modules or bad script on the Web site that raises this message.

    Try Firefox Safe mode to see if the problem goes away. Safe mode is a troubleshooting mode, which disables most of the modules.

    (If you use it, switch to the default theme).

    • Under Windows, you can open Firefox 4.0 + in Safe Mode holding the key SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac, you can open Firefox 4.0 + in Safe Mode holding the key option key when starting Firefox.
    • Under Linux, you can open Firefox 4.0 + with leaving Firefox then go to your Terminal and running Safe Mode: firefox-safe-mode (you may need to specify the installation path of Firefox for example/usr/lib/firefox)
    • Or open the Help menu and click on the restart with the disabled... modules menu item while Firefox is running.

    Once you get the pop-up, simply select "" boot mode safe. "

    If the issue is not present in Firefox Safe Mode, your problem is probably caused by an extension, and you need to understand that one. To do this, please follow article Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems .

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. It might help others who have the same problem.

  • Disable the account Web not MS 'Remember password'

    I have a home edition not connected to the network, only the user on Vista Premium PC running.  I accidentally hit "remember password" on a connection to the financial account.  I don't want it remembered and want to always manually enter password.  I can't find answers on this - the financial firm that it is a Windows problem.  All I find are responses on password protection for connecting to a computer or specific programs from Ms.  Any ideas on the granting of this amnesia of account login?

    Hi JBRoberts,

    1. what web browser do you use?

    AutoComplete is a feature in Internet Explorer that remembers the information you typed in the address, web forms, or password fields bar and automatically fills in that information if you start to type the same thing again later. This saves you having to type the same information repeatedly.

    Note: Try the procedure only if you use Internet explorer as your web browser below.

    I suggest that you first delete browsing history and later disable the AutoComplete usernames and passwords on forms

    Delete AutoComplete saved information

    (a) open the Internet Options by clicking the Start button, click Control Panel, clicking network and Internet, and then clicking Options Internet.

    (b) click on the general tab, and then, under browsing history, click delete.

    (c) to do one or more of the following:

    1. Select the checkbox data form .

    2. Select the password box.

    (d) click Removeand then click OK.

    After you have deleted all recorded history auto automatic deactivation method below using all onUser names and passwords on forms

    (a) open Internet Explorer, click the Start button. In the search box, and then type Internet Explorerin the list of results, click on Internet Explorer.

    (b) click on the Tools button and then click on Internet Options.

    (c) click on the content tab.

    (d) under AutoComplete, and then click settings.

    (e) delete the usernames and passwords on forms and boxes ask me before saving passwords .

    (f) click OK and then click OK again.

    Fill in website forms and passwords automatically

    http://Windows.Microsoft.com/en-us/Windows-Vista/fill-in-website-forms-and-passwords-automatically

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to automate the SSH connection/commands on a series of switches PowerConnect 3400 3500 and 6200 series.

    I'm trying to find a way to automate the commands to send a series of switches (about 20) showing some configs and save the output to a file. The way I was trying to do was using plink and creation of a batch of files for her.

    Essentially, it would be something similar to the following.

    ECHO

    for /f % in (devices.txt) plink % l word of PAST of USERNAME-pw-v - m C:\Batch\commands.txt > output.txt

    To split the above command, looking for my ips in the devices.txt and made a "plink pw - username PASSWORD - v IP-l m - COMMANDS > OUTPUT" for each. The problem, I'm running is that the switches do not accept logins, they constantly ask for the user and the password again. Even when you try to put them in the commands.txt he will not accept the entry. I googled using plink with dell switches but there is nothing to talk about this problem.

    So my question is, is it possible to automate this sort of thing in a batch file? Or some way to automate a series of commands to a switch via SSH? I'm just not wan't do manually connect to each of them, carry out my orders, out, reconnect and repeat. I did it on cisco switches so I thought the process would be similar but I don't understand what obstacle I'm running in here. Ideally, I'd like to see how to do this via SSH but at this point, I am ready to accept almost any alternative (secure) to automate the sending of orders for my switches.

    I hope that all makes sense.

    Sorry, I haven't used before plink, so I'm not sure what to change to get this to work. In the past, there was another Member of the community who has been able to use expect to establish connections to switches and save configs.

    Linux.Die.net/.../expect

    It may be somewhat more than installation, but you can be able to make it work for your needs.

    http://Dell.to/1RONL3D

    Let us know

  • Google Chrome is not working/start with Windows 8

    I recently got a computer with Windows 8, and since the last update of Google Chrome, I can't start the program either from the desktop (taskbar or shortened) or the beginning (as an application). I tried to uninstall and reinstall new once or twice, a part of the activation / deactivation of the use as the admin, but nothing worked. What can I do to solve the problem?

    Thank you!!

    Hi I had this problem yesterday... I don't bother thinking about the use of system restore because I had nothing changed on my computer. Simply, I rebooted my computer, uninstalled and reinstalled Google chrome. It now works normally again.

    Hope this helps!
  • vGPU HA test fails with insufficient resources

    I test the config vGPU and automatic recovery after a failure of the host with HA.  When an ESXi host dies running virtual machines fail to start automatically on another host vGPU activated within the same cluster.  The surviving active vGPU hosts have plenty of resources available and are hardware identical to the host that failed.

    The error given by HA is:


    "Resources to switch to this virtual machine. vSphere HA retries failure in la there are sufficient resources. "Reason: unable to find healthy compatible hosts for the virtual machine.

    When recovered all hosts and virtual machines that are dead are fed on an error in the log of the tasks/events:

    "GPU hardware resources are not available. The virtual machine will use software rendering. »

    That in fact, it is a total lie. vgpuvm shows that the VMs system uses hardware GPU, nvidia-smi watch, and dxdiag in the VM comments shows that it is to use.

    Any ideas?

    grep [root@smview1:/vmfs/volumes/9d2dede8-7f3698ef/Training-0004]-i ' mks |' vmware.log
    2016 06-09 T 15: 41:56.342Z | MKS | I120: VTHREAD start thread 2 "mks" pid 39369
    2016 06-09 T 15: 41:56.342Z | MKS | I120: Thread MKS is alive
    2016 06-09 T 15: 41:56.343Z | MKS | I120: MKS-RenderMain: RenderMain: PowerOn allowed 0 1 1 1 0
    2016 06-09 T 15: 41:56.343Z | MKS | I120: MKS-RenderMain: RenderOps collection caps...
    2016 06-09 T 15: 41:56.344Z | MKS | W110: GLWindow: impossible to book GPU host resources
    2016 06-09 T 15: 41:56.351Z | MKS | I120: MKS - SWP: plugin started - llvmpipe (LLVM 3.3, 256-bit)
    2016 06-09 T 15: 41:56.351Z | MKS | I120: Started Shim3D
    2016 06-09 T 15: 41:56.352Z | MKS | I120: Order Shim3D
    2016 06-09 T 15: 41:56.352Z | MKS | I120: MKS - SWP: stopped plugin
    2016 06-09 T 15: 41:56.352Z | MKS | I120: MKS-RenderMain: from MKSBasicOps
    2016 06-09 T 15: 41:56.352Z | MKS | I120: KHBKL: impossible to analyze KeyString to: "
    2016 06-09 T 15: 41:56.352Z | MKS | I120: MKS-RemoteMgr: default display name: training-0004
    2016 06-09 T 15: 41:56.352Z | MKS | I120: MKS-RemoteMgr: Configuration of VNC to the virtual machine configuration file loading
    [root@smview1:/vmfs/volumes/9d2dede8-7f3698ef/Training-0004]
    [root@smview1:/vmfs/volumes/9d2dede8-7f3698ef/Training-0004]
    grep [root@smview1:/vmfs/volumes/9d2dede8-7f3698ef/Training-0004]-i "mks" vmware.log
    2016 06-09 T 15: 41:55.633Z | VMX | I120: MKSXlib: initialized thread-safe Xlib
    2016 06-09 T 15: 41:55.701Z | VMX | I120: DICT mks.enable3d = 'TRUE '.
    2016 06-09 T 15: 41:55.701Z | VMX | I120: DICT mks.use3dRenderer = "auto".
    2016 06-09 T 15: 41:56.342Z | VMX | I120: MKS PowerOn
    2016 06-09 T 15: 41:56.342Z | MKS | I120: VTHREAD start thread 2 "mks" pid 39369
    2016 06-09 T 15: 41:56.342Z | MKS | I120: Thread MKS is alive
    2016 06-09 T 15: 41:56.343Z | MKS | I120: MKS-RenderMain: RenderMain: PowerOn allowed 0 1 1 1 0
    2016 06-09 T 15: 41:56.343Z | MKS | I120: MKS-RenderMain: RenderOps collection caps...
    2016 06-09 T 15: 41:56.344Z | MKS | W110: GLWindow: impossible to book GPU host resources
    2016 06-09 T 15: 41:56.351Z | MKS | I120: MKS - SWP: plugin started - llvmpipe (LLVM 3.3, 256-bit)
    2016 06-09 T 15: 41:56.351Z | MKS | I120: Started Shim3D
    2016 06-09 T 15: 41:56.352Z | MKS | I120: Order Shim3D
    2016 06-09 T 15: 41:56.352Z | MKS | I120: MKS - SWP: stopped plugin
    2016 06-09 T 15: 41:56.352Z | MKS | I120: MKS-RenderMain: from MKSBasicOps
    2016 06-09 T 15: 41:56.352Z | MKS | I120: KHBKL: impossible to analyze KeyString to: "
    2016 06-09 T 15: 41:56.352Z | MKS | I120: MKS-RemoteMgr: default display name: training-0004
    2016 06-09 T 15: 41:56.352Z | MKS | I120: MKS-RemoteMgr: Configuration of VNC to the virtual machine configuration file loading
    2016 06-09 T 15: 41:56.353Z | VMX | I120: [msg.mks.noGPUResourceFallback] GPU hardware resources are not available. The virtual machine will use software rendering.
    2016 06-09 T 15: 41:56.354Z | VMX | I120: Vigor_MessageRevoke: message 'msg.mks.noGPUResourceFallback' (seq 24717) is revoked
    2016 06-09 T 15: 41:56.500Z | VMX | I120: OvhdMem OvhdUser_VmxMks: 33 33 - |      2      2      -
    2016 06-09 T 15: 41:56.500Z | VMX | I120: OvhdMem OvhdUser_VmxMks3d: 180224 180224 - |      0      0      -
    2016 06-09 T 15: 41:56.500Z | VMX | I120: OvhdMem OvhdUser_VmxMksGLRenderer: 12288 12288 - |      0      0      -
    2016 06-09 T 15: 41:56.500Z | VMX | I120: OvhdMem OvhdUser_VmxMksGLTransient: 65536 65536 - |      0      0      -
    2016 06-09 T 15: 41:56.500Z | VMX | I120: OvhdMem OvhdUser_VmxMksLLVM: 8192 8192-|      0      0      -
    2016 06-09 T 15: 41:56.500Z | VMX | I120: OvhdMem OvhdUser_VmxMksScreenTemp: 36866 36866 - |      0      0      -
    2016 06-09 T 15: 41:56.500Z | VMX | I120: OvhdMem OvhdUser_VmxMksVnc: 19362 19362 - |      0      0      -
    2016 06-09 T 15: 41:56.500Z | VMX | I120: OvhdMem OvhdUser_VmxMksScreen: 32769 32769 - |      0      0      -
    2016 06-09 T 15: 41:56.500Z | VMX | I120: OvhdMem OvhdUser_VmxMksSVGAVO: 4096-4096-|      0      0      -
    2016 06-09 T 15: 41:56.500Z | VMX | I120: OvhdMem OvhdUser_VmxThreadMks: 512 512 - |    512 512-
    grep [root@smview1:/vmfs/volumes/9d2dede8-7f3698ef/Training-0004]-i "wddm" vmware.log
    2016 06-09 T 15: 42:29.264Z | vCPU-3 | I120: Guest: vm3d: SVGA WDDM full Display driver, Version: 8.15.01.0045, Build number: 3471414
    2016 06-09 T 15: 42:29.264Z | vCPU-3 | I120: Guest: vm3d: the WDDM OS version: 6.1, build number: 7601, service pack version: 1.0 platform Id: 2, type of product: 1, mask away: 0 x 110
    2016 06-09 T 15: 42:29.270Z | vCPU-3 | I120: Guest: vm3d: comments WDDM support surface is activated.
    2016 06-09 T 15: 42:29.272Z | vCPU-3 | I120: Guest: vm3d: 3D WDDM is enabled.
    2016 06-09 T 15: 42:29.272Z | vCPU-3 | I120: Guest: vm3d: context WDDM DX10 is off.
    2016 06-09 T 15: 42:29.272Z | vCPU-3 | I120: Guest: vm3d: GL3 WDDM is disabled.
    2016 06-09 T 15: 42:29.272Z | vCPU-3 | I120: Guest: vm3d: Cape WDDM DX is disabled.
    2016 06-09 T 15: 42:29.272Z | vCPU-3 | I120: Guest: vm3d: comments from primary WDDM supported in aperture is disabled.
    2016 06-09 T 15: 42:29.273Z | vCPU-3 | I120: Guest: vm3d: hardware acceleration of WDDM GDI is enabled.
    2016 06-09 T 15: 42:29.273Z | vCPU-3 | I120: Guest: vm3d: WDDM GDI HW Acceleration Patch is activated.
    2016 06-09 T 15: 42:29.273Z | vCPU-3 | I120: Guest: vm3d: WDDM primary bounding box mem 16384KB.
    2016 06-09 T 15: 42:29.273Z | vCPU-3 | I120: Guest: vm3d: WDDM 49152 KB VRAM.
    2016 06-09 T 15: 42:29.276Z | vCPU-3 | I120: Guest: vm3d: WDDM to stable using 152 k of memory.
    2016 06-09 T 15: 42:29.276Z | vCPU-3 | I120: Guest: vm3d: WDDM GMR 262144 KB of memory segment.
    2016 06-09 T 15: 42:29.276Z | vCPU-3 | I120: Guest: vm3d: memory of WDDM opening 524288 Ko.

    [root@smview3:~] nvidia-smi
    Thu Jun 9 15:57:40 2016
    +------------------------------------------------------+
    | NVIDIA-SMI 361.45 driver version: 361.45.09 |
    |-------------------------------+----------------------+----------------------+
    | GPU name persistence-M | Bus - Id Disp.A | Volatile Uncorr. ECC |
    | Fan Temp Perf Pwr:Usage / Cap |         The memory usage | GPU-Util Compute M. |
    |===============================+======================+======================|
    |   0 GRID K2 on | Off 0000:84:00.0 |                  Off |
    | S/O 34 C P8 29W / 117W.    846MiB / 4095MiB |      0% by default.
    +-------------------------------+----------------------+----------------------+
    |   1 GRID K2 on | Off 0000:85:00.0 |                  Off |
    | S/O 31 C P8 28W / 117W.    426MiB / 4095MiB |      0% by default.
    +-------------------------------+----------------------+----------------------+
    |   GRID 2 K2 on | 0000: 8A: 00.0 Off |                  Off |
    | N/A 24 C P8 28W / 117W.    426MiB / 4095MiB |      0% by default.
    +-------------------------------+----------------------+----------------------+
    |   GRID 3 K2 on | 0000: 8B: 00.0 Off |                  Off |
    | S/O 36 C P8 28W / 117W.    426MiB / 4095MiB |      0% by default.
    +-------------------------------+----------------------+----------------------+

    +-----------------------------------------------------------------------------+
    | Process: GPU memory.
    |  The name of Type PID GPU use process |
    |=============================================================================|
    |    416MiB training-0001 0 37053 C + G |
    |    0 + centering 37054 VDI-0047 416MiB |
    |    1 C + G 37055 training-0003 416MiB |
    |    416MiB training-0002 37056 C + G 2 |
    |    Training-0004 39359 C + G 3 416MiB |
    +-----------------------------------------------------------------------------+
    gpuvm [root@smview3:~]
    Xserver unix: 0, 0:132:0:0 PCI ID, vGPU: 0x11b0:0x109d, maximum memory of GPU 4184024 KB
    PID 37053, VM "Training-0001", reserved 425984KB of memory GPU.
    PID 37054, VM "VDI-0047", reserved 425984KB of memory GPU.
    GPU memory left Ko 3332056.
    Xserver unix: 1, PCI ID 0:133:0:0, vGPU: 0x11b0:0x109d, maximum memory of GPU 4184024 KB
    PID 37055, VM "Training-0003", reserved 425984KB of memory GPU.
    GPU memory left Ko 3758040.
    Xserver unix: 2, ID PCI 0:138:0:0, vGPU: 0x11b0:0x109d, maximum memory of GPU 4184024 KB
    PID 37056, VM "Training-0002", reserved 425984KB of memory GPU.
    GPU memory left Ko 3758040.
    Xserver unix: 3, PCI ID 0:139:0:0, vGPU: 0x11b0:0x109d, maximum memory of GPU 4184024 KB
    PID 39359, VM "Training-0004", reserved 425984KB of memory GPU.
    GPU memory left Ko 3758040.
    [root@smview3:~]

    Well come to fnd out that if use you vGPU activated virtual machines with VMware, you are not protected by HA.  HA will not automatically recover an active VM vGPU.  I wrote a PowerCli script to automate recovery of a failure of the host and feed virtual machines on a host of surviving.

    Tests by pulling on the power cord on a host virtual vGPU and 80 desktop computers running allowed for them automatically be re-enrolled on the surviving active vGPU hosts and all VMs 80 powered and in 15 min login screen.

    The script has a lot of built-in logic to handle various failure scenarios, and an Advanced option to use plink to clean a failure machines virtual vmx config to speed up the boot process.

    Find out more on Code plex site.  Happy to answer your questions via the Discussions link on the code plex.

    https://vgpumon.codeplex.com/

    Matt

Maybe you are looking for