Skip to content

Commit

Permalink
Imported from rancid-2.3.2a8.tar.gz.
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown committed Feb 13, 2008
1 parent ac54243 commit b73f299
Show file tree
Hide file tree
Showing 86 changed files with 4,666 additions and 2,140 deletions.
59 changes: 59 additions & 0 deletions CHANGES
@@ -1,4 +1,63 @@
2.3.2
*login: Return/exit non-zero if there are failures for any of the
devices on the cmd-line.

nslogin: password prompt change in newer code - from Derek Andree

hlogin: reformat the prompt matching in run_commands() like cisco, which
fixes -x and -c usage in configure mode.

avorancid: Avocent (Cyclades) module - from Stephen Griffin

f10rancid: updated support for all devices running FTOS: E-Series,
C-Series and S-Series - from Greg Hankins

jrancid: don't look for passwords in
system login class XX permissions []

jrancid: additional filter for M320

rancid: ignore author failure for some data that are collected by
different commands and succeeded the first time - from David Luyer

*login: add -d to enable expect's debugging

configure: make svn fs-type configurable with --with-svn=fstype

xrancid: Correct the $prompt regex mangling for XOS - from Tore Anderson

f10rancid: E-series support updated - loaner & clues from Greg Hankins

rancid: Convert disk/flash free space to MB (from bytes) for IOX/IOS XR

accept NO & YES for NOCOMMSTR in rancid.conf

Add ACLSORT configuration knob - mostly from Michael Stefaniuc

cat5rancid: permit missing CRLF on exit - Michael Stefaniuc

cat5rancid: skip show inventory for those without - Michael Stefaniuc

agmrancid: show diag can fail shortly after boot

rancid: radius/tacacs key filtering on old IOS - from Michael Stefaniuc

rancid: Add AS5xxx support from Andre van der Merwe.

Changes so the RANCID-CONTENT-TYPE is the same as the
documented entry in router.db.5 and the same as the call
in rancid-fe. These RANCID-CONTENT-TYPEs changed:
brancid from bay to baynet
cat5rancid from cisco-cat to cat5
cssrancid from cisco-css to css
erancid from adc-ezt3 to ezt3
fnrancid from Fortigate to fortigate
hrancid from hp-procurve to hp
jerancid from Juniper_ERX to erx
srancid from dell to smc

f5rancid: F5 BigIPs

srancid: SMC/Dell switch support - loaner from Randy Bush

*login: Set variables for do_login when both -e and -p/-v are specified
Expand Down
55 changes: 37 additions & 18 deletions COPYING
@@ -1,22 +1,41 @@
##
## 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.
## 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.
##
## Except where noted otherwise, rancid was written by and is maintained by
## Henry Kilmer, John Heasley, Andrew Partan, Pete Whiting, and Austin Schutz.
## 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.
##
#
# The login expect scripts were based on Erik Sherk's gwtn, by permission.
#
# bin/lg - the original looking glass software was written by Ed Kern,
# provided by permission and modified beyond recognition.
## 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.
20 changes: 14 additions & 6 deletions FAQ
Expand Up @@ -129,17 +129,25 @@ A. CVS does not provide a way (AFAIK) to rename files or to rename or delete
like this (disclaimer: BE VERY CAREFUL mucking around with the repository):
% su - rancid_user
% cd <LOCALSTATEDIR>
% echo "new_device_name:device_type:up" >> GROUP/router.db
% cp -p CVS/GROUP/configs/old_device_name,v \
CVS/GROUP/configs/new_device_name,v
% echo "new_device_name:device_type:up" >> <GROUP>/router.db
% cp -p CVS/<GROUP>/configs/old_device_name,v \
CVS/<GROUP>/configs/new_device_name,v
% cd <GROUP>/configs
% cvs update

where GROUP is the name of the rancid group that the device is a member of.
Rancid will pick-up the new file with a CVS update the next time it runs.
Once the renaming is complete, remove the old name from the router.db file
and leave the CVS clean-up of the old filename to rancid.

If one wanted to move a device to a different group and maintain the
history, the same procedure would work. Substituting the new group name
appropriately.
history, the same procedure would work, substituting the new group name
appropriately, of course.

SVN provides a rename function; but we suggest that you use it's
copy function instead, and leave the clean-up of the old name
to rancid. So, you would use the copy function (proper
substitutions, of course) in place of the cp in the CVS example,
then commit the new file.


Q. I am removing a group and would like to remove all traces of it from the
Expand Down
2 changes: 1 addition & 1 deletion Makefile.am
@@ -1,7 +1,7 @@
## Process this file with automake to produce Makefile.in
## A Makefile.in is supplied, in case you do not have automake.

## $Id: Makefile.am,v 1.21 2005/09/29 01:14:59 heas Exp $
## $Id$
##
## Copyright (C) 1997-2004 by Terrapin Communications, Inc.
## All rights reserved.
Expand Down
1 change: 1 addition & 0 deletions Makefile.in
Expand Up @@ -146,6 +146,7 @@ SORT = @SORT@
SSH = @SSH@
STRIP = @STRIP@
SVN = @SVN@
SVN_FSTYPE = @SVN_FSTYPE@
TAR = @TAR@
TELNET = @TELNET@
TOUCH = @TOUCH@
Expand Down
15 changes: 14 additions & 1 deletion README
Expand Up @@ -19,10 +19,12 @@ configure as substitutions are completed:

