Solution: Create a temporary file /tmp/newtarget with one line:
<Target TYPE="host" NAME="foo42.bar.com"/>
Where foo42.bar.com is the host name. Then add the target with:
emctl config agent addtarget -f /tmp/newtarget
Stuff related to the Oracle database (and some more), but not so much about me. This is my old blog. See my next at https://enesi.no/.
<Target TYPE="host" NAME="foo42.bar.com"/>
emctl config agent addtarget -f /tmp/newtarget