Application VM that requires no VMware Tools?

Hey all -

I'm looking for a way to query VC find some info on my virtual machine. Some of these virtual machines do not have VMware Tools of loading (virtual appliances and whatnot), so guestinfo.pl is not always going to be a good way to find info on them.

Basically what I want to know is the name of the customer, guest OS (guestFullName), guestState, hostname, IP addresses, addresses MAC and networks that the guest is on. Is it possible to get this info from the host or VirtualCenter rather than having to get it through the virtual machine tools?

If anyone can point me to a script that does this, or maybe some quick and dirty (and easy to understand - my perl is not terrible) sample code, that would be great.

These scripts are provided as samples, they are in no way limited to only these two scripts. The main differences between the script guestinfo.pl and vminfo.pl is that one is able to get more details on the guestOS relying on the fact that VMware Tools is installed, you can then get a lot of information that I mentioned earlier on the IP address for each individual interface, the host name of the system, disk information, etc. The script of the latter will provide level virtual machine information that will always be available. One can easily write a script that collects all the details you mentioned earlier and more.

Regarding your comment on the interrogation of a virtual machine, I'm not sure I follow your statement. All this information is part of a VirtualMachine object, according to what interests you, you will retrieve specific properties/attributes. The configurations of virtual machine (for example, the name of the virtual machine), the number of CPUS, etc. and info level comments are two properties of a VirtualMachine. Connect to a server vCenter Server and extract all virtual machines and then retrieve the properties that you're interested, so you'll need to query each VM.

I have attached a quick example script that collects some of the basic information about a virtual machine, if she happens to have VMware Tools installed, it will also collect this information, otherwise it will just collect the basic properties. It is written using the vSphere SDK for Perl, which is the same SDK that is used in guestinfo.pl and vminfo.pl, I also added a few comments that should hopefully help you to understand and I would recommend that you take a look at the documentation for more details.

Here is an example of output, you just nee to specify either vCenter Server or you may connect directly to a host ESX (i):

VI-admin@vma5:~ >./getVMInfo.pl--racine of the server vcenter-01 - username
VMName: VM6
GuestFullName: Novell SUSE Linux Enterprise 8/9 (32-bit)
ID: slesGuest
GuestHostname: n/a
GuestIP: n/a
GuestVMHost: 10.20.182.39
GuestNetworks: [dvPortGroup03]

VMName: VCSA
GuestFullName: Red Hat Enterprise Linux 3 (32-bit)
ID: rhel3Guest
GuestHostname: n/a
GuestIP: n/a
GuestVMHost: 10.20.182.39
GuestNetworks: [smalldvPortGroup]

VMName: VCC
GuestFullName: Red Hat Enterprise Linux 4 (32-bit)
ID: rhel4Guest
GuestHostname: n/a
GuestIP: n/a
GuestVMHost: 10.20.182.29
GuestNetworks: [dvPortGroup01 dvPortGroup02 dvPortGroup03 dvPortGroup04]

VMName: VM10
GuestFullName: Novell SUSE Linux Enterprise 8/9 (32-bit)
ID: slesGuest
GuestHostname: n/a
GuestIP: n/a
GuestVMHost: 10.20.182.30
GuestNetworks: [dvPortGroup03]

With some knowledge of the vSphere API, you can retrieve it and more. Here are the references that have been used:

http://pubs.VMware.com/vSphere-50/index.jsp?topic=/com.VMware.wssdk.apiref.doc_50/Vim.virtualmachine.html

http://pubs.VMware.com/vSphere-50/index.jsp?topic=/com.VMware.wssdk.apiref.doc_50/Vim.VM.summary.html

http://pubs.VMware.com/vSphere-50/index.jsp?topic=/com.VMware.wssdk.apiref.doc_50/Vim.network.html

http://pubs.VMware.com/vSphere-50/index.jsp?topic=/com.VMware.wssdk.apiref.doc_50/Vim.VM.GuestInfo.html

