thomas_s2
1 Nickel

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 <username> -p <password> -ip <cluster_address>   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 <username> -p <password> -ip <cluster_address>  -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.

0 Kudos
9 Replies
thomas_s2
1 Nickel

Re: Questions regarding CenteraCLI

Can any one kindly post your views on this?

Thanks.

0 Kudos

Re: Questions regarding CenteraCLI

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

0 Kudos
thomas_s2
1 Nickel

Re: Questions regarding CenteraCLI

Hi Paul,

Thank you for your response.

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

Thanks.

0 Kudos
thomas_s2
1 Nickel

Re: Questions regarding CenteraCLI

Hi Paul,

Is there any update on this?

Thanks.

0 Kudos
Highlighted
khanz1
2 Iron

Re: Questions regarding CenteraCLI

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 <username> -p <password> -ip <ip_address> -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.

thomas_s2
1 Nickel

Re: Questions regarding CenteraCLI

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.

0 Kudos

Re: Questions regarding CenteraCLI

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

0 Kudos
APerez3
1 Copper

Re: Questions regarding CenteraCLI

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

0 Kudos
JHuck1
1 Copper

Re: Questions regarding CenteraCLI

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

0 Kudos