Re: emcli
Date: Tue, 07 Aug 2012 10:11:41 +1000
Message-ID: <50205D3D.9090800_at_millerandbowman.com>
Well done, Robert:
The script:
echo 1
call D:\oracleemcc12_2agent_inst\bin\emctl start blackout Blackout_xxx_Maint
-nodeLevel xxx.glk.xxx.int:host
echo 2
call D:\oracleemcc12_2agent_inst\bin\emctl stop agent echo 3
The output:
C:\> oraclestop.bat
1
D:\oracle\admin\dba\scripts>call D:\oracleemcc12_2agent_inst\bin\emctl start
blackout Blackout_xxx_Maint -nodeLevel xxx.glk.xxx.int:host
Oracle Enterprise Manager 12c Cloud Control 12.1.0.1.0
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
Blackout Blackout_xxx_Maint added successfully
EMD reload completed successfully
2
Oracle Enterprise Manager 12c Cloud Control 12.1.0.1.0
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
The Oracleagent12cR1Agent service is stopping............
The Oracleagent12cR1Agent service was stopped successfully.
3
Thanks and regards
Gerry
Robert Hanuschke wrote: Hi Gerry, you could try prefixing your emctl
commandswith "call" or "start" (windows commands), so they get their own
execution environment. Other than that I wouldn't have an idea why it does
not go on and what could be done about it. A Windows admin might be of more
help here. Best regards, Robert http://robertvsoracle.blogspot.com[1] On
Mon,Aug 6, 2012 at 12:16 PM, Gerry Miller
<gerry_at_millerandbowman.com>[2]wrote: ** Hi Robert, Funny you should say that
as that is exactly what I did: echo 1 emctl start blackout
Blackout_xxx_Maint-nodeLevel xxx.glk.xxx.int:host echo 2 emctl stop agent
echo3 but didn't mention it in order to not complicate things. The first
echoworked but that was it. Thanks Gerry Robert Hanuschke wrote: Hi Gerry,
should work generally. Obviously the environment is set correctly, the
blackout creation works. Have you tried adding echo commands to see if the
execution gets that far? so: emctl start blackout Blackout_xxx_Maint
-nodeLevel xxx.glk.xxx.int:host echo one emctl stop agent echo two Best
regards, Robert http://robertvsoracle.blogspot.com[3] --
http://www.freelists.org/webpage/oracle-l[4]
- Links ---
1 http://robertvsoracle.blogspot.com
2 mailto:gerry_at_millerandbowman.com
3 http://robertvsoracle.blogspot.com
4 http://www.freelists.org/webpage/oracle-l
--
http://www.freelists.org/webpage/oracle-l