Logging onto EM in Different Environments
Logging onto EM in Different Environments
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?
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
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