Monday, 24 February 2014

IBM PureApplication System - My first few hours ... and a command-line already :-)

Whilst attending an IBM PureApplication System (IPAS) training course, one of my colleagues showed me how to download and use the Command-Line Interface (CLI) to access the IPAS management application directly.

As you can see, I have downloaded and unpacked the downloaded ZIP file: -

-rw-r--r--@  1 hayd  staff   9498832 24 Feb 14:35 pure.cli-1.1.0.2.zip

here: -

/Users/hayd/Documents/Docs.ISSW/WebSphere/IPAS/pure.cli

IBM ship a Python-based client with the IPAS software, and kindly provide a Windows (!) batch file to start the Python scripts: -

$ pwd

/Users/hayd/Documents/Docs.ISSW/WebSphere/IPAS/pure.cli/bin

$ ls -al

total 32
drwxr-xr-x@ 7 hayd  staff  238 24 Feb 14:54 .
drwxrwxr-x@ 7 hayd  staff  238 24 Feb 14:50 ..
drwxr-xr-x@ 6 hayd  staff  204 12 Dec 18:40 1.1.0.2-201312121829625
-rwxr-xr-x@ 1 hayd  staff  951 12 Dec 18:40 pure
-rwxr-xr-x@ 1 hayd  staff  575 12 Dec 18:40 pure.bat
-rwxr-xr-x@ 1 hayd  staff  796 12 Dec 18:40 savePassword
-rwxr-xr-x@ 1 hayd  staff  365 12 Dec 18:40 savePassword.bat

Thankfully, there is also a way to start the Python client directly, without needing to resort to Windows :-) which helps with my Mac :-)

However, there is one more hurdle: -

$ ./pure -h ipas01.domain.com -u ipas_admin -p passw0rd

gives me: -

CWZCI0007E: An error occurred while communicating with the appliance at ipas01.domain.com

However, there is a Technote for that: -


<snip>
Local fix

Use the system IP address instead of the hostname in the command
line interface invocation.

Problem summary

A problem with the Java JDK 7  was being encountered when using
the hostname of the system while setting up the connection to
the system.
</snip>

If I instead start the CLI as follows: -

./pure -h 192.168.2.43 -u ipas_admin -p passw0rd

which works a trick: -

Welcome to the IBM PureApplication System CLI.  Enter 'help' if you
need help getting started.
>>> help
The CLI provides an interpreted Jython scripting
environment that enables you to manage the system from a
remote machine.

All of the interactive help information provided by the CLI is also
available at:

    http://publib.boulder.ibm.com/infocenter/psappsys/v1r0m0/index.jsp

The CLI assumes you have some familiarity with
version 2.5.1 of the Python language.  If not, there are many
sources of information available in both printed form and on
the web.

PS I did NOT find it necessary to escape special characters in my password, which is nice :-)

No comments:

Note to self - use kubectl to query images in a pod or deployment

In both cases, we use JSON ... For a deployment, we can do this: - kubectl get deployment foobar --namespace snafu --output jsonpath="{...