diff options
author | Tar Committer <tar@ocjtech.us> | 2005-07-07 01:14:43 +0000 |
---|---|---|
committer | Tar Committer <tar@ocjtech.us> | 2005-07-07 01:14:43 +0000 |
commit | 96dc4026054df77affedfe50380a661dcdba732a (patch) | |
tree | 0c8de7e68e7f316bf312cecce0b76e1f76b63020 /share/cisco-reload.exp | |
parent | 4d684aecaacc9a59e7e9c0661934aeba0b16efec (diff) | |
download | rancid-96dc4026054df77affedfe50380a661dcdba732a.tar.gz rancid-96dc4026054df77affedfe50380a661dcdba732a.tar.xz rancid-96dc4026054df77affedfe50380a661dcdba732a.zip |
Imported from rancid-2.3.2a2.tar.gz.rancid-2.3.2a2
Diffstat (limited to 'share/cisco-reload.exp')
-rw-r--r-- | share/cisco-reload.exp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/share/cisco-reload.exp b/share/cisco-reload.exp index 25880c1..22c08a9 100644 --- a/share/cisco-reload.exp +++ b/share/cisco-reload.exp @@ -1,5 +1,5 @@ ## -## $Id: cisco-reload.exp,v 1.9 2004/01/11 03:43:50 heas Exp $ +## $Id: cisco-reload.exp,v 1.10 2005/06/14 23:06:27 heas Exp $ ## ## Copyright (C) 1997-2004 by Terrapin Communications, Inc. ## All rights reserved. @@ -29,14 +29,14 @@ # e.g. usage: # % clogin -s cisco-reload.exp -Ereload_arg='at 01:00' router # router -# Reload scheduled for 01:00:00 UTC Sat Jun 23 2001 (in 7 hours and 16 minutes) +# Reload scheduled for 01:00:00 UTC Sat Jun 23 2001 (in 7 hours and 16 minutes) # % clogin -s cisco-reload.exp -Ereload_arg='at cancel' router # router -# % Ambiguous command: "reload at cancel" +# % Ambiguous command: "reload at cancel" # # % clogin -s cisco-reload.exp -Ereload_arg='cancel' router # router -# SHUTDOWN ABORTED +# SHUTDOWN ABORTED # # # keep in mind that it is important to NOT polute the global variable space. @@ -49,8 +49,8 @@ # prompt cmd-line prompt as determined by clogin # # note: the tcl/expect parser is extremely stoopid. comment lines are NOT -# completely ignored!! so, a '{' or '}' in a comment might produce -# unexpected results. +# completely ignored!! so, a '{' or '}' in a comment might produce +# unexpected results. ## # exp_internal 1 # log_user 1 @@ -68,7 +68,7 @@ if ([info exists Ereload_arg]) { send "\r" expect { - timeout { send_error "Error: did not receive prompt\n" + timeout { send_error "Error: did not receive prompt\n" exit } -re "^.*$prompt" { send "$reloadcmd\r" expect * {} } @@ -133,15 +133,15 @@ expect { ## Proceed with reload? [confirm] ## ultra#reload can ## ultra# -## -## +## +## ## *** ## *** --- SHUTDOWN ABORTED --- ## *** ## ultra# reload at 8:10 10 dec -## +## ## System configuration has been modified. Save? [yes/no]: no ## Reload scheduled for 08:10:00 PST Thu Dec 10 1998 (in 296 hours and 17 minutes) ## Proceed with reload? [confirm] ## ultra# -## +## |