• Contact Us
  • Home
  • About Us
  • News
    • Entertainment
    • Trending
  • IT
    • Code
    • Cloud
    • Linux
    • Splunk
  • Login
  • Register
Upgrade
CloudiBee
  • Contact Us
  • Home
  • About Us
  • News
    • Entertainment
    • Trending
  • IT
    • Code
    • Cloud
    • Linux
    • Splunk
No Result
View All Result
  • Contact Us
  • Home
  • About Us
  • News
    • Entertainment
    • Trending
  • IT
    • Code
    • Cloud
    • Linux
    • Splunk
No Result
View All Result
CloudiBee
No Result
View All Result
Home Linux

Vmware 2.0 : CLI management utility

cloudibee by cloudibee
November 24, 2008
in Linux
0
0
SHARES
53
VIEWS
Share on FacebookShare on Twitter
Prior to Vmware server 2.0, vmware-cmd was the command line tool for the managements of the virtual machines. In Vmware 2.0, vmware-vim-cmd is the tool that can be used for command line management and automation. Here are some of the example on how to use it.

List all Virtual guests running on vmware server:

[root@foo-vm12 bin]# /usr/vmware/bin/vmware-vim-cmd vmsvc/getallvms
Vmid       Name                         File      Guest OS          Version
112    win67dl   [standard] win67dl/win67dl.vmx   winNetEnterpriseGuest   vmx-07
128    win68dl   [standard] win68dl/win68dl.vmx   winNetEnterpriseGuest   vmx-07
16     win73dl   [standard] win73dl/win73dl.vmx   winXPProGuest           vmx-07
32     win74dl   [standard] win74dl/win74dl.vmx   winXPProGuest           vmx-07
48     win75dl   [standard] win75dl/win75dl.vmx   winXPProGuest           vmx-07
[root@foo-vm12 bin]#

Table of Contents

  • You might also like
  • Linux Change Password Command: Change password expiry in Linux
  • Top Open Source Email Servers

You might also like

Linux Change Password Command: Change password expiry in Linux

April 7, 2021
Email Servers

Top Open Source Email Servers

September 7, 2021

Get the information of a guest :

[root@foo-vm12 bin]# /usr/vmware/bin/vmware-vim-cmd vmsvc/get.guest  128
Guest information:

