Enterprise Manager Generic (MOSC)

MOSC Banner

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}\""

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center