v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
Doing more in less time… Isn’t that
what we all strive to do?
With this in mind, I put together two screen watches on Oracle Enterprise
Manager 12c command line interface, or EM CLI as it is also known.
There is a wealth of information on
any topic that you choose to read about, from manual pages to coding
documents…might I even say blog posts? In
our busy lives it is so nice to just sit back with a short video, watch and learn
enough to dive in.
Doing more in less time, is the
essence of EM CLI. It enables you to script fundamental and complex
administrative tasks in an elegant way, thanks to the Jython scripting
language. Repetitive tasks can be scripted and reused again and again. Sure, a
Graphical User Interface provides a more intuitive step by step approach to
tasks, and it provides a way of quickly becoming familiar with a product and
its many features, and it is definitely the way to go when viewing performance
data and historical trending…but for repetitive and complex tasks, scripting is
the way to go!
Lets us take the everyday task of
creating an administrator.
Using EM CLI in interactive mode the
command could look like this..
emcli>create_user(name='jan.doe', type='EXTERNAL_USER')
This command creates an administrator
called jan.doe which is an externally authenticated user,
possibly LDAP or SSO, defined by the EXTERNAL_USER tag. The create_user procedure takes many arguments; see the
documentation for more information.
Now, where EM CLI really shines and
shows power is in creating multiple users. Regardless of the number, tens or
thousands, the effort is the same. With the use of a standard programming
construct, a loop, you can place your create_user() procedure within it. Using a loop allows you
to iterate through a previously created list, creating new users until the list
is complete.
Using EM CLI in Script mode, your
Jython loop would look something like this…
for user in list_of_users:
create_user(name=user, expire=’true’, password=’welcome123’)
This Jython code snippet iterates
through a previously defined list of names, list_of_users, and iterates through the list, taking each
name, user in this case, and creates an administrator
sets the password to welcome123,
but forces the user to reset it when they first login.
This is only one of over four hundred
procedures created to expose Oracle Enterprise Manager 12c functionality in a
powerful and programmatic way.
It is a few months since we released
EM CLI with scripting option. We are seeing many users adapt to this fun and
powerful way of using Oracle Enterprise Manager 12c.
What are the first steps?
Watch these screen watches, and dive
in.
The first screen watch steps you
through where and how to download and install and how to run your first few
commands.
The Second screen watch steps you
through a few scripts.
Next time, I am going to show you the
basic building blocks to writing a Jython script to perform Oracle Enterprise
Manager 12c administrative tasks.
Join this growing group of EM CLI
users…. Dive in!
Normal
0
false
false
false
false
EN-US
X-NONE
X-NONE
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}