Start a Conversation

Unsolved

This post is more than 5 years old

14678

November 9th, 2009 10:00

using JCASScript

I must be missing something. No matter what I try when running JCASScript, all I ever get is the following message: Usage:

CASScript < inputfile > outputFile. Any suggestions?

1 Rookie

 • 

6 Posts

November 9th, 2009 11:00

I tried on Windows and I get:

C:\jcas>java -jar JCASScript.jar
Exception in thread "main" java.lang.UnsatisfiedLinkError: com.filepool.natives.FPLibraryNative.setLastError(I)V
        at com.filepool.natives.FPLibraryNative.setLastError(Native Method)
        at com.filepool.fplibrary.FPLibraryException.retrieveErrorString(Unknown Source)
        at com.filepool.fplibrary.FPLibraryException. (Unknown Source)
        at com.filepool.fplibrary.FPLogState. (Unknown Source)
        at LogStateCommands.initLogState(LogStateCommands.java:43)
        at Commands. (Commands.java:50)
        at Casscript.runCasscript(Casscript.java:163)
        at Casscript.main(Casscript.java:115)

2 Intern

 • 

136 Posts

November 9th, 2009 11:00

You can invoke JCASScript from a command prompt by using:

java -jar JCASScript.jar

I just download the JCASScript tool for Windows from EMC Centera® SDK and Community Tools, copied it locally (say under C:\) and then used the above to start JCASScript.

After you have launched it successfully, you should see something like the following as the command prompt:

CASScript>

At this point you can then type 'help' for a list of all the commands that you can use.

2 Intern

 • 

136 Posts

November 9th, 2009 12:00

If you just type C:\java what result do you get? Is Java correctly installed on your machine?

I am using the following version of java:

C:\>java -version
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode, sharing)

1 Rookie

 • 

6 Posts

November 9th, 2009 12:00

Found the problem JCASScript doesn't work with a 64-bit versions of Java.

2 Intern

 • 

136 Posts

November 10th, 2009 07:00

We do not have an official 64-bit version of JCASScript. The JCASScript package available from the community tools download page has 32-bit libraries. You can try the following to have the 32-bit version of JCASScript work for you:

  • Replace the 32-bit libraries by the 64-bit library files (you can download the 64-bit version of Centera SDK from EDN Download Center)
  • Run the JCASScript package (32-bit libraries) with 32-bit JVM on your 64-bit machine

7 Posts

December 21st, 2009 17:00

I found this works real well except that "help" doesn't reveal too much. For example,

  CASScript> clipExists

isn't described. However, all this is impeccably documented in JCASScript_Users_Manual.pdf.

Thanks!

2 Intern

 • 

227 Posts

June 1st, 2010 05:00

How to configure the script to use that pea file ? is this environmental variable ? export centera_pea ? can I use the anonymous profile ?

2 Intern

 • 

227 Posts

June 1st, 2010 05:00

Ok, I already have the pea , but where to change the string connection ?

2 Intern

 • 

417 Posts

June 1st, 2010 05:00

The Centera admin needs to supply you with a copy of the PEA file. You then simply append the file location to your connection string e.g. "192.168.1.101,192.168.1.102?C:\\mySinglePoolQuery.pea".

You cannot use anonymous because that will query on all pools that are accessible to the anonymous profile!

2 Intern

 • 

417 Posts

June 1st, 2010 05:00

"DX Server"?????

This question relates to using JCASScript. If you are not familiar with this tool then you should not be using it as it requires basic Centera knowledge and can be dangerous if you do not have this.

Typing "help" at the prompt will give you a list of commands.

2 Intern

 • 

417 Posts

June 1st, 2010 05:00

In order to query on clips within a single pool you would create a profile that has Query permission for only the pool in question (i.e. no q capability on any other pool, including the default pool). You would then connect to the cluster using the credentials for that profile (PEA file or name / secret).

You then simply run the "query" command. If you wish to restrict by date, clip type etc then you can set these on the Query Expression. Just type help at the JCAS prompt and you will see the options that are available.

2 Intern

 • 

227 Posts

June 1st, 2010 05:00

Hi Khan ,

am trying to use this tool to provide a list , for all clips under one of the pools , i have too questions here,

1. how to identify which pool to use ?

2. which command to use ?

Thnx.

2 Intern

 • 

227 Posts

June 1st, 2010 13:00

no worries am not new with centera, am new with the script .All what am looking for is how/ where to add pool & cluster IPs using the JCASScript!!

2 Intern

 • 

417 Posts

June 1st, 2010 14:00

There are full examples in the user manual that comes as part of the download.

Regards, Graham L. Stuart

Centera SDK Architect

No Events found!

Top