PAX Unix Explained To Mainframe Nerds.

Document ID : KB000053427
Last Modified Date : 14/02/2018
Show Technical Document Details

Description

We need some clarification of what the PAX commands below do.

cd /your/ldap/installation/directory

pax -w -f /location/for/pax/file/LDAPR14.pax.Z -z -x pax * 
Move file to execution LPAR

cd /your/ldap/execution/directory on execution LPAR
pax -r -f /location/for/pax/file/LDAP.pax.Z -px 

Solution

Overview:

pax is an archive utility as well as an file format used under UNIX. It is similar to tar and cpio and its specification is defined by the IEEE 1003.2.

Usage:

pax
has got two main modes:

  • w (write) : To create an archive file.
  • r (read) : To extract files from an archive file.


And:

  • r et w : To copy a tree to another one.
Examples:

Extraction :
 pax -r < test.pax 
Creation :
pax -wd -f test.pax 
Read content of archive file:
pax -f test.pax 
Copy to new directory :
pax -r -w 
/New/Directory

Explanations of commands in the summary box:

cd /your/ldap/installation/directory <=== Change your current directory to your TSS ldap installation directory.

pax -w -f /location/for/pax/file/LDAPR14.pax.Z -z -x pax * <=== create a pax archive file named LDAPR14.pax.Z in /location/for/pax/file directory which contains all files located in /your/ldap/installation/directory.

cd /your/ldap/execution/directory <=== Change your current directory to your TSS ldap execution directory on the LPAR where ldap will run.

pax -r -f /location/for/pax/file/LDAP.pax.Z -px <=== Extract ldap files from LDAP.pax.Z archive file located in /location/for/pax/file directory.