http://pubs.VMware.com/vSphere-50/index.jsp?topic=/com.VMware.wssdk.apiref.doc_50/Vim.VM.summary.ConfigSummary.html

If you are interested in writing scripts using the vSphere SDK for Perl, I would recommend you start here - http://pubs.vmware.com/vsphere-50/index.jsp?topic=/com.vmware.perlsdk.pg.doc_50/viperl_proggd_preface.2.1.html and I also have a collection of scripts that I created over the years that contains more than 100 + work complete scripts here - http://pubs.vmware.com/vsphere-50/index.jsp?topic=/com.vmware.perlsdk.pg.doc_50/viperl_proggd_preface.2.1.html

Tags: VMware

Similar Questions

  • Code Signing - cannot ask the application signature that requires to be signed

    Hello

    I'm looking for, via the codesign tool, to the signature of the request for two .cod files. Necessary for the other to exploit one of the .cod files. For example, I have a library and a cldc app that depends on this library.

    I am able to sign completely (RBB, CPR and RRT) library cod. However, on request cod I can sign only with BAR and CPR. No TRNS. Of course, when I try to run my application on my device, it requires the signature of the RRT. But the option doesn't even exist in the to sign!

    How can I register my application correctly?

    Add the cod again to the sigtool makes no difference. I was unable to find all the other useful posts in this forum or in the documentation.

    Thank you!

    Figured it out. It is a failure of the software tool signature to acknowledge that the CLDC app should be signed with the same signatures than any of the libraries it depends on.

    What fixed it:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800901/Support_-_Sign...

    Can I give congratulations to myself?

  • When you run the script via VMware tools when power changed, some commands in script (as a copy) has failed.

    I came across a very strange question. I tried to create some custom vmware scripting tools, such as a new .bat file. This file contains a large number of orders, mostly as copy command "copy file://\\192.168.172.5\abc.exe c:\. ». I set this file as a custom script for Script event - power on guest operating system. Everything goes well with the bat file when I tested it. But after that I changed the State of power to power on, all other commands work fine except the copy commands in the bat file. Why? How can I make it work? Of course the problem of network. And that makes me very confused.

    Hello

    First copy the files on local disk was OK.

    If this works for local disk, but not to a network drive, then hit you indeed a permissions issue any.

    But if I run the script with tools VMware service script, the commands of copy (of the remote shared folder) failed while other controls worked well. I'm quite confused.

    In fact, it is easily explained. The VMware tools service (Yes, it's a service) runs under the account Local system and by default, the local system account has no access to the network for security reasons. You can change the user of the service runs under and see if that solves your problem (very likely)

    To do this, go to computer management (right-click icon desktop, select 'Manage') and open Services and Applications, service page, locate the VMware Tools service in the list. Select properties, log on to the page tabs and change account at your own Local System account. Restart the service and it should work.

    --

    Wil

    _____________________________________________________

    Visit the new VMware developers at http://www.vi-toolkit.com wiki

  • PowerCLI download guest OS version reported by VMware tools set up versus when VM created or altered.

    in my inventory and what RV tools scripts out I get the version of the OS that is selected for the virtual machine to change settings - options - version.  I would also like to produce a list of the version of the OS that signal the VMware tools in order to find those with poorly chosen OS and fix them.  I tried to. ExtensionData.config.Tools and I do not see the operating system listed there, anyone know where it is?

    PowerCLI C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI > $vm1.extensiondata.config.tools

    ToolsVersion: 9354

    AfterPowerOn: true

    AfterResume: true

    BeforeGuestStandby: true

    BeforeGuestShutdown: true

    BeforeGuestReboot:

    ToolsUpgradePolicy: upgradeAtPowerCycle

    PendingCustomization:

    SyncTimeWithHost: true

    LastInstallInfo: VMware.Vim.ToolsConfigInfoToolsLastInstallInfo

    DynamicType:

    DynamicProperty:

    aside, where can note I find a resource that shows what options are available for each command get, such as get-host and get - vm?  I learn a lot about what I can find in powercli by running this command and explore those who returns VMware.Vim..., but would allow me to save a lot of time to be able to just go get him.

    PowerCLI C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI > $vm1 = get - vm test-vm1

    PowerCLI C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI > $vm1.extensiondata

    Capacity: VMware.Vim.VirtualMachineCapability

    Config: VMware.Vim.VirtualMachineConfigInfo

    Layout: VMware.Vim.VirtualMachineFileLayout

    LayoutEx: VMware.Vim.VirtualMachineFileLayoutEx

    Storage: VMware.Vim.VirtualMachineStorageInfo

    EnvironmentBrowser: EnvironmentBrowser-envbrowser-653

    ResourcePool: ResourcePool-resgroup-11

    ParentVApp:

    ResourceConfig: VMware.Vim.ResourceConfigSpec

    Duration: VMware.Vim.VirtualMachineRuntimeInfo

    Comments: VMware.Vim.GuestInfo

    Summary: VMware.Vim.VirtualMachineSummary

    Data store: {Datastore-datastore-591}

    Network: {Network-network-145}

    In summary:

    RootSnapshot: {}

    GuestHeartbeatStatus: Green

    LinkedView:

    Parent: File-group-v.41

    CustomValue: {}

    OverallStatus: Green

    ConfigStatus: Green

    ConfigIssue: {}

    EffectiveRole: {-1}

    Authorization: {}

    Name: test-vm1

    DisabledMethod: {UnregisterVM, RevertToCurrentSnapshot_Task, Destroy_Task, RemoveAllSnapshots_Task...}

    RecentTask: {}

    DeclaredAlarmState: {10.vm - alarm-653, alarm - 11.vm - 653, 653 - 2.vm - alarm, alarm - 23.vm - 653...}

    TriggeredAlarmState: {}

    AlarmActionsEnabled: true

    Tag                  : {}

    Value                : {}

    AvailableField: {FA. GosAgent}

    MoRef: VirtualMachine-vm-653

    Client: VMware.Vim.VimClientImpl

    Try $vm. ExtensionData.Guest.GuestFullName

  • I bought 5 Fusion pro and cannot get the VMware Tools to install

    Bought a new iMac and bought Fusion 5 Pro.  I have a 5 year old and reclassified iMac Fusion 4-5 fusion and had no problems.  The new computer is for my wife and I tried and tried to migrate the laptop and it failed every time.  So, I did a clean install of Windows 7 and before I downloaded everything that I installed VMWare Tools.  For the past 2 days, I was passage of the files from the laptop and install programs that she had on the laptop.  Problems with Word and excel as they sit a spin.  Money went to re - install VMware Tools and it launches the installation program and then comes up with an error message... Error 1606: Could Not Access Network Location \\<host>\users\administrator\my documents

    Went into Windows to uninstall VMware tools and he started the uninstall program then stopped and got the same message.  I can not uninstall tools and cannot re - install the tools.  I need help to solve this problem.  I'm a guy of plug-and-play and if there is code to do, in my opinion, I'm sunk.

    Anyone have any ideas on how to solve this problem, so I can get up and go?

    Extra solution after Woodys - please check if mirror folder is enabled or not, if it is enabled, please disable it then try to reinstall the tools.

  • the application could not start because the configuration of the incorrect application of reinstallation of the application can solve the problem by Insalling Vmware tools so that windows server 2003

    the application could not start because the configuration of the incorrect application of reinstallation of the application can solve the problem by Insalling Vmware tools so that windows server 2003. PFA

    Ranjana,

    Please, review the vminst.log file located in % TEMP and see if we could see related errors.  Otherwise follow the troubleshooting steps below;

    1. check that the guest operating system that you want to install VMware Tools is fully certified.

    2. check that the correct guest operating system is selected

    3. check that the good ISO image is loaded. For more information, see ensuring good ISO image VMware tools is loaded (1003910).

    4. check that the VMware Tools ISO image has not been damaged. For more information, see determine if your VMware Tools ISO image is damaged on a host ESX/ESXi (1004820).

    5. If you are installing a Windows operating system, make sure that you do not encounter problems with your Windows registry database. For more information about the resolution of the problems of register with VMware Tools, see Impossible to upgrade the existing VMware tools (1001354).

    6. If you install on a 64-bit Linux guest OS, make sure that there are no missing dependencies. For more information, see Tools from VMware install fails to start the daemon of guest OS on the operating systems 64-bit Linux with the glibc-common package 32-bit installed (1023185).

    If your problem persists, please refer to: KB VMware: VMware Tools installation problems that are defective in a guest operating system or contact support.

    ~ dGeorgey

  • 7 - fusion '3D Acceleration requires an update of the VMware tools in the Virtual Machine'

    Hello

    I installed the free Fusion 7 trial this week on my iMac and subsequently installed Windows 8.

    The resolution of the screen under Windows is very low compared to the Mac OS.

    In addition, I have the warning message in the Windows display settings:

    '3D acceleration requires an update of the VMware tools in the Virtual Machine'

    I also note that the display driver in Windows is the display driver database with Microsoft.

    A few weeks ago I installed version 6 of Fusion and it worked very well.

    Any ideas?

    Thank you

    John.

    Take a look at the installation and the use of the VMware tools and more spicifically to manually install or upgrade VMware Tools in a Windows Virtual Machine.

    If by chance, VMware Fusion is not properly mounting image VMware Tools windows.iso file then you have to do it manually.  It is located in "/ Applications/VMware Fusion.app/Contents/Library/isoimages/windows.iso" and will have to be copied, not moved, in a location that is accessible out of the bundle of VMware Fusion.app as the office.  If you need to do this, you can right click on the bundle of VMware Fusion.app see the content of the selection box and access its location to copy.  To assign the windows.iso on the CD/DVD image, take a look at: Connect and Set Up a CD/DVD Drive

  • Cisco Unified Communications Applications VMware Tools support

    I have an implementation of vsphere esxi 6.0U2.  Who is the host VMware Tools 10.0.6.

    When the upgrade of all my UC apps (CUCM, CUC, IMP, UCCX *.. it's extraordinary... because it will not refresh), initially, they showed the VMware tools running and updated.  But after a restart of the operating system of each.  VMware Tools is no longer running...

    Anyone can comment/comment.

    doc-wiki such as:

    - http://docwiki.cisco.com/wiki/Virtualization_for_Cisco_Unified_Communica...

    - http://docwiki.cisco.com/wiki/Virtualization_for_Unified_CM_IM_and_Presence

    Indicate that they support ESXi 6.0 and so the tools is surely supported...

    All the comments of someone?

    Anyone else linking 6.0 U2 vSphere, ESXi and pushed its tools to their UC applications?

    Hi Michael,

    I go ahead and prosecute TAC that there are a number of bugs related to the VMware Tools upgrade to any version 10.0. This is a bug in level 2 of gravity;

    https://BST.cloudapps.Cisco.com/bugsearch/bug/CSCux90747

    VMware Tools 10.0 update fails on 10.5/11.0 with selinux denials CUCM
    Symptom:
    VMware Tools upgrade fails due to various Selinux denials. VI-Client status of tools like is not running, not installed.
  • Install vmware tools causes an application actually work

    Yes, you read right to the topic!

    The virtual machine has been 8.1 Windows Pro and is now 8.1 Enterprise 64-bit.

    In both cases, when vmware tools is installed an education program called Mad Minutes works as expected. When vmware tools is uninatalled the program fails to work correctly, and the system doesn't have to be restarted to see the effects.

    Minutes of crazy looks like it is built against a kind of platform of Netscape/Mozilla.

    What is happening, it's interface does not display data from database what ever is used and some elements of the interface are inactive.

    In fact, the same applies to real computers. As part of troubleshooting why the progam runs on Windows 8 Edition Tablet and not 8.1 (I still have to try real win 8 on a virtual machine) I thought to create a virtual machine if I could quickly change OS.

    Virtual machines have no updates that are applied to them, but the updates has not made a difference.

    As far as VMtools goes, I uninstalled the individual components and the software has continued to run. To remove the items from the installation of tools I launch Installer and choose Edit and then select the option do not use. If the change required a reboot, then I would do so, the applicaton would always run.

    I even had as much as having all the options to not use the value. And I mean each element even tools itself, Mad Minutes still worked. Is I go into Add/Remove programs to uninstall VMtools, the program stopped working as expected.

    When I contacted the people at Mad Minute they said that it was a problem that makes it also randomly on Windows 7.

    As you can see it's quite a puzzle indeed, so I'm tender hand to see if the community might be able to understand this.

    Post edited by: VMmouse

    WOOOOT!

    I'm doing the happy dance!

    VMWareTools installed an older version of a distributable period!

    Install .NET 1.1 and then copying MSVCR71.dll to the syswow64 and then re - run Mad Minutes after be copied out of the network to a local area got going.

  • VMware Tools upgrade changes machineID, breaks the issuance of licenses for some applications

    We have this application called localization, manufactured by Hyland Software. Whenever I've upgrade VMware Tools on our ESXi hosts on all virtual machines, it breaks the granting of licenses for the application and localization will not work until the licensing is completely redone. No idea why this is happening?

    Below is the reading of the application regarding the issuance of licenses, and attached is a screenshot of the error in the application. I'm certainly not asking someone to solve the problem of the application, but what on earth could possibly VMTools change that would have caused this? Thanks in advance!

    RegisterName

    dateregistered

    Networkid

    pcserialnum

    usernum

    stationdesc

    wkstationgrpnum

    cachenum

    MacAddress

    lastLogon

    badlogincount

    MachineId

    DALONBASE

    01/02/2013

    BVVGRCRGRKRO

    715828130

    0

    DALONBASE (SELF)

    0

    0

    005056b33b87

    04/02/2013

    0

    C8C2A6CCADFA02BFBAA68E68D9842B25

    DALONBASE

    04/08/2012

    YIEGRCRGRKRO

    715827788

    0

    DALONBASE (SELF)

    0

    0

    005056b33b87

    01/02/2013

    0

    006EEA89FBC395E1DAD4C3BA17DF7DF2

    If this is what is causing the problem?

    I'm sure of it - about 99.9% Yes.

    And if so, what changes would affect a particular software feature licenses?

    "All the virtual machines have a hardware version, which shows the characteristics of virtual hardware that supports the virtual machine, such as BIOS or EFI, number of virtual slots, maximum number of processors, the maximum memory configuration and other features material." - from http://www.vmware.com/products/datacenter-virtualization/vsphere/compute.html

    They probably linked the license to an individual (or several) attribute of the "hardware" of the virtual machine. Think of it regarding a physical system - changed nothing in the operating system (at least not GUID, MSN, etc.), it was something that the operating system has access to related material. You could probably bug them enough and get them to reveal madness method they use for this, but I don't know if it would be really useful. You can leave virtual to older material , to some extent, which means that you can reduce the number of times you have to repeat this process.

  • Application of blackBerry Smartphones that requires credentials at startup only

    Hello

    I don't know if I'm posting in the right place, otherwise, please my present his apologies. I'm looking for an application that requires credentials only on startup and in case the password is entered 3 times incorrectly, the device is reset.

    I have a BES server and I would like to stress that to be managed from there.

    Is there a software to recommend?

    Kind regards

    POY

    I think that there are four events that activate the locking password.

    (1) the icon screen - locked the BB "we demand."
    (2) the configured time-out value - between 1 minute and 1 hour (at least on mine)
    (3) holstering - you can force it to lock (a selection of the configuration)
    (4) restarting the device

    If all goes well a combination of those that meet your needs. Otherwise, you will indeed get a few add-on (and I somehow doubt that one exists since this security feature is already robust enough and meets the needs of most everyone).

    Good luck!

  • I'm confused. Photoshop is only available as a cloud application that requires internet access?

    Photoshop is only available as a cloud application that requires internet access?

    under the direction

    Perpetual licenses are still available for Photoshop CS6 and license of Cloud for CC in Photoshop, Photoshop CC 2014 and 2015 CC Photoshop needs to check on the web at intervals (usually about once a month, I assume) and the application/s can be used in offline mode otherwise.

  • When I try to open a JPEG file in Adobe Bridge I get the following message: "the original application of the bridge is not active.  "Bridge that requires a product calling it launched at least once to activate this feature.  What should I do to fix this

    When I try to open a JPEG file in Adobe Bridge I get the following message: "the original application of the bridge is not active.  "Bridge that requires a product calling it launched at least once to activate this feature.  What should I do for this problem to be able to open JPEGs in Adobe Bridge?

    Open Photoshop first... or any program that you bought that included bridge

  • How can I test that VMware Tools is running?

    In my current project, I occasionally see this error:

    SOAP Fault:
    -----------
    Fault string: Cannot complete operation because VMware Tools is not running in this virtual machine.
    Fault detail: ToolsUnavailableFault
    

    even if I had just dumped this object which seems to have the same appearance as the tools are running or not.

    vm->config->tools: $VAR1 = bless( {
                     'afterPowerOn' => '1',
                     'afterResume' => '1',
                     'beforeGuestShutdown' => '1',
                     'beforeGuestStandby' => '1',
                     'syncTimeWithHost' => '0',
                     'toolsUpgradePolicy' => 'manual',
                     'toolsVersion' => '8295'
                   }, 'ToolsConfigInfo' );
    

    The Summary tab for the relevant vm vSphere Client seems to agree with what I see on the command line, indicating 'OK' when I do not see this error and "Does not work", when I see this error.

    I have clues as to how do I test this and to turn tools on or off if necessary.

    Thank you

    Hugh

    I haven't tried this in Perl, but I think what you want to check for is 
    
    vm->guest->toolsRunningStatus
    
    If that value is "guestToolsRunning" then the Tools should be running.
    
  • VMWare tools update task required

    Hello people,

    Ask a question. I'm a systems engineer run the task to check whether VMtools is running or being updated. It is the necessary task vmware tools. When he runs. He gives no data. See attached picture.

    Current version Pro 6.6.2, Build 5.6.4.1 - 201207101811-246421.

    When I run other jobs against this fglam instance. They have a relationship with the data. It seems to not work. all thoughts.

    Looks like the FGLAM had more 2 700 vm control and couldn't return it surveys. Worked with support to properly configure the fglam_config file to accommodate the virtual machine and now he reports very well. Nice work by the support people. Thanks for your help... al

Maybe you are looking for

  • Improved performance

    I have this code which is not keep in touch with the data entries and I was wondering how I could optimize it.  Specifically, NEU1 and the data frame NEU2 parties are each 24 bytes that need to be managed quickly enough to track the flow of data.  Ea

  • Desktop icons changed Bluetooth

    I downloaded the updates of Windows and shortly after the word for docs document icons on that I backed up my office turned the Bluetooth icons.  is this normal?

  • Cannot share printer using WRT120N

    For the customer's network, they have a desktop running under WindowsXP system wired into a WRT120N router, with Windows Firewall disabled on this computer. The printer connected via USB has sharing enabled, but not from other computers on the networ

  • Do not have to upgrade to windows 10

    Original title: Windows 7 updates I do not wish to install Windows 10.  I haven't decided to install it either. I wish to continue with Windows 7 for now, but am unable to do.  The option available even when you click "View available updates", is to

  • There is more than one active network connection on your computer

    I have two ISP with 2 different IP addresses of course. With one I connect via cable, the other is wireless. Until a couple of days, I'd keep the Wi - Fi turned off on the front of the case, to allow the laptop to connect only to the cable connection