How to successfully run emcli execute_hostcmd by EM console on WIndow Agent
559370Feb 1 2007 — edited Oct 8 2008I 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?Any advice will be appreciated.Thanks a lot!