Tag: xcom

CA XCOM for Solaris

Check if the group xcomadm exists

root@solaris:~ # grep xcom /etc/group
xcomadm::60019:

Install XCOM by using pkgadd

root@solaris:/ # pkgadd -d /cdrom/CAXCOM.INS

The following packages are available:
1 XCOM Unicenter CA-XCOM Data Transport
(sparc) r11 0505

Select package(s) you wish to process (or ‘all’ to process
all packages). (default: all) [?,??,q]: 1

Processing package instance from

Unicenter CA-XCOM Data Transport(sparc) r11 0505

This appears to be an attempt to install the same architecture and
version of a package which is already installed. This installation
will attempt to overwrite this package.

The installation of this package was previously terminated and
installation was never successfully completed.

Do you want to continue with the installation of [y,n,?] y

Unicenter CA-XCOM (TM) Data Transport (Version r11.0505 for BRIXTON)
Copyright(C) 1992, 1993, 1994, 1996 Computer Associates International, Inc.
Compatible with the SunOS 5.x release

Using as the package base directory.
## Processing package information.
## Processing system information.
6 package pathnames are already properly installed.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.

The following files are already installed on the system and are being
used by another package:
* /usr/man/man1
* /usr/man/man3
* /usr/man/man5
* /usr/man/man8

* – conflict with a file which does not belong to any package.

Do you want to install these conflicting files [y,n,?,q] n

Do you want to continue with the installation of [y,n,?] y
## Checking for setuid/setgid programs.

The following files are being installed with setuid and/or setgid
permissions:
/etc/xcomd
/usr/bin/xcom62
/usr/bin/xcomqm
/usr/bin/xcomtcp
/usr/bin/xcomtool

Do you want to install these as setuid/setgid files [y,n,?,q] y
## Processing package information.
## Processing system information.

Installing Unicenter CA-XCOM Data Transport as

## Installing part 1 of 1.
/etc/xcomd
/usr/bin/cleanlog
/usr/bin/xcom62
/usr/bin/xcomencr
/usr/bin/xcomqm
/usr/bin/xcomtcp
/usr/bin/xcomtool
/usr/include/xcom/startst.h
/usr/include/xcom/xcomapi.h
/usr/include/xcom/xcomerr.h
/usr/lib/libxcom.a
/usr/lib/libxcomcomp.a
/usr/lib/libxcomtcp.a
/usr/lib/libxcomtxpi.a
/usr/lib/xcom/libcrypto.a
/usr/lib/xcom/libssl.a
/usr/lib/xcom/openssl
/usr/lib/xcom/xcomend
/usr/lib/xcom/xcomlp
/usr/lib/xcom/xcomntfy
/usr/lib/xcom/xcompp
/usr/lib/xcom/xcompre
/usr/man/man1
/usr/man/man1/cleanlog.1
/usr/man/man1/xcom62.1
/usr/man/man1/xcomencr.1
/usr/man/man1/xcomqm.1
/usr/man/man1/xcomtcp.1
/usr/man/man1/xcomtool.1
/usr/man/man3
/usr/man/man3/xcomapi.3
/usr/man/man3/xcomqapi.3
/usr/man/man5
/usr/man/man5/xcom.cnf.5
/usr/man/man5/xcom.glb.5
/usr/man/man5/xcom.ses.5
/usr/man/man5/xcom.trusted.5
/usr/man/man8
/usr/man/man8/xcomd.8
/usr/man/man8/xcomend.8
/usr/man/man8/xcomlp.8
/usr/man/man8/xcomntfy.8
/usr/man/man8/xcompp.8
/usr/man/man8/xcompre.8
/usr/man/man8/xcomtp.8
/usr/openwin/lib/app-defaults/Xcomtool
/usr/spool/xcom/config/README
/usr/spool/xcom/config/appc.prof
/usr/spool/xcom/config/configssl.cnf
/usr/spool/xcom/config/dh1024.pem
/usr/spool/xcom/config/dh2048.pem
/usr/spool/xcom/config/dh4096.pem
/usr/spool/xcom/config/dh512.pem
/usr/spool/xcom/config/readme.html
/usr/spool/xcom/config/xcom.cnf
/usr/spool/xcom/config/xcom.glb
/usr/spool/xcom/config/xcom.ses
/usr/spool/xcom/config/xcom.tid
/usr/spool/xcom/convtab/atoe.tab
/usr/spool/xcom/convtab/etoa.tab
/usr/spool/xcom/src/apitest.c
/usr/spool/xcom/src/makefile
/usr/spool/xcom/src/qapimake
/usr/spool/xcom/src/qapitest.c
/usr/spool/xcom/ssl/cassl.conf
/usr/spool/xcom/ssl/clientssl.conf
/usr/spool/xcom/ssl/listca
/usr/spool/xcom/ssl/listclient
/usr/spool/xcom/ssl/listserver
/usr/spool/xcom/ssl/makeca
/usr/spool/xcom/ssl/makeclient
/usr/spool/xcom/ssl/makeserver
/usr/spool/xcom/ssl/serverssl.conf
/usr/spool/xcom/trusted/xcom.trusted
/usr/spool/xcom/xcom.log
[ verifying class ]

Installation of was successful.

Checking if the package was installed

root@solaris # pkginfo -l XCOM
PKGINST: XCOM
NAME: Unicenter CA-XCOM Data Transport
CATEGORY: system
ARCH: sparc
VERSION: r11 0505
BASEDIR: /
PSTAMP: usprsu1i20050520102557
INSTDATE: Nov 27 2009 12:47
STATUS: completely installed
FILES: 88 installed pathnames
6 linked files
11 directories
21 executables
5 setuid/setgid executables
27343 blocks used (approx)

