Start a Conversation

Unsolved

This post is more than 5 years old

7630

August 6th, 2009 04:00

Questions regarding CenteraCLI

Hi Folks,

I have two questions.

1 . In CenteraCLI 2.4  I executed the following command and got the output

CenteraCLI -u -p -ip    show health

But in CenteraCLI 4.0 , I executed the same command but could not get the output. Are there any changes made to CenteraCLI 4.0 version?

2 . I have added the CenteraCLI.exe to the environmental variable and executed the above command in java runtime.It is invoking the CenteraCLI console and displaying the help options. So I changed the command to

CenteraCLI -u -p -ip   -script health.cli

where, script file health.cli contains the following :

show health

quit

quit

But this is also not giving any result . Any suggestions?

Thanks

Thomas.

11 Posts

August 11th, 2009 01:00

Can any one kindly post your views on this?

Thanks.

409 Posts

August 14th, 2009 07:00

Hi sorry for the delay, these forums are mainly for SDK issues as we don;t deal with centeracli much (well at least I don't)

I found some time to have a go at this and I can't get it to work either.  The best I got was to have it run the script in a new window but like you I couldn't get it to output to a file.

I'll ask around and see if someone in another group can help out

11 Posts

August 18th, 2009 03:00

Hi Paul,

Thank you for your response.

It would be great if you could suggest a solution for this.

Thanks.

11 Posts

October 22nd, 2009 02:00

Hi Paul,

Is there any update on this?

Thanks.

136 Posts

October 22nd, 2009 09:00

Hi thomas.s,

For the CLI in 4.0, I believe in the "show health" cli command there is a point where you are asked if you need to see more information and have to give a "yes" or a "no" response. Here is how I did it and got the output redirected to a file:

C:\>java -cp CenteraViewer.jar com.filepool.remote.cli.CLI -u -p -ip -script showhealth.cli > output.txt

You should have CenteraViewer installed in order to use the above (I had the CenteraViewer.jar file located in C:\)

In the showhealth.cli file I had the following:

show health

yes

quit

Hope this helps for the 4.0 version of Centera CLI.

11 Posts

October 23rd, 2009 01:00

Hi Zeeshan Khan,

Thanks for for your suggestion.

As per your suggestion i executed the below command

java -cp CenteraViewer.jar com.filepool.remote.cli.CLI -u admin -p admin -ip xxx.xxx.xxx.xxx -script script.cli

where script.cli contains

show health

yes

quit

and get the following response

Centera interactive shell (Implementation CLI 4.0.1792, 2008-07-17)

Information you exchange with this server can not be viewed or changed by others.

However, there is a problem with the server's security certificate:
- Can not verify trust chain.

Server Certificate

   Subject:     CN=Arkiv_Source-190c2d46-1dd2-11b2-993c-9e3134fc77b6,OU=CEN
                   TERA,O=EMC,C=US
   Issuer:       CN=Arkiv_Source-190c2d46-1dd2-11b2-993c-9e3134fc77b6,OU=CEN

                   TERA,O=EMC,C=US
   Valid from:      2008-01-22 09:41

   Valid until:       2011-01-22 09:41

Before accepting this certificate, you should make sure that you are connected to the right server. If you accept this certificate you will not get this warning again.

Do you accept this certificate? (permanently, temporarily, no) [no]: Please enter one of the values shown in parenthesis

Do you accept this certificate? (permanently, temporarily, no) [no]: Please enter one of the values shown in parenthesis
Do you accept this certificate? (permanently, temporarily, no) [no]: Please enter one of the values shown in parenthesis
Do you accept this certificate? (permanently, temporarily, no) [no]: Could not connect admin [xxx.xxx.xxx.xxx:3682]
Disconnected.

So i again tried the same command with slight change in the script.cli.Now the script.cli contains

permanently

show health

yes

quit

and the output i got is as follows

Centera interactive shell (Implementation CLI 4.0.1792, 2008-07-17)

Connected to RemoteManager at xxx.xxx.xxx.xxx:3682 using FRMP version 2 (secure)

Type "help" for available commands.

Config# Incorrect or ambiguous command

Commands are:

create      -- enables to create settings in the cluster

delete      -- delete
export      -- exports configuration data from the cluster
help        -- provides help with using the CLI
import      -- imports configuration data into the cluster
migrate     -- migrates data or configurations
notify      -- sends a notification to Customer Services
quit        -- ends the CLI program
replication -- controls replication on the cluster
restore     -- controls restoration on a cluster
set         -- configures specific settings
show        -- retrieves information
shutdown    -- halts the CentraStar software or platform
update      -- enables to update settings in the cluster

and thereafter i am not at all getting any response.It just hangs.

Thanks

Thomas.

409 Posts

October 23rd, 2009 03:00

I think the certificate question may be being asked the first time you successfully connect and then wont be asked again.

Try it manually to see what is being asked now and then try the script again

5 Practitioner

 • 

274.2K Posts

January 31st, 2011 07:00

Not sure if you ever got this to work, but here is something that may help...

1 Attachment

February 9th, 2017 14:00

May I add a question?

I wanted to get the Information "Show Pool Capacity" from CenteraCLI.exe. Now I know that this works for Version > 4.x no more.

Since our CENTERA Systems are blocked by a firewall, what kind of ports/protocoll is used by "Java -cp Center ...". I get a connect via CeneraCLI.exe but not via "Java -cp Center...."

Would be very helpful to get an answer.

Kind regards

Juergen Huck

No Events found!

Top