IBM Rational Developer for System z

AIX/RSE Installation and Configuration

Version 7.1
SC23-7679-00
First edition (September 2007)

This edition applies to IBM Rational Developer for System z Version 7.1 (program number 5724-T07) and to all subsequent releases and modifications until otherwise indicated in new editions.

Order publications by phone or fax. IBM Software Manufacturing Solutions takes publication orders between 8:30 a.m. and 7:00 p.m. eastern standard time (EST). The phone number is (800) 879-2755. The fax number is (800) 445-9269. Faxes should be sent Attn: Publications, 3rd floor.

You can also order publications through your IBM representative or the IBM branch office serving your locality. Publications are not stocked at the address below.

IBM welcomes your comments. You can send your comments by mail to the following address:

IBM Corporation
Attn: Information Development Department 53NA
Building 501 P.O. Box 12195
Research Triangle Park NC 27709-2195.
USA

When you send information to IBM, you grant IBM a nonexclusive right to use or distribute the information in any way it believes appropriate without incurring any obligation to you.

Note to U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.

Copyright International Business Machines Corporation 2000,2007. All rights reserved.
US Government Users Restricted Rights -- Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.

Contents

Developer for System z AIX RSE Installation and Configuration
AIX RSE Installation
AIX RSE Directory Configuration
Starting the AIX RSE Server
AIX RSE Server Start Screen Capture
AIX RSE SSL Configuration
AIX RSE Server Start using SSL Screen Capture
AIX RSE Startup At System Boot
Debugging COBOL programs on AIX using Developer for System z
Notices
Programming interface information
Trademarks and service marks

Developer for System z AIX RSE Installation and Configuration

Supported functions on AIX(R) Using Developer for System z

There is currently no z/OS(R) Project for AIX

Note:
Code samples usually assume Linux(R) and reference scripts end in .linux. If you are running on a form of UNIX(R) such as AIX or Solaris, use the scripts ending with .unix.

AIX RSE Installation

AIX RSE is a version of RSE that allows access to the file system and command shells on AIX via Developer for System z.

The AIX RSE install is very simple and uses Install Shield.

There are four steps to install AIX RSE.

  1. Copy the rdzrseaix710.tar.gz file from the RSEAIX directory to a writeable file system directory on the AIX system (/tmp would be a good location).

    The file can be FTP'ed from a Windows(R) system to the AIX system (remember to set the FTP mode to binary) or copied from the CD. If the directory /cdrom already exists the following mount command can be used to access the CD.

  2. Unzip the AIX RSE install image.

  3. Untar the AIX RSE install image.
  4. Run the setup.bin program to install AIX RSE.

AIX RSE Directory Configuration

After the AIX RSE server has been installed, only the root user will be able to log into the system using RSE. To allow other users to access the AIX system via RSE, the AIX system administrator will have to be open permissions for those users with the chmod command. Read and execute permission is required on the directory path to the RSE installation as well as the files in the RSE directory.

Assuming the AIX RSE server is the only product installed in the default directory/opt/IBM/RDz710, executing the following command allows the owning user, root, and any user in root's group, to connect to the AIX RSE server.

 chmod -R ug+xr /opt/IBM  

Using chmod -R ugo+xr /opt/IBM gives every user on the system permission to use RSE.

Starting the AIX RSE Server

In the default installation directory/opt/IBM/RDz710, use one of the following commands to start the RSE server:

perl ./daemon.linux
The RSE server starts and is listening on port 4035.
perl ./daemon.linux 4037
The RSE server starts and is listening on port 4037.
Note:
Stay in ksh. Do not use any other shell such as csh, bash, or sh.

AIX RSE Server Start Screen Capture

Successfully starting the RSE server should look similar to the example below:

# perl ./daemon.linux 4037

Use of uninitialized value in concatenation (.) or string at ./daemon.linux line 42.

Daemon running on: RDzAIXServer.rtp.raleigh.ibm.com, port: 4037

AIX RSE SSL Configuration

SSL can be used to secure communication between Developer for System z and the AIX system by creating a Java(TM) Key Store file and setting the RSE ssl.properties file to point to this JKS file. When the RSE server starts, the properties file is read and the connection with Developer for System z is secured with SSL.

Since RSE uses the ssl.properties file to enable SSL, the system administrator can secure communication, or not, with the installation. They can't have both secured and non secured from the same RSE directory. If secured and nonsecured ports are needed, the installation directory will have to be copied to a new directory.

cp -r /opt/IBM/RDz710 /opt/IBM/RDz710SSL

