From b73f299e731fbddae095c0b5eff04717b6dce1af Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 13 Feb 2008 20:34:57 +0000 Subject: Imported from rancid-2.3.2a8.tar.gz. --- share/cisco-reload.exp | 76 +++++++++++++++++++++++++++++++++----------------- 1 file changed, 51 insertions(+), 25 deletions(-) (limited to 'share/cisco-reload.exp') diff --git a/share/cisco-reload.exp b/share/cisco-reload.exp index c344c8f..45fbad0 100644 --- a/share/cisco-reload.exp +++ b/share/cisco-reload.exp @@ -1,29 +1,54 @@ ## -## $Id: cisco-reload.exp,v 1.11 2006/05/28 16:38:53 heas Exp $ +## $Id$ ## -## Copyright (C) 1997-2006 by Terrapin Communications, Inc. +## Copyright (c) 1997-2007 by Terrapin Communications, Inc. ## All rights reserved. ## -## This software may be freely copied, modified and redistributed -## without fee for non-commerical purposes provided that this license -## remains intact and unmodified with any RANCID distribution. -## -## There is no warranty or other guarantee of fitness of this software. -## It is provided solely "as is". The author(s) disclaim(s) all -## responsibility and liability with respect to this software's usage -## or its effect upon hardware, computer systems, other software, or -## anything else. -## -## Except where noted otherwise, rancid was written by and is maintained by -## Henry Kilmer, John Heasley, Andrew Partan, Pete Whiting, and Austin Schutz. -## +## This code is derived from software contributed to and maintained by +## Terrapin Communications, Inc. by Henry Kilmer, John Heasley, Andrew Partan, +## Pete Whiting, Austin Schutz, and Andrew Fort. +## +## Redistribution and use in source and binary forms, with or without +## modification, are permitted provided that the following conditions +## are met: +## 1. Redistributions of source code must retain the above copyright +## notice, this list of conditions and the following disclaimer. +## 2. Redistributions in binary form must reproduce the above copyright +## notice, this list of conditions and the following disclaimer in the +## documentation and/or other materials provided with the distribution. +## 3. All advertising materials mentioning features or use of this software +## must display the following acknowledgement: +## This product includes software developed by Terrapin Communications, +## Inc. and its contributors for RANCID. +## 4. Neither the name of Terrapin Communications, Inc. nor the names of its +## contributors may be used to endorse or promote products derived from +## this software without specific prior written permission. +## 5. It is requested that non-binding fixes and modifications be contributed +## back to Terrapin Communications, Inc. +## +## THIS SOFTWARE IS PROVIDED BY Terrapin Communications, INC. AND CONTRIBUTORS +## ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED +## TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +## PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COMPANY OR CONTRIBUTORS +## BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +## CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +## SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +## INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +## CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +## ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +## POSSIBILITY OF SUCH DAMAGE. +# +# The expect login scripts were based on Erik Sherk's gwtn, by permission. +# +# The original looking glass software was written by Ed Kern, provided by +# permission and modified beyond recognition. # -# this expect snipit is sourced by clogin (-s option) to issue a reload -# command on a cisco router. it DOES NOT save the config if it has been -# modified. this is an _example_ as it not guaranteed to work for all +# This expect snippet is sourced by clogin (-s option) to issue a reload +# command on a cisco router. It DOES NOT save the config if it has been +# modified. This is an _example_ as it not guaranteed to work for all # applications. PLEASE test for your environment. # -# it expects the following variables via the -E option: +# It expects the following variables via the -E option: # reload_arg ='command argument' such as 'at 05:00' or 'cancel # # e.g. usage: @@ -38,18 +63,19 @@ # router # SHUTDOWN ABORTED # +# exit is called at the end, so only one router can be handled per clogin. # -# keep in mind that it is important to NOT polute the global variable space. -# particularly, do not use variables used within clogin. this may result in -# indeterministic results. an easy way to avoid this is to use a variable +# Keep in mind that it is important to NOT polute the global variable space. +# Particularly, do not use variables used within clogin. This may result in +# indeterministic results. An easy way to avoid this is to use a variable # name prefix (like 'E' or '_'). # -# useful variables from clogin global space: +# Useful variables from clogin global space: # router router name as provided on the cmd-line # 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 +# note: the tcl/expect parser is extremely stoopid. Comment lines are NOT +# completely ignored!! So, a '{' or '}' in a comment might produce # unexpected results. ## # exp_internal 1 -- cgit