#!/bin/bash

# Script to query partition information.  This script is intended for use
# by Service Agent and will invoke the lspartition command.
#
# Usage:
#     lsPARTITION <parms>
#
#     <parms>  valid parms sent to lspartition
#
#     For example:     lsPARTITION -c machType-machModel_machSerial -ix 
#
# Exit status = 0 if no errors occur; non-zero otherwise.
#
#
# Module History:
# 00 04/16/2004  M. Gregor     Initial release
# 01 10/15/2004  M. Gregor     add alterbate display option $3

actzTrace "ESA    T: -> lsPARTITION $*"

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

/opt/hsc/bin/lspartition $1 $2 $3
lsRC=$?


actzTrace 'ESA    T: <- lsPARTITION'

exit $lsRC
