VMWARE POWER CLi

Today I have installed vmwaer powercli in one of vcenter server and its very useful tool. Its almost like server 2012, hyper-v PowerShell module.We can use this for create scripts or perform management tasks with multiple vms with same time.

To get the available cli commands we have to open powercli and type get-vicommand

 

6

we can use powershell command connect-viserver –server “server ip or host name” to connect vcenter server.

1

 

To get the names of the vms which are hosted in the vmware cluster we have to use get-vm

2

 

Here im going to shutdown all the testvms in my vmware cluster

Get-vm –name test* | stop-vm

4

 

For creatig snapshot of the vm we can use new-snapshot cmdlet

 

5

 

Using Get-vicommand we can all the available vmware powershell commands

6

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: