Duplicating values during OMS migration
We chose to build new OMS servers and repository rather than upgrade our existing system.
I want to duplicate my groups (not admin groups) using emcli.
The emcli portion of the task is easy if I'm willing to copy and paste
# Login to the 'old' OMS
emcli login -user=sysman -pass="${CONSOLE_PWD}"
echo "Generating the group creation script ..."
# Get the group names and crunch them into create_group statements (no PhD required)
emcli get_groups -format=name:csv -noheader >${WORKFILE01}
echo "Execute these commands on the other management server:"
for thisGROUP in `cat ${WORKFILE01}`; do
echo " emcli create_group -name=\"${thisGROUP}\""
0