Home » RDBMS Server » Enterprise Manager » How can i successfully run emcli execute_hostcmd from EM console on Windows Agent?
How can i successfully run emcli execute_hostcmd from EM console on Windows Agent? [message #217852] Mon, 05 February 2007 20:57 Go to next message
seeseesea
Messages: 1
Registered: February 2007
Junior Member
How can i successfully run emcli execute_hostcmd from EM console on Windows Agent?

I met a strange error about EM Agent.
When i run the following command by EM console on a Windows Agent:
emcli execute_hostcmd -cmd="hostname" -targets="myhost:host" -credential_set_name="HostCredsPriv"

It comes with the following imformation

Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)

where options include:
-client to select the "client" VM
...

But on Linux Agent,everything is fine.I am confused.Is there anyone
know the reason will be appreciated.Thanks a lot!
Re: How can i successfully run emcli execute_hostcmd from EM console on Windows Agent? [message #482508 is a reply to message #217852] Fri, 12 November 2010 03:32 Go to previous message
ritzsri
Messages: 1
Registered: November 2010
Junior Member
before executing the EMCLI,you need to set the java path in environment.
the error which you are getting looks like Java path is not set.

Regards,
Ritz
Previous Topic: Failed to allocate port(s) (error at end of Installation.)
Next Topic: Agent unable to upload
Goto Forum:
  


Current Time: Thu Mar 28 08:17:36 CDT 2024