Where ORACLE_HOME is the unzipped Agent Oracle home on the destination host
The parameter b_chainedInstall is set to false and oracle.sysman.top.agent:s_installType is set to AGENT, so that it will be treated as an additional agent install. These parameters are required only while cloning the chained Management Agent.
Not sure if this helps others that have this same error. I ran across this same error. I was however running a different command. The problem is some scripts may create temporary sh output or temporary files. if you running a script remotely or if you're running it out of a directory that doesn't have permissions for the script to create the necessary files you will receive this error. My solultion was to do a change directory within my script prior to executing the command I wanted to run.