README This file.
README.lg Information about the Looking Glass.
BUGS Bug list.
CHANGES List of changes to Rancid.
COPYING RANCID license.
FAQ Frequently Asked Questions
Todo Partial list of what needs to be done.
UPGRADING Notes on upgrading rancid to a new version.
cloginrc.sample TCL commands to set passwords, usernames etc. used by clogin
and jlogin. See cloginrc(5)
etc/
Expand All @@ -43,12 +45,15 @@ bin/
rancid-fe.in Chooses between rancid/[abefhjrx]rancid/cat5rancid.
rancid.in Runs commands on cisco routers and processes the output.

agmrancid.in Version of rancid.in for Cisco Anomaly Guard Module (AGM)
arancid.in Version of rancid.in for Alteon switches.
brancid.in Version of rancid.in for baynet/nortel routers.
cat5rancid.in Version of rancid.in for Cisco Catalyst switches.
cssrancid.in Version of rancid.in for Cisco CSS switches.
erancid.in Version of rancid.in for ADC EZ-T3 muxes.
f10rancid.in Version of rancid.in for Force10 routers.
f5rancid.in Version of rancid.in for F5 BigIPs.
fnrancid.in Version of rancid.in for Fortinet Firewalls.
francid.in Version of rancid.in for Foundry switches.
hrancid.in Version of rancid.in for HP Procurve switches.
htrancid.in Version of rancid.in for Hitatchi routers.
Expand All @@ -60,6 +65,7 @@ bin/
prancid.in Version of rancid.in for Procket routers.
rivancid.in Version of rancid.in for Riverstone routers.
rrancid.in Version of rancid.in for Redback routers.
srancid.in Version of rancid.in for SMC switches.
tntrancid.in Version of rancid.in for TNT access servers.
xrancid.in Version of rancid.in for Extreme switches.
zrancid.in Version of rancid.in for Zebra routers.
Expand All @@ -78,15 +84,22 @@ bin/
tntlogin.in Version of clogin.in for TNT access servers.
man/ man pages
share/ Readmes, samples, utilities, contribs, etc
include/ Include files and rancid version.h

Also see rancid_intro(1), rancid(1), and clogin(1).

The following (non-exhaustive list) are included as part of the installation
and configuration tools:

Makefile.in processed by configure to produce Makefiles
Makefile.am processed by automake to produce Makefile.in
Makefile.in processed by configure to produce Makefile
acinclude.m4 sets some GNU autoconf options
aclocal.m4 Output of GNU autoconf script
configure GNU autoconf script
configure.in Input file for autoconf to procide configure
depcomp part of GNU autoconf
install-sh GNU autoconf shell script to simulate BSD style install
missing part of GNU autoconf
mkinstalldirs GNU autoconf shell script to make installation directories

rancid will also need to have the following packages:
Expand Down
66 changes: 45 additions & 21 deletions bin/Makefile.am
@@ -1,37 +1,60 @@
## Process this file with automake to produce Makefile.in
## A Makefile.in is supplied, in case you do not have automake.

## $Id: Makefile.am,v 1.36 2007/01/13 22:01: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.
## 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.
##
## 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.
## 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.

#AUTOMAKE_OPTIONS=foreign no-dependencies
AUTOMAKE_OPTIONS=foreign

bin_PROGRAMS = hpuifilter
bin_SCRIPTS = cat5rancid control_rancid \
agmrancid alogin arancid blogin brancid clogin cssrancid \
elogin erancid f10rancid flogin francid fnrancid \
hlogin hrancid htlogin htrancid \
jerancid jlogin jrancid \
mrancid nlogin nrancid nslogin nsrancid par prancid \
rancid rancid-fe rivlogin rivrancid rrancid srancid \
tntlogin tntrancid xrancid zrancid
bin_SCRIPTS = agmrancid alogin arancid blogin brancid cat5rancid clogin \
control_rancid cssrancid elogin erancid f10rancid \
flogin fnrancid francid hlogin hrancid htlogin htrancid \
jerancid jlogin jrancid mrancid nlogin nrancid nslogin \
nsrancid par prancid rancid-fe rancid rivlogin rivrancid \
rrancid srancid tntlogin tntrancid xrancid zrancid

bin_SCRIPTS += lg.cgi lgform.cgi rancid-cvs rancid-run
EXTRA_DIST= lg.cgi.in lgform.cgi.in rancid-cvs.in rancid-run.in
Expand Down Expand Up @@ -75,6 +98,7 @@ auto_edit = sed \
-e 's,@ADMINMAILPLUS\@,$(ADMINMAILPLUS),g' \
-e 's,@MAILPLUS\@,$(MAILPLUS),g' \
-e 's,@PACKAGE\@,$(PACKAGE),g' \
-e 's,@SVN_FSTYPE\@,$(SVN_FSTYPE),g' \
-e 's,@VERSION\@,$(VERSION),g'

lg.cgi: Makefile $(srcdir)/lg.cgi.in
Expand Down

0 comments on commit b73f299

Please sign in to comment.