[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SCRIPT using expect
- To: hobbit (at) hswn.dk
- Subject: SCRIPT using expect
- From: "Eric Jacobs" <eric.jacobs (at) thomastechsolutions.com>
- Date: Thu, 31 Jul 2008 10:52:54 -0400
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