This copies all files from the default install directory to the new directory. In the new directory modify the ssl.properties file to reference the Java Key Store file. Now the RSE server can be started on a different port, 4039, with SSL securing the communications.

 perl ./daemon.linux 4039

With a Java Key Store file named RDZRSE.jks created in the /opt/IBM/RDz710SSL directory and using the password, RDzisGreat, edit the ssl.properties file and change the following stanzas.

Note:
The path to the jks file MUST be given in the daemon_keystore_file parameter.
#
daemon_keystore_file=/opt/IBM/rse710SSL/RDZRSE.jks
daemon_keystore_password=RDzisGreat
#

To enable SSL authentication change the 2 stanzas enable_ssl and disable_server_ssl in the ssl.properties file to:

enable_ssl=true 
disable_server_ssl=false 

AIX RSE Server Start using SSL Screen Capture

Successfully starting the RSE server using SSL should look similar to the example below:

# perl ./daemon.linux 4039

Use of uninitialized value in concatenation (.) or string at ./daemon.linux line 42. SSL Settings

[daemon keystore:		/opt/IBM/RDz710SSL/aixrse.jks]
[daemon keystore pw:	RDzisGreat]
[server keystore:		/opt/IBM/RDz710SSL/aixrse.jks]
[server keystore pw:	RDzisGreat]
Daemon running on:	RDzAIXServer.rtp.raleigh.ibm.com, port: 4039

AIX RSE Startup At System Boot

To start the RSE daemons every time the AIX system boots, the /etc/inittab file must be updated. The chitab, mkitab, and rmitab commands are used to update the /etc/inittab file.

Note:
The following examples assume that the RSE code is in the /opt/IBM/RDz710directory for non SSL connections and the /opt/IBM/RDz710 path for SSL secured connections.
  1. Create two script files that will be used when the system boots to start two RSE daemons. One file starts the RSE daemon on port 4037 and the other file starts a server to handle SSL connections on port 4039.
    1. Create a file, /opt/IBM/RDz710/RDzRSE4037.sh and in it, place the following three lines
      #!/bin/ksh
      cd /opt/IBM/RDz710
      perl /opt/IBM/RDz710/daemon.linux 4037 2> /tmp/RDzRSE4037.log &
      

      This file that starts the non SSL server.

    2. Save the file and run the following command to make the file executable.
      chmod u+wrx /opt/IBM/RDz710/RDzRSE4037.sh
    3. Create a file, /opt/IBM/RDz710SSL/RDzRSESSL4039.sh and in it place the following three lines.. The daemon will write startup text to /tmp/RDzRSESSL4039.log
      #!/bin/ksh
      cd /opt/IBM/RDz710SSL
      perl /opt/IBM/RDz710SSL/daemon.linux 4039 2> /tmp/RDzRSESSL4039.log &
      

      This file starts the server to handle SSL secured connections on port 4039.

    4. Save the file and run the following command to make the file executable.
      chmod u+wrx /opt/IBM/RDz710SSL/RDzRSESSL4039.sh
    5. Update the file /etc/inittab to start the two servers at boot time. From an AIX session execute the following two mkitab commands.

      mkitab "RDzRSE710:2:once:/opt/IBM/RDz710/RDzRSE4037.sh"
      mkitab "RDzRSE710SSL:2:once:/opt/IBM/RDz710SSL/RDzRSESSL4039.sh"
      

      To check if the mkitab commands worked, type in "lsitab -a". This will show you a listing of the /etc/inittab file with the results of the last two mkitab commands.

      To remove a line from /etc/inittab use the rmitab Name command.rmitab RDzRSE710 will remove the entry from the first mkitab command.

  2. Change paths and port numbers to match the local environment.
  3. Reboot the system with a shutdown -r command to start the RSE daemons from the /etc/inittab file.

Debugging COBOL programs on AIX using Developer for System z

Notices

This information was developed for products and services offered in the U.S.A.

IBM(R) may not offer the products, services, or features discussed in this document in other countries. Consult your local IBM representative for information on the products and services currently available in your area. Any reference to an IBM product, program, or service is not intended to state or imply that only that IBM product, program, or service may be used. Any functionally equivalent product, program, or service that does not infringe any IBM intellectual property right may be used instead. However, it is the user's responsibility to evaluate and verify the operation of any non-IBM product, program, or service.

IBM may have patents or pending patent applications covering subject matter described in this document. The furnishing of this document does not give you any license to these patents. You can send license inquiries, in writing, to:

IBM Director of Licensing
IBM Corporation
North Castle Drive
Armonk, NY 10504-1785
U.S.A.

