2 Intern

 • 

136 Posts

November 20th, 2009 09:00

You will need the login information to authenticate using the CenteraCLI. You can use the default Centera admin login information when scripting the CLI. (this can be obtained from your Centera administrator as some administrators may change the default admin login/password combination).

The Centera Tools also have documentation (also referred to as Centera Online Help) on Centera CLI and example on how to script it. Please review section titled "CLI Reference Guide" of "Centera Online Help 4.1".

You can also review the threads on Centera CLI:  https://community.emc.com/thread/5276 & https://community.emc.com/message/11703 that have discussions around this.

2 Posts

November 20th, 2009 11:00

I think I need to make explain myself, I understand how to use the script part, but either way I run the "CenteraCli" command with or without the options, I am required to manually enter my username and password each and every time.

When I run the command below,  I have to enter my username and password manually.

./CenteraCli -u bob -p X123zz2 -script bob.cli

Username:

Password:

IP

So again I will pose my question, what do I need in my environment variables to make this work correctly in Solaris???

2 Intern

 • 

417 Posts

November 23rd, 2009 02:00

As you seem to be doingsupplying the username and password on the CLI, are you sure that these are valid credentials?

There are scripting examples in these forums and also in the online help. I have had no problem using a batch file containing the command

CenteraCLI -u admin -p ******** -ip a.b.c.d:3682 -script script.cli

where script.cli contains the commands required. For example, this script deletes and then recreates a pool / profile setup and exports it.
                                                                                                                                                                                             
delete profile newProfile
yes
delete pool newProfile
yes
yes
create pool newProfile
rwdeqDc

yes
create profile newProfile
yes
yes
access
newProfile
rwdeqDc
no
no
generate
yes
yes
c:\\newProfile.pea
export poolprofilesetup
no
pool
no
newProfile
newProfile.exp
secret
quit
quit
No Events found!

Top