Taking advantage of Inbuilt scripts in OVM

Login into OVM CLI. Go to the mentioned path. You will couple of scripts present their. These are expect scripts.

root@myolabovm01 ~> cd /u01/app/oracle/ovm-manager-3/ovm_cli/expectscripts/

root@myolabovm01 expectscripts> ll
total 20K
-rwxr-xr-x 1 oracle dba 2.9K Feb 18 2013 ackAllEvents
drwxr-xr-x 2 oracle dba 4.0K Feb 18 2013 createdeletescripts
-rwxr-xr-x 1 oracle dba 1.8K Feb 18 2013 eovmcli
-rwxr-xr-x 1 oracle dba 1.7K Feb 18 2013 eovmclixml
-rwxr-xr-x 1 oracle dba 1.6K Feb 18 2013 inventory

Inventory script will show all the components connected to OVM. Very useful to take output before taking any action on OVM environment. It truly justify its name.

  • How to run these scripts ?

We can run the scripts by passing the username and password.

root@myolabovm01 expectscripts> ./eovmcli admin password “list Server”

Command: list Server

Status: Success
Time: 2014-06-09 22:07:43,231 MDT
Data:
id:08:00:20:ff:ff:ff:ff:ff:ff:ff:f4:64:22:e0:10:00 name:mysmsmosovs02
id:08:00:20:ff:ff:ff:ff:ff:ff:ff:c4:a1:22:e0:10:00 name:mysmsmosovs03
id:08:00:20:ff:ff:ff:ff:ff:ff:ff:f8:62:22:e0:10:00 name:mysmsmosovs01

  • Whats the directory in initial output?

createdeletescripts directory content will help you to start with expect scripting. Kindly read the README file present in this.

root@myolabovm01 expectscripts> cd createdeletescripts

root@myolabovm01 createdeletescripts> ll
total 88K
-rwxr-xr-x 1 oracle dba 8.8K Feb 18 2013 commonExpectDef.cli
-rwxr-xr-x 1 oracle dba 5.1K Feb 18 2013 create-fc-based-VM.cli
-rwxr-xr-x 1 oracle dba 5.2K Feb 18 2013 create-iscsi-based-VM.cli
-rwxr-xr-x 1 oracle dba 6.0K Feb 18 2013 create-nfs-based-VM.cli
-rwxr-xr-x 1 oracle dba 1.5K Feb 18 2013 delete-fc-based-VM.cli
-rwxr-xr-x 1 oracle dba 1.8K Feb 18 2013 delete-iscsi-based-VM.cli
-rwxr-xr-x 1 oracle dba 1.8K Feb 18 2013 delete-nfs-based-VM.cli
-rwxr-xr-x 1 oracle dba 511 Feb 18 2013 fc-based-VM.properties
-rwxr-xr-x 1 oracle dba 611 Feb 18 2013 iscsi-based-VM.properties
-rwxr-xr-x 1 oracle dba 544 Feb 18 2013 nfs-based-VM.properties
-rwxr-xr-x 1 oracle dba 4.3K Feb 18 2013 README
-rwxr-xr-x 1 oracle dba 497 Feb 18 2013 runAllCreateDeleteTests.sh
-rwxr-xr-x 1 oracle dba 9.2K Feb 18 2013 runCLI.py
-rwxr-xr-x 1 oracle dba 1.3K Feb 18 2013 runOVMCLITest

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s