To start XCOM at the startup, add the following line to /etc/inittab

xcom:3:once:/etc/xcomd

Add the ports to the /etc/services file

txpi 8044/tcp # xcom
txpis 8045/tcp # xcom (r11 only)

Add the line to /etc/inetd.conf file to make inetd listen for those XCOM request

txpi stream tcp nowait root /usr/lib/xcom/xcomtcp xcomtcp REMOTE 0
txpis stream tcp nowait root /usr/lib/xcom/xcomtcp xcomtcp REMOTE 0 SSL

On Solaris 10, run inetconv to convert the lines you just inserted into SMF service manifests

root@solaris # inetconv

CA XCOM for Linux

Here is a brief document to help you install or uninstall Computer Associates XCOM Data Transport for Linux

How to install XCOM

Check if there is a group named xcomadm on your server. If not, please create it.

root@linux:~ # groupmod xcomadm
groupmod: group ‘xcomadm’ does not exist

Check if the package is not installed. The name of the package is CA_XCOM.

root@linux:~ # rpm -qi -p CA_XCOM.xclx86.k2.6.motif2.2.rpm
Name        : CA_XCOM Relocations: (not relocatable)
Version     : r11                               Vendor: (none)
Release     : 0603                          Build Date: Sat 03 Jun 2006 04:30:04 PM BRT
Install Date: (not installed)               Build Host: usprsus1.ca.com
Group       : Applications/Productivity     Source RPM: CA_XCOM-r11-0603.src.rpm
Size        : 11887644                         License: commercial
Signature   : (none)
Summary     : A file transfer program.
Description :
CA-XCOM is a general purpose file transfer program.

root@linux:~ # rpm -qa | grep CA_XCOM
root@linux:~ #

Since it is not installed, let’s install the package. If you install the package using rpm, remember to check if you have the package called openmotif22.

root@linux:/dsmc/T3/software/files/xcom-linux # yum install CA_XCOM.xclx86.k2.6.motif2.2.rpm
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.atlantic.net
* updates: centos.mirror.nac.net
* addons: centos.aol.com
* extras: mirror.nyi.net
Setting up Install Process
Parsing package install arguments
Examining CA_XCOM.xclx86.k2.6.motif2.2.rpm: CA_XCOM-r11-0603.i586
Marking CA_XCOM.xclx86.k2.6.motif2.2.rpm to be installed
Resolving Dependencies
–> Running transaction check
—> Package CA_XCOM.i586 0:r11-0603 set to be updated
–> Processing Dependency: libXm.so.3 for package: CA_XCOM
–> Running transaction check
—> Package openmotif22.i386 0:2.2.3-18 set to be updated
–> Finished Dependency Resolution
Dependencies Resolved

================================================================================

Package        Arch    Version       Repository                           Size

================================================================================

Installing:
CA_XCOM        i586    r11-0603      CA_XCOM.xclx86.k2.6.motif2.2.rpm    4.5 M
Installing for dependencies:
openmotif22    i386    2.2.3-18      base                                1.3 M

Transaction Summary

================================================================================
Install      2 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 5.8 M
Is this ok [y/N]: y

Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing     : openmotif22                                       [1/2]
Installing     : CA_XCOM                                           [2/2]
Create Q, trusted, src, and trace directories
Make everything in /usr/spool/xcom and /usr/lib/xcom directories group xcomadm
Create the link for the program dealing with remotely initiated transfers
Set the permissions on the xcom directories /usr/spool/xcom/Q, /usr/spool/xcom/trace, /usr/spool/xcom/trusted, /usr/spool/xcom/ssl and /usr/spool/xcom/src
CA_XCOM install finished.

Installed: CA_XCOM.i586 0:r11-0603
Dependency Installed: openmotif22.i386 0:2.2.3-18
Complete!

Add the following lines to the /etc/services file

txpi              8044/tcp      # xcom
txpis             8045/tcp      # xcom (r11 only)

Create two files in /etc/xinetd.d called txpi and txpis

root@linux:~ # vi /etc/xinetd.d/txpi
# default: on
# description: The Unicenter CA-XCOM Data Transport Server.
service txpi
{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/lib/xcom/xcomtcp
server_args = REMOTE 0
}

root@linux:~ # vi /etc/xinetd.d/txpis
# default: on
# description: The Unicenter CA-XCOM Data Transport Server.
service txpis
{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/lib/xcom/xcomtcp
server_args = REMOTE 0 SSL
}

Start XCOM

root@linux:~ # /usr/sbin/xcomd
2008/09/28 21:01:53  PRG=xcomd PID=16368
XCOMU0088I xcomd started.

Making the daemon automatically start on startup

root@linux:~ # echo “xcom:3:once:/usr/sbin/xcomd” >> /etc/inittab
root@linux:~ # grep xcom /etc/inittab
xcom:3:once:/usr/bin/xcomd

Make xinetd reread its configuration file

root@linux:~ # pkill –HUP xinetd

Now check if there is a process listening on ports 8044 and 8045

root@linux:~ # netstat -an | grep 8044
tcp        0      0 0.0.0.0:8044                0.0.0.0:*                   LISTEN

root@linux:~ # netstat -an | grep 8045
tcp        0      0 0.0.0.0:8045                0.0.0.0:*                   EN

How to uninstall XCOM

Stop XCOM daemon

root@linux:~ # /usr/sbin/xcomd -s
XCOMU0079I xcomd: stop requested.
XCOMU0082I xcomd: stop request accepted.

Uninstall XCOM package

root@linux:~ # rpm -e CA_XCOM
Test if xcomd is running
xcomd not running, proceeding with uninstall.
Remove the program dealing with remotely initiated transfers
Remove the xcom directories
CA_XCOM uninstall finished.