#!/usr/bin/ksh # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # bos72F src/bos/usr/sbin/triton/scripts/pfc_collect.sh 1.1 # # Licensed Materials - Property of IBM # # Restricted Materials of IBM # # COPYRIGHT International Business Machines Corp. 2016 # All Rights Reserved # # US Government Users Restricted Rights - Use, duplication or # disclosure restricted by GSA ADP Schedule Contract with IBM Corp. # # IBM_PROLOG_END_TAG if [ "$PASSNO" = 1 ]; then # # Handle AIX snap's first pass, which requests a size estimate of the # total expected data to be collected. # typeset -i total_bytes=10485760 # # Report the size estimate through the SCRIPTSIZE environment variable. # echo "$total_bytes" >$SCRIPTSIZE elif [ "$PASSNO" = 2 ]; then # # Handle AIX snap's second pass, which collects the data. # # # Put snap data, and log any progress where AIX snaps wants it # ($SNAPDIR and $SCRIPTLOG, respectively). Subdirectories should # be placed under $SNAPDIR, and log data should be *appended* to # $SCRIPTLOG (e.g. echo "whatever" >>$SCRIPTLOG). # /opt/triton/snap_triton $SNAPDIR else echo "This script must be run under AIX snap." exit 1 fi