You are on page 1of 1

#!

/bin/ksh
#####################################################
#
#####################################################
# Desc :
# Parameters: These Parameters are use to get command values and store in Filena
me, DefaultProduct and DefaultRole
#
$1 =
#
$2 =
#
$3 =
#
$4 =
#
$5 =
# History : created by Intikhab Alam for Release Team
#
# -------------------------------------------------# $Revision:: 1.0
$
# -------------------------------------------------# set -x to check command line parameters
if (( $# < 3 ))
then
echo "usage [UserList Filename] [Product] [Role]"
return 1 ;
Filename=$1
DefaultProduct=$2
DefaultRole=$3
echo "FileName" = $Filename
echo "DefaultProduct" = $DefaultProduct
echo "DefaultRole" = $DefaultRole
awk -F',' '{print "UREG "$1" /WORKSET="PRODUCT_ID":WS_"PRODUCT_ID" /ATTRIBUTES=
(full_name="$2" ,email_addr="$3",site="$4")"}' PRODUCT_ID=$DefaultProduct $Filen
ame > tmpUregcmd.txt
dmcli -param /appl/omt/COMMON_OMT/cfg/DmConnectParameters.ini -file tmpUregcmd.t
xt > tmpResult.txt

You might also like