#!/bin/bash

# Script to query the managed objects.  This script is intended for use
# by Code Update and will invoke the lssyscfg command.
#
#Usage: lssyscfgUPD -r lpar | prof | sys | sysprof | cage | frame
#                [-m <managed system> | -e <managed frame>]
#                [--filter "<filter data>"]
#                [-F [<attribute names>]]
#                [--header]
#                [--help]
#
#Lists partitions, partition profiles, system profiles, managed system
#information, managed frame cages, or managed frame information.
#
#    -r                       - the type of resources to be listed:
#                                 lpar    - partitions
#                                 prof    - partition profiles
#                                 sys     - managed systems
#                                 sysprof - system profiles
#                                 cage    - managed frame cages
#                                 frame   - managed frames
#    -m <managed system>      - the managed system's name
#    -e <managed frame>       - the managed frame's name
#    --filter "<filter data>" - filters the resources to be listed.  The format
#                               is:
#                                 "filter_name1=value,filter_name2=value,..."
#                               or
#                                 ""filter_name1=value1,value2,...",..."
#                               Valid filter names are:
#                                 lpar_ids, lpar_names, profile_names, 
#                                 work_groups
#    -F [<attribute names>]   - delimiter separated list of the names of the
#                               attributes to be listed for each resource.  If
#                               no attribute names are specified, then all
#                               attributes will be listed.
#    --header                 - prints a header of attribute names when -F is
#                               also specified
#    --help                   - prints this help
#
# 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: -> lssyscfgUPD $*"

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

actzTrace 'ESA    T: <- lssyscfgUPD'

exit $cmdRC
