PAX Unix Explained To Mainframe Nerds.
search cancel

PAX Unix Explained To Mainframe Nerds.

book

Article ID: 53427

calendar_today

Updated On:

Products

ACF2 ACF2 - DB2 Option ACF2 for zVM ACF2 - z/OS ACF2 - MISC 24X7 High-Availability Manager for DB2 for z/OS Batch Processor Compile QQF Data Compressor for DB2 for z/OS CA Unicenter NSM RC/Update for DB2 for z/OS DB2 TOOLS- DATABASE MISC Top Secret Top Secret - LDAP

Issue/Introduction

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 

 

 

 

Environment

Release:
Component: TSSLDP

Resolution

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.