For license inquiries regarding double-byte (DBCS) information, contact the IBM Intellectual Property Department in your country or send inquiries, in writing, to:

IBM World Trade Asia Corporation
Licensing
2-31 Roppongi 3-chome, Minato-ku
Tokyo 106, Japan

The following paragraph does not apply to the United Kingdom or any other country where such provisions are inconsistent with local law:INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS PUBLICATION "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of express or implied warranties in certain transactions, therefore, this statement may not apply to you.

This information could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein; these changes will be incorporated in new editions of the publication. IBM may make improvements and/or changes in the product(s) and/or the program(s) described in this publication at any time without notice.

Any references in this information to non-IBM Web sites are provided for convenience only and do not in any manner serve as an endorsement of those Web sites. The materials at those Web sites are not part of the materials for this IBM product and use of those Web sites is at your own risk.

IBM may use or distribute any of the information you supply in any way it believes appropriate without incurring any obligation to you.

Licensees of this program who wish to have information about it for the purpose of enabling: (i) the exchange of information between independently created programs and other programs (including this one) and (ii) the mutual use of the information which has been exchanged, should contact:

IBM Corporation
P.O. Box 12195, Dept. TL3B/B503/B313
3039 Cornwallis Rd.
Research Triangle Park, NC 27709-2195
U.S.A.

Such information may be available, subject to appropriate terms and conditions, including in some cases, payment of a fee.

The licensed program described in this document and all licensed material available for it are provided by IBM under terms of the IBM Customer Agreement, IBM International Program License Agreement or any equivalent agreement between us.

Any performance data contained herein was determined in a controlled environment. Therefore, the results obtained in other operating environments may vary significantly. Some measurements may have been made on development-level systems and there is no guarantee that these measurements will be the same on generally available systems. Furthermore, some measurement may have been estimated through extrapolation. Actual results may vary. Users of this document should verify the applicable data for their specific environment.

Information concerning non-IBM products was obtained from the suppliers of those products, their published announcements or other publicly available sources. IBM has not tested those products and cannot confirm the accuracy of performance, compatibility or any other claims related to non-IBM products. Questions on the capabilities of non-IBM products should be addressed to the suppliers of those products.

All statements regarding IBM's future direction or intent are subject to change or withdrawal without notice, and represent goals and objectives only.

This information contains examples of data and reports used in daily business operations. To illustrate them as completely as possible, the examples include the names of individuals, companies, brands, and products. All of these names are fictitious and any similarity to the names and addresses used by an actual business enterprise is entirely coincidental.

COPYRIGHT LICENSE:

This information contains sample application programs in source language, which illustrates programming techniques on various operating platforms. You may copy, modify, and distribute these sample programs in any form without payment to IBM, for the purposes of developing, using, marketing or distributing application programs conforming to the application programming interface for the operating platform for which the sample programs are written. These examples have not been thoroughly tested under all conditions. IBM, therefore, cannot guarantee or imply reliability, serviceability, or function of these programs. You may copy, modify, and distribute these sample programs in any form without payment to IBM for the purposes of developing, using, marketing, or distributing application programs conforming to IBM's application programming interfaces.

Each copy or any portion of these sample programs or any derivative work, must include a copyright notice as follows:

(C) (your company name) (year). Portions of this code are derived from IBM Corp. Sample Programs. (C) Copyright IBM Corp. _enter the year or years_. All rights reserved.

Programming interface information

Programming interface information is intended to help you create application software using this program.

General-use programming interfaces allow you to write application software that obtain the services of this program's tools.

However, this information may also contain diagnosis, modification, and tuning information. Diagnosis, modification and tuning information is provided to help you debug your application software.

Warning: Do not use this diagnosis, modification, and tuning information as a programming interface because it is subject to change.

Trademarks and service marks

The following terms are trademarks or registered trademarks of International Business Machines Corporation in the United States, or other countries, or both:

  • IBM
  • System z(TM)

Java and all Java-based trademarks and logos are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries.

Microsoft(R), Windows, Windows NT(R), and the Windows logo are trademarks or registered trademarks of Microsoft Corporation in the United States, or other countries, or both.

UNIX is a registered trademark of The Open Group

Linux is a registered trademark of Linus Torvalds.

Rational(R) are trademarks of International Business Machines Corporation and Rational Software Corporation(R), in the United States, other countries, or both.

Intel(R) and Pentium(R) are trademarks of Intel Corporation in the United States, or other countries, or both.

Other company, product, and service names, which may be denoted by a double asterisk(**), may be trademarks or service marks of others.