(vim.vm.GuestInfo) {
   dynamicType = <unset>,
   toolsStatus = “toolsOk”,
   toolsVersion = “116503”,
   guestId = “winNetEnterpriseGuest”,
…
   hostName = “win68dl”,
   ipAddress = “164.81.69.100”,
   net = (vim.vm.GuestInfo.NicInfo) [
      (vim.vm.GuestInfo.NicInfo) {
         dynamicType = <unset>,
…
         deviceConfigId = 4000,
      }
   ],
   disk = (vim.vm.GuestInfo.DiskInfo) [
      (vim.vm.GuestInfo.DiskInfo) {
…
   guestState = “running”,
}
[root@foo-vm12 bin]#

Get detailed configuration of the guest, using “vmsvc/get.config”.

[root@foo-vm12 bin]# /usr/vmware/bin/vmware-vim-cmd vmsvc/get.config 128
Configuration:

(vim.vm.ConfigInfo) {
   dynamicType = <unset>,
   changeVersion = “2008-11-14T18:10:02.621749Z”,
   modified = “1970-01-01T00:00:00Z”,
   name = “win68dl”,
   version = “vmx-07”,
   instanceUuid = “”,
<cut>

Get power state of a virtual machine:

[root@foo-vm12 bin]# /usr/vmware/bin/vmware-vim-cmd vmsvc/power.getstate 128
Retrieved runtime info
Powered on
[root@foo-vm12 bin]#

Power off a virtual machine :

[root@foo-vm12 bin]# /usr/vmware/bin/vmware-vim-cmd vmsvc/power.off 128
Powered off
[root@foo-vm12 bin]#

Power on a virtual machine :

[root@foo-vm12 bin]# /usr/vmware/bin/vmware-vim-cmd vmsvc/power.on 128
Powered on
[root@foo-vm12 bin]#

The commands – “power.off power.on power.reboot power.reset power.shutdown” are used for power management.

Get network information of a virtual machine :

[root@foo-vm12 bin]# /usr/vmware/bin/vmware-vim-cmd vmsvc/get.networks 128
Networks:

(vim.Network.Summary) {
   dynamicType = <unset>,
   network = ‘vim.Network:HaNetwork-Bridged’,
   name = “Bridged”,
   accessible = true,
   ipConfig = (vim.Network.IpConfigInfo) null,
}

To destroy (delete) a VM:

This command stops a vm and unregisters it.

[root@foo-vm12 bin]# /usr/vmware/bin/vmware-vim-cmd vmsvc/destroy 128
Deleted.
[root@foo-vm12 bin]#

To know about the Vmware server information :

[root@foo-vm12 bin]# /usr/vmware/bin/vmware-vim-cmd hostsvc/hostconfig
(vim.host.ConfigInfo) {
   dynamicType = <unset>,
   host = ‘vim.HostSystem:ha-host’,
   product = (vim.AboutInfo) {
      dynamicType = <unset>,
      name = “VMware Server”,
      fullName = “VMware Server 2.0.0 “,
      vendor = “VMware, Inc.”,
      version = “2.0.0”,
      build = “116503”,
      localeVersion = “INTL”,
      localeBuild = “000”,
      osType = “linux-x64”,
      productLineId = “gsx”,
      apiType = “HostAgent”,
      apiVersion = “2.5u2server”,
   }
<cut here>

Previous Post

rsyslogd

Next Post

Netapp nfsstat

cloudibee

cloudibee

Related Posts

Linux

Linux Change Password Command: Change password expiry in Linux

by cloudibee
April 7, 2021
Email Servers
Linux

Top Open Source Email Servers

by cloudibee
September 7, 2021
Linux

How to Determine Redhat Versions Command

by cloudibee
May 27, 2022
Linux

How-to Linux List Processes in 3 Simple Commands

by cloudibee
May 27, 2022
Linux

What is Cron Job in Linux?

by cloudibee
May 27, 2022
Next Post

Netapp nfsstat

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Premium Content

Know about Netapp Snapvault

September 28, 2021

Zuora – Build Your Business, Not Your Billing System (–)

May 27, 2022

Cloud Computing Videos: From Learning to Laughs

May 31, 2022

Browse by Category

  • Business
  • Cloud
  • Code
  • Entertainment
  • finance
  • Game
  • Health
  • IT
  • Lifestyle
  • Linux
  • Marketing
  • Misc
  • News
  • SEO
  • Services
  • Splunk
  • Sports
  • Tech
  • Technology
  • Tipes
  • Tips
  • Uncategorized

Browse by Tags

algorithm Apache Apache2 AWS Bash bash history Bind Blacklists Buffer C C++ CentOS Cerner chage Cloud Cloud Computing Cloud jobs Cloud Storage Cloud Suite Commands Compliance Cron job Debian Directory DMS DNS Docker Dovecot drop cache Email servers Enteprise Cloud Enterprise External FAT32 Format kernel Linux linux kernel Nirvanix passwd Sendmail SSH SSL Terminal Ubuntu

About CloudiBee

cloudibee logo


CloudiBee is an open-source for people who love technology. Here we will be sharing lots of technical information over the web so that a lot of people visit us and gain some knowledge. We are a completely open to all platform. We assure you that you can easily get any info and updated news about the tech world from us. Let's begin with us!

Hot Topic

A Must-Read Guide to Terraform Certification Exam

by mindmingles
August 2, 2022
0
A Must-Read Guide to Terraform Certification Exam

A comprehensive Terraform certification exam preparation manual with a detailed overview of resources, study materials, and exam tips.  Cloud computing...

Read more

Recent News

Business

Hacks for packing wine glasses so they don’t break

July 21, 2022
Business

5 tips to ensure that your movers are always on time.

July 21, 2022
Tips

Flake ice machine for all who want to grow

July 18, 2022

CloudiBee. © 2021. All Rights Reserved

No Result
View All Result
  • Contact Us
  • Home
  • About Us
  • News
    • Entertainment
    • Trending
  • IT
    • Code
    • Cloud
    • Linux
    • Splunk

CloudiBee. © 2021. All Rights Reserved

Welcome Back!

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Fill the forms bellow to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In