Hardware Management Console Best Practices
- 54 -
{
echo "hmcusers: -o [ add | delete ] -h <list of hmc
hosts>"
echo " -l <login> -u <list of user names> -
a <hmc access>"
echo " -o The operation to perform, add or
delete users."
echo " -h The list of HMC perform the
operation."
echo " -l The login to use on HMC to perform
the operation."
echo " -u The list of user to create."
echo " -a The access on HMC."
exit 1
}
while getopts "o:h:l:u:a:" _arg; do
case $_arg in
o) op=$OPTARG
;;
h) hl=$OPTARG
;;
l) lid=$OPTARG
;;
u) ul=$OPTARG
;;
a) access=$OPTARG
;;
*) usage
;;
esac
done
if [ "$op" == "" ]; then
echo "operation not specified"
usage
fi
if [ "$hl" == "" ]; then
echo "host list not specified"
usage
fi
if [ "$lid" == "" ]; then
echo "login id not specified"
usage
fi
if [ "$ul" == "" ]; then
Komentáře k této Příručce