Logging onto EM in Different Environments

Everything about Control-M Enterprise Manager Server installation or setup.
Post Reply
User avatar
Hubba
Nouveau
Nouveau
Posts: 69
Joined: 10 Dec 2007 12:00
Location: Boston

Logging onto EM in Different Environments

Post by Hubba » 28 Dec 2010 6:13

I have two serparate EM's. One in Production and one in Development. If I want to logon to either one, I have to logoff and change the Host name in my advanced tab, hit apply, and go from there. I'd like to have a dropdown to select which Ctrlm. Anyone know how to set this up?

User avatar
rchkevin
Nouveau
Nouveau
Posts: 67
Joined: 29 Oct 2007 12:00
Location: Chennai

Post by rchkevin » 29 Dec 2010 5:17

This cannot be acheived in Enterprise Manager as Host Name Entry takes only one value.

User avatar
matom
Nouveau
Nouveau
Posts: 37
Joined: 29 Nov 2006 12:00
Location: Ile de France

Post by matom » 29 Dec 2010 4:09

Create two shortcuts, one for each environment, on your desktop!

How to do (EM 6.2 example) :
Go to « C:\Program Files\BMC Software\CONTROL-M EM 6.2.01\Default\etc\domains »
1. make a save copy of your confg.xml file
2. make two other config.xml file copies; call them config_EMPROD.xml and config_EMDEV.xml.

Update hostname and port number in config_EMPROD.xml (Production). Below an example of updated line :
variable name="-ORBInitRef" value="NameService=corbaloc::1.2@MyProdHost:15307/NameService"

Update hostname and port number in config_EMDEV.xml (Development). Below an example of updated line
variable name="-ORBInitRef" value="NameService=corbaloc::1.2@MyDevHost:14987/NameService"

Then create two .bat file in « bin » directory
« C:\Program Files\BMC Software\CONTROL-M EM 6.2.01\bin »

EMPROD.bat file
del "C:\Program Files\BMC Software\CONTROL-M EM 6.2.01\etc\domains\config.xml" /q
copy "C:\Program Files\BMC Software\CONTROL-M EM 6.2.01\etc\domains\config_EMPROD.xml" "C:\Program Files\BMC Software\CONTROL-M EM 6.2.01\etc\domains\config.xml"

cd "C:\Program Files\BMC Software\CONTROL-M EM 6.2.01\bin"

start emgui.exe

exit


EMDEV.bat file :
del "C:\Program Files\BMC Software\CONTROL-M EM 6.2.01\etc\domains\config.xml" /q
copy "C:\Program Files\BMC Software\CONTROL-M EM 6.2.01\etc\domains\config_EMDEV.xml" "C:\Program Files\BMC Software\CONTROL-M EM 6.2.01\etc\domains\config.xml"

cd "C:\Program Files\BMC Software\CONTROL-M EM 6.2.01\bin"

start emgui.exe

exit


Create two shortcuts EMDEV and EMPROD.

Regards
matom

Post Reply