SCRIPT using expect
list Eric Jacobs
Thu, 31 Jul 2008 10:52:54 -0400
Message-Id: <g6sjk7$1ki$user-c17d2b339195@xymon.invalid>
I have been asked by those who must be obeyed to see if I can get Hobbit to make a configuration change on a switch if a certain connection test goes red. Been trying to do so via an "expect" script. Script runs fine when run manually but fails from within Hobbit. First attempt failed because script apparently didn't wait long enough after spawning a telnet session. So I slowed it down and it got session started but apparently didn't "send" password. Has anyone done anything like this?
Even if I get it to work, a few other questions arise.
1. Will it continue to run script if connection failure continues?
2. If I turn "RECOVER" on, can I run an alternate script upon recovery?
Eric Jacobs