Thursday, 4 October 2012

IBM Packaging Utility - Handling FTP Authentication via the Command Line

This post picks up on the earlier article - Using the Packaging Utility to create a repository for IBM Installation Manager - as I continue my exploration of WebSphere Application Server 8.5.

So, when I tried to create an additional repository, for the WAS 8.5 fixes, using the PUCL command: -

$ /opt/IBM/PackagingUtility/PUCL -sVP listAvailablePackages -repositories  ftp://hayd@9.180.200.180/mnt/hgfs/WAS85/Fixes/8.5.0.0-ws-was-ifpm62795.zip

I got this: -

Opening repositories.
Opening repository ftp://hayd@localhost/mnt/hgfs/WAS85/Fixes.
Searching for packages.
CRIMC1011W WARNING: The following repositories are not connected:
  WARNING: Failed to connect to repository 'ftp://hayd@9.180.200.180/mnt/hgfs/WAS85/Fixes'.
    WARNING: Missing credentials for prompt: ftp://hayd@9.180.200.180
    WARNING: Use the -prompt option to receive a credential prompt. The credentials are saved to the keyring file.

Following the suggested solution, I ran this: -

/opt/IBM/PackagingUtility/PUCL -sVP listAvailablePackages -repositories  ftp://hayd@9.180.200.180/mnt/hgfs/WAS85/Fixes/8.5.0.0-ws-was-ifpm62795.zip -prompt

Opening repositories.
Opening repository ftp://hayd@9.180.200.180/mnt/hgfs/WAS85/Fixes/8.5.0.0-ws-was-ifpm62795.zip.

=====> PUCL> Password required

ftp://hayd@9.180.200.180

Select:
     P. Provide credentials and connect
     C. Cancel

Select 'P' to enter credentials and connect, or 'C' to cancel.
-----> P

Enter user name:
To use the user name 'hayd', press Enter. To use a different user name, enter the user name.
-----> hayd

Enter password:
To skip entering password, press Enter. In most cases, you must enter a password to access a repository.
-----> 

     1. [ ] Save password if valid
Saved passwords are stored on your computer in a file which is difficult, but not impossible, for an intruder to read.

     O. OK,      C. Cancel
-----> O
.
Searching for packages.
Collecting all offerings or updates in repository ftp://hayd@9.180.200.180/mnt/hgfs/WAS85/Fixes/8.5.0.0-ws-was-ifpm62795.zip.

It's all good now.

More to come .....

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="{...