Hajo Ehlers
unread,Jan 27, 2016, 8:06:02 AM1/27/16You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
# Will build a command to access a AIX LPAR via console.
node=
# Determine HMC
hmc=$(ssh root@$node lsrsrc -x -t IBM.MCP HMCIPAddr | tail -1 )
# Determine CEC
cec=$(ssh root@$node lsattr -El sys0 -a modelname -F value | cut -f2 -d, )
cec="${cec}*"$(keyssh root@$node lsattr -El sys0 -a systemid -F value | cut -f2 -d, | cut -b3- )
# Determine LPAR Name or ID
lparname=$(ssh root@$node uname -L | awk '{print $2 }' )
lparid=$(ssh root@$node uname -L | awk '{print $1 }' )
echo ssh hscroot@$hmc mkvterm -m \'${cec}\' --id ${lparid}