Hi Alex
one further info over here: got the problem solved a bit more now again.
The problem was, that the Message
he server's host key is not cached in the registry. You
have no guarantee that the server is the computer you
think it is.
The server's rsa2 key fingerprint is:
from plink got returned and I couldn't see that, because of the hostmon.ini-settings. I reverted it (deleted the line "SScript_UseWindowsPipe=0" out of hostmon.ini) and now everything seems to work fine (got an output which made sense and enabled me to solve the "Timeout"-Issue). I could got a rid of the HostKey-Message by using
echo yes | plink.exe [params] username@host command
for the first time I called the script (or just after I realized that there's a problem with that. After I executed this command, I reverted the script to what it was before and it worked, except:
If I Disable the Test like this:
Code: Select all
SetTestParam "smtpsrv.mailsys - Isolation" commentline1 "start"
SetTestParam "smtpsrv.mailsys - Isolation" commentline2 "%commentline2%"
EnableTestByID 633
RefreshTestByID 633
DisableTestByID 633
it looks like, the "Refresh" will not be executed (at least, the script doesnt work and I don't get a reply). If I do the same without the "Disable"-Test statement, it works.
Maybe, is there a way to delay the "DisableTest" statement by a couple of seconds or do something similar?
So, at all, the only way which seems to work with plink is to use the Version 0.58 other than anything newer. Then, you don't have to set "SScript_UseWindowsPipe=0" (but you might could, I didn't try that any further now). It doesn't work with any newer plink-Version because of the bug in plink-application (which is known since 2007 and not fixed, yet). Enable, Refresh and Disable itself doesn't seem to work with an external script test, we need something to delay the "Disable"-HM Command. I could build a workaround, but maybe there's a more nice way to do it than a "hack"...