#!/bin/bash
# Script to invoke vpdfs.  This script is intended for use
# by Service Agent and will invoke the vpdfs command.
#
# Format:  saVPDFS -v database      to check to see if the database is installed
# Format:  saVPDFS -x cluster       to gather and collect the cluster vpd
#
# Usage:
#     saVPDFS <parms>
#
#     <parms>
#         $1 -v or -x
#         $2 database or cluster
#
#
# Exit status = 0 if no errors occur; non-zero otherwise.
#
#
# Module History:
# 00 03/14/2005  M. Gregor     Initial release

actzTrace "ESA    T: -> saVPDFS $*"

if (($# < 2)); then
   actzTrace 'ESA    F: Missing required argument(s).'
   exit 100
fi

/opt/hsc/bin/vpdfs $1 $2
vpdfsRC=$?

actzTrace 'ESA    T: <- saVPDFS'

exit $vpdfsRC
