#!/bin/bash

# Script to query partition information.  This script is intended for use
# by Code Update and will invoke the lspartition command.
#
#Usage: The lspartitionUPD command accepts following options:
#  -h           Help messages.
#  -c <MTM_MS>  Machine Type, Model, and Serial.
#  -i           Invoked by InvScout through lshsc.
#               Return format: <LParID:IPaddress:active;>
#  -ix          Invoked by InvScout directly for ext data.
#               Return format: <LParID:IPaddress:active:hostname:OStype:OSlevel;>
#  -sfp         List partitions used for SFP.
#  -dlpar       List partitions used for DLPAR.
#  -dlparreset  Reset DCaps for all partitions.
#
# Exit status = 0 if no errors occur; non-zero otherwise.
#
# Module History:
# 00 08/03/2006  E. Leet     Initial release
# 01 09/26/2006  M. Antes    572107 - exit with return code from command

actzTrace "ESA    T: -> lspartitionUPD $*"

/opt/hsc/bin/lspartition $*
cmdRC=$?

actzTrace 'ESA    T: <- lspartitionUPD'

exit $cmdRC
