Hello,
On the generic execution plug-in, I don't see the option to run a command....I was hoping to use this plug-in for running some server commands. All I see are for web services (please see attachment) ...do I have to revert to an earlier version of this plug-in then? Appreciate your help. Thanks!
Answer by Eugene T. ·
Hi George,
The "Host" parameter is a remote target host. "Key-file" should be a path to the public key on the collector if plugin is setup as a monitor/task, or a path on the dynaTrace server if plugin is setup as an action. So, in your case it is Windows based path to the public key. Please check the following link SSH Connection with Public Key Authentication from the dynaTrace 5.6 documentation if you need more details.
Let me know if you still have issues. I'll setup WebEx to go through the setup process.
Eugene.
Answer by George P. ·
Hi Eugene,
Thanks! However I still am having issues connecting to the server (Aix) via SSH. I keep getting the error -> 'The system cannot find the path specified' for finding the ssh public key file. Moreover the path is shown with backward slashes i.e. \dev\.ssh\authorized_keys even though I gave forward slashes in the monitor settings (please see below).
My understanding is that the Host parameter here is the target host on which we are logging on to (or is it the server on which the dynatrace collector runs?)
(I'm executing the monitor on the dynatrace collector which runs on Windows server). Below is the settings (with values obfuscated).
Method | SSH |
Authentication Method | PublicKey |
Host | Samplehost1 |
Port | 22 |
Password | ************** |
Passphrase | ************** |
Key-File | /dev/.ssh/authorized_keys |
I'd appreciate if you could please help.
Regards,
George
Answer by Eugene T. ·
Hi George,
Please uncheck the "Run Web Service?" check box to execute a command. The Generic Execution Plugin can execute OS commands or make Web Service calls. The "Run Web Service?" parameter is a switch between these two options.
Please let me know if you still have any problems.
Eugene.
JANUARY 15, 3:00 PM GMT / 10:00 AM ET