Access RHEVM with CLI

Connect to rhevm cli:

[RHEVM shell (connected)]#  connect –url “https://” –user “@internal” –password “” –insecure

Deploy VM:

[RHEVM shell (connected)]#  add vm –name –cluster-name –template-name   –placement_policy-host-name

start vm:

[RHEVM shell (connected)]#  action vm start

[RHEVM shell (connected)]#  action vm stop

RUn script:

Include all rhev commands in file and run from rhevm shell:

Ex: If you would like to start 100 VM’s:

[RHEVM shell (connected)]#  file rhev_cmd.sh

 

Advertisements

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 )

Google+ photo

You are commenting using your Google+ 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