Monday, June 25, 2012

VMware Important Commands

Upgrade VMware Tools, all virtual machines in cluster:

Get-Cluster "Productie" | Get-VM | Update-Tools –NoReboot

Upgrade VMware Tools, located in folder:

Get-Cluster "Productie" | Get-Folder "Beheer servers" | Get-VM | Update-Tools –NoReboot

Upgrade VMware Tools, selected virtual machine:

Get-Cluster "HOCluster" | Get-VM "VDI01" | Update-Tools –NoReboot

Find VMware CPU Information

cat /proc/cpuinfo

Find out memory information

cat /proc/memoinfo

Enter Maintenance Mode:

Vimsh -n –e /hostsvc/maintenance_mode_enter

Exit maintenance Mode:

Vimsh –n –e /hostsvc/maintenance_mode_exit

Check the ESX server whether Maintenance mode or Not:

Vimsh –n –e “hostsvc/hostsummary” | grep inMaintenanceMode

List the location of the virtual machine.

vmware-cmd -l

VMware Host Log Files located in ,


To Restart VMware services

#service mgmt-vmware restart
#service vmware-vpxa restart
#/etc/init.d/network restart

 VMware DNS verification

1.Verify the format and content of /etc/hosts, run the command:
[root@server root]# cat /etc/hosts
 Here is an example of the hosts file:         localhost.localdomain localhost server

2. To verify the contents of /etc/sysconfig/network, run the command: [root@server root]# cat /etc/sysconfig/network

Confirm that the proper values for your environment exist for the fully qualified hostname and gateway. Consult your network administrator if you are unsure of the proper values. Here is an example of the network file:


3. To verify that /etc/sysconfig/network-scripts/ifcfg-vswif0 has the correct settings for IP address (IPADDR), subnet mask (NETMASK), and network (NETWORK), run the command:

[root@server root]# cat /etc/sysconfig/network-scripts/ifcfg-vswif0

Consult your network administrator if you are unsure of the correct settings.
Here is an example of the ifcfg-vswif0 file:

PORTGROUP="Service Console"

4. To display the routing table, run the command:
[root@server root]# route –n

The output looks similar to:

Destination   Gateway Genmask         Flags  Metric   Ref   Use  Iface U         0          0        0    vswif0      U         0          0        0    vswif0        UG       0          0        0    vswif0

Ensure that the second column of the row flagged with UG matches the gateway address for your environment.

5. To verify that the DNS information in /etc/resolv.conf is correct for your environment, run the command:

[root@server root]# cat /etc/resolv.conf

Here is an example of the resolv.conf file:


  1. Hello, its good piece of writing concerning media print, we all
    be aware of media is a wonderful source of information.
    Here is my site ... web designing companies in chennai

  2. GenđÁrally I don't learn article on blogs, however I wish to say that this write-up very compelled me to try and do so! Your writing taste has been amazed me. Thanks, very nice post.

    Here is my blog post:
    Stop by my homepage ... social media optimization

  3. Heya this is kind of of off topic but I was wanting to know if
    blogs use WYSIWYG editors or if you have to manually code with HTML.
    I'm starting a blog soon but have no coding expertise so I wanted to get advice from someone with experience. Any help would be greatly appreciated!

    My web page -
    my web site ::

  4. Very nice post. I simply stumbled upon your weblog and wanted to mention that I have truly enjoyed surfing around your blog
    posts. After all I'll be subscribing on your rss feed and I'm hoping you write
    once more soon!

    Here is my web page: hop abs

  5. Hello There. I found your blog using msn. This is a very
    well written article. I will be sure to bookmark it and
    return to read more of your useful information. Thanks for the post.

    I'll definitely comeback.

    Look into my blog - Identity management solutions

  6. Hi! Would you mind if I share your blog with my twitter group?
    There's a lot of folks that I think would really enjoy your content. Please let me know. Many thanks

    Here is my page - R Replacement Sensors

  7. We're a bunch of volunteers and starting a brand new scheme in our community. Your website provided us with helpful info to work on. You have done an impressive process and our entire neighborhood will be grateful to you.

    Feel free to surf to my weblog - Mortgage loan programs

  8. Hello, I enjoy reading through your post. I wanted to write
    a little comment to support you.

    Here is my blog post; Consumer credit counseling

  9. Wow, incredible blog structure! How long have you been blogging for?
    you made blogging look easy. The whole glance of your site is great, let alone the content material!

    Also visit my web page; testosterone booster