From 989312339ea2e16579803a48700628c5469e327a Mon Sep 17 00:00:00 2001 From: Tar Committer Date: Mon, 12 Jan 2004 03:17:26 +0000 Subject: Imported from rancid-2.3.rc1.tar.gz. --- etc/Makefile.am | 77 ++++++++++ etc/Makefile.in | 375 ++++++++++++++++++++++++++++++++++++++++++++++ etc/lg.conf.sample.in | 188 +++++++++++++++++++++++ etc/rancid.conf.sample.in | 59 ++++++++ 4 files changed, 699 insertions(+) create mode 100644 etc/Makefile.am create mode 100644 etc/Makefile.in create mode 100644 etc/lg.conf.sample.in create mode 100644 etc/rancid.conf.sample.in (limited to 'etc') diff --git a/etc/Makefile.am b/etc/Makefile.am new file mode 100644 index 0000000..e44e781 --- /dev/null +++ b/etc/Makefile.am @@ -0,0 +1,77 @@ +## 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.10 2004/01/11 03:43:50 heas Exp $ +## +## Copyright (C) 1997-2004 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. +## + +#AUTOMAKE_OPTIONS=foreign no-dependencies +AUTOMAKE_OPTIONS=foreign + +pkgdata_DATA= lg.conf.sample rancid.conf.sample +EXTRA_DIST= $(pkgdata_DATA:%=%.in) + +CLEANFILES= $(pkgdata_DATA) + +install-data-local: all + @if test -f $(sysconfdir)/rancid.conf ; then \ + echo ""; \ + echo "WARNING: *** $(sysconfdir)/rancid.conf exists. See "; \ + echo " *** $(pkgdatadir)/rancid.conf.sample for new"; \ + echo " *** examples."; \ + echo ""; \ + else \ + $(INSTALL_DATA) rancid.conf.sample $(sysconfdir)/rancid.conf; \ + fi; \ + if test -f $(sysconfdir)/lg.conf ; then \ + echo ""; \ + echo "WARNING: *** $(sysconfdir)/lg.conf exists. See "; \ + echo " *** $(pkgdatadir)/lg.conf.sample for new"; \ + echo " *** examples."; \ + echo ""; \ + else \ + $(INSTALL_DATA) lg.conf.sample $(sysconfdir)/lg.conf; \ + fi; + +#clean: +# rm -f Makefile rancid.conf $(BIN_DATAS) $(BIN_PROGS) + +# auto_edit does the autoconf variable substitution. This allows the +# substitution to have the full expansion of the variables, e.g.: $sysconfdir +# will be /prefix/etc instead of ${prefix}/etc. +# +# This is a bit of a PITA, but is the method recommended by the autoconf +# documentation. +auto_edit = sed \ + -e 's,@bindir\@,$(bindir),g' \ + -e 's,@prefix\@,$(prefix),g' \ + -e 's,@localstatedir\@,$(localstatedir),g' \ + -e 's,@sysconfdir\@,$(sysconfdir),g' \ + -e 's,@EXPECT_PATH\@,$(EXPECT_PATH),g' \ + -e 's,@PERLV_PATH\@,$(PERLV_PATH),g' \ + -e 's,@ENV_PATH\@,$(ENV_PATH),g' + +lg.conf.sample: Makefile $(srcdir)/lg.conf.sample.in + rm -f lg.conf.sample lg.conf.sample.tmp; \ + $(auto_edit) $(srcdir)/lg.conf.sample.in >lg.conf.sample.tmp; \ + mv lg.conf.sample.tmp lg.conf.sample + +rancid.conf.sample: Makefile $(srcdir)/rancid.conf.sample.in + rm -f rancid.conf.sample rancid.conf.sample.tmp; \ + $(auto_edit) $(srcdir)/rancid.conf.sample.in >rancid.conf.sample.tmp; \ + mv rancid.conf.sample.tmp rancid.conf.sample diff --git a/etc/Makefile.in b/etc/Makefile.in new file mode 100644 index 0000000..7a52e35 --- /dev/null +++ b/etc/Makefile.in @@ -0,0 +1,375 @@ +# Makefile.in generated by automake 1.8 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 +# Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = .. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +subdir = etc +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/include/config.h +CONFIG_CLEAN_FILES = +SOURCES = +DIST_SOURCES = +am__installdirs = $(DESTDIR)$(pkgdatadir) +pkgdataDATA_INSTALL = $(INSTALL_DATA) +DATA = $(pkgdata_DATA) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +ADMINMAILPLUS = @ADMINMAILPLUS@ +AMDEP_FALSE = @AMDEP_FALSE@ +AMDEP_TRUE = @AMDEP_TRUE@ +AMTAR = @AMTAR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +COMM = @COMM@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CVS = @CVS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DIFF = @DIFF@ +DIFF_CMD = @DIFF_CMD@ +DIRNAME = @DIRNAME@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +ENV_PATH = @ENV_PATH@ +EXEEXT = @EXEEXT@ +EXPECT_PATH = @EXPECT_PATH@ +FIND = @FIND@ +GREP = @GREP@ +ID = @ID@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LG_PING_CMD = @LG_PING_CMD@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LTLIBOBJS = @LTLIBOBJS@ +MAILPLUS = @MAILPLUS@ +MAKE = @MAKE@ +MAKEINFO = @MAKEINFO@ +MKDIR = @MKDIR@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PERLV = @PERLV@ +PERLV_PATH = @PERLV_PATH@ +PING_PATH = @PING_PATH@ +RSH = @RSH@ +SENDMAIL = @SENDMAIL@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SORT = @SORT@ +SSH = @SSH@ +STRIP = @STRIP@ +TAR = @TAR@ +TELNET = @TELNET@ +TOUCH = @TOUCH@ +U = @U@ +VERSION = @VERSION@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_STRIP = @ac_ct_STRIP@ +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +bindir = @bindir@ +build_alias = @build_alias@ +datadir = @datadir@ +exec_prefix = @exec_prefix@ +host_alias = @host_alias@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ + +#AUTOMAKE_OPTIONS=foreign no-dependencies +AUTOMAKE_OPTIONS = foreign +pkgdata_DATA = lg.conf.sample rancid.conf.sample +EXTRA_DIST = $(pkgdata_DATA:%=%.in) +CLEANFILES = $(pkgdata_DATA) + +#clean: +# rm -f Makefile rancid.conf $(BIN_DATAS) $(BIN_PROGS) + +# auto_edit does the autoconf variable substitution. This allows the +# substitution to have the full expansion of the variables, e.g.: $sysconfdir +# will be /prefix/etc instead of ${prefix}/etc. +# +# This is a bit of a PITA, but is the method recommended by the autoconf +# documentation. +auto_edit = sed \ + -e 's,@bindir\@,$(bindir),g' \ + -e 's,@prefix\@,$(prefix),g' \ + -e 's,@localstatedir\@,$(localstatedir),g' \ + -e 's,@sysconfdir\@,$(sysconfdir),g' \ + -e 's,@EXPECT_PATH\@,$(EXPECT_PATH),g' \ + -e 's,@PERLV_PATH\@,$(PERLV_PATH),g' \ + -e 's,@ENV_PATH\@,$(ENV_PATH),g' + +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign etc/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --foreign etc/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +uninstall-info-am: +install-pkgdataDATA: $(pkgdata_DATA) + @$(NORMAL_INSTALL) + $(mkdir_p) $(DESTDIR)$(pkgdatadir) + @list='$(pkgdata_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f="`echo $$p | sed -e 's|^.*/||'`"; \ + echo " $(pkgdataDATA_INSTALL) $$d$$p $(DESTDIR)$(pkgdatadir)/$$f"; \ + $(pkgdataDATA_INSTALL) $$d$$p $(DESTDIR)$(pkgdatadir)/$$f; \ + done + +uninstall-pkgdataDATA: + @$(NORMAL_UNINSTALL) + @list='$(pkgdata_DATA)'; for p in $$list; do \ + f="`echo $$p | sed -e 's|^.*/||'`"; \ + echo " rm -f $(DESTDIR)$(pkgdatadir)/$$f"; \ + rm -f $(DESTDIR)$(pkgdatadir)/$$f; \ + done +tags: TAGS +TAGS: + +ctags: CTAGS +CTAGS: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list='$(DISTFILES)'; for file in $$list; do \ + case $$file in \ + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ + esac; \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(DATA) +installdirs: + $(mkdir_p) $(DESTDIR)$(pkgdatadir) +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + +distclean-generic: + -rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-data-local install-pkgdataDATA + +install-exec-am: + +install-info: install-info-am + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-info-am uninstall-pkgdataDATA + +.PHONY: all all-am check check-am clean clean-generic distclean \ + distclean-generic distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am \ + install-data-local install-exec install-exec-am install-info \ + install-info-am install-man install-pkgdataDATA install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ + pdf-am ps ps-am uninstall uninstall-am uninstall-info-am \ + uninstall-pkgdataDATA + + +install-data-local: all + @if test -f $(sysconfdir)/rancid.conf ; then \ + echo ""; \ + echo "WARNING: *** $(sysconfdir)/rancid.conf exists. See "; \ + echo " *** $(pkgdatadir)/rancid.conf.sample for new"; \ + echo " *** examples."; \ + echo ""; \ + else \ + $(INSTALL_DATA) rancid.conf.sample $(sysconfdir)/rancid.conf; \ + fi; \ + if test -f $(sysconfdir)/lg.conf ; then \ + echo ""; \ + echo "WARNING: *** $(sysconfdir)/lg.conf exists. See "; \ + echo " *** $(pkgdatadir)/lg.conf.sample for new"; \ + echo " *** examples."; \ + echo ""; \ + else \ + $(INSTALL_DATA) lg.conf.sample $(sysconfdir)/lg.conf; \ + fi; + +lg.conf.sample: Makefile $(srcdir)/lg.conf.sample.in + rm -f lg.conf.sample lg.conf.sample.tmp; \ + $(auto_edit) $(srcdir)/lg.conf.sample.in >lg.conf.sample.tmp; \ + mv lg.conf.sample.tmp lg.conf.sample + +rancid.conf.sample: Makefile $(srcdir)/rancid.conf.sample.in + rm -f rancid.conf.sample rancid.conf.sample.tmp; \ + $(auto_edit) $(srcdir)/rancid.conf.sample.in >rancid.conf.sample.tmp; \ + mv rancid.conf.sample.tmp rancid.conf.sample +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/etc/lg.conf.sample.in b/etc/lg.conf.sample.in new file mode 100644 index 0000000..54e538a --- /dev/null +++ b/etc/lg.conf.sample.in @@ -0,0 +1,188 @@ +# configuration file for the looking glass +# +# note: these are perl statements! Mind the syntax. "perl -c lg.conf" +# should succeed. +# +# adjust the path to find [cfj]login, telnet, ssh, rsh, etc. +# +$ENV{PATH}="@prefix@/bin:@ENV_PATH@"; +# +# +# LG_CACHE_DIR is the location of the cache directory. the LG uses this +# to hold lock files, the default log file (lg.log), and o/p from +# commands that can be very verbose. it defaults to "tmp", +# i.e.: relative to the directory where lg.cgi runs in your +# server's (httpd) DocumentRoot (e.g.: +# /usr/local/www/data/lg/tmp). +# +#$LG_CACHE_DIR="./tmp"; +# +# +# LG_CACHE_TIME is the number of seconds the LG should cache o/p from certain +# commands; those that tend to produce a lot of o/p, such as +# 'show ip bgp dampened-paths'. it defaults to 600 seconds +# (10 minutes). +# +#$LG_CACHE_TIME=600; +# +# +# LG_CLOGINRC is the .cloginrc that the LG should use. it defaults to +# /.cloginrc. note that the .cloginrc must be readable +# by the user or group (UID / GID) that will be running the CGI +# and the clogin (and friends) will not allow a world readable +# .cloginrc. this is normally the user the server (httpd) runs +# under. +# +#$LG_CLOGINRC="$ENV(HOME)/.cloginrc"; +# +# +# LG_IMAGE is the filename of an image you wish to appear at the top +# of the LG pages. it can also be other html goo, like +# the first example. this is just handed to print, so \n and +# the like will work and mind the character escapes (backslashes). +# +#$LG_IMAGE="\n FOO"; +#$LG_IMAGE="\n"; +# +# +# LG_INFO is info in html format to output at the bottom of main form. +# it might be local contact information, disclaimer, etc. this +# is just handed to print, so \n and the like will work and mind +# the character escapes (backslashes). +# +#$LG_INFO="For support, contact webmaster"; +# +# +# LG_LOG is either a FQPN (fully qualified path name) or the syslog +# facility to use for logging. if not defined, the LG +# will log to LG_CACHE_DIR/lg.log. possible syslog facility +# values are from the facility codes in /usr/include/syslog.h +# minus the 'LOG_' and lower case. +# +#$LG_LOG="$LG_CACHE_DIR/lg.log"; +#$LG_LOG="/tmp/lg.log"; +#$LG_LOG="local0"; +# +# +# LG_ROUTERDB is the router.db in rancid's router.db format, listing +# the routers and their platform that should be available to +# the looking glass. if defined, the LG will use this variable +# to find the router.db. if not defined, it will look for it +# at //router.db. if it does not exist, it +# will build the list from /*/router.db (i.e.: the +# router.db's from all your groups). note that if you choose +# this last option; the group directories and router.db files' +# modes may have to be changed, depending upon the UID/GID of +# the user your server (httpd) runs under, since rancid's default +# mask is 007 (see etc/rancid.conf). routers not marked 'up' are +# skipped. +# +#$LG_ROUTERDB="@sysconfdir@/router.db"; +# +# +# LG_STYLE define a style sheet to be used for formatting HTML. +# +#$LG_STYLE="http://www.your.site/style/style.css"; +# +# +# Options: +# +# LG_AS_REG *** not implemented. +# +#@LG_AS_REG=(); +# +# +# LG_BGP_RT allows a few bgp commands which can produce long output (heavy +# router load), such as sh ip bgp neighbor advertised-routes +# would for a transit customer or sh ip b neigh +# received-routes would for a transit provider. +# +#$LG_BGP_RT=1; +# +# +# LG_SINGLE serializes and limits queries per-router to one at a time via +# per-router lock files. +# +#$LG_SINGLE=0; +# +# LG_STRIP strips login o/p from the looking glass results. Expect +# occassionally screws up disabling echo when passwords are +# entered (NOTE: SECURITY CONCERN). However, this o/p can be +# very useful for debugging clogin/flogin/jlogin problems. +# +$LG_STRIP=1; +# +# +# Commands/Queries: +# Un-comment/Comment the commands that are desired/not desired. +# The Commands are separated into a few categories. The value +# of each variable is the string which will appear in the +# (lgform.cgi) menu. Mind the ,'s within hash assignments. +# +# The double-commented (##) queries are not implemented or have +# not been tested. +# +$queries = {}; +# +# Interface queries +$queries->{"interface"} = { + framerelay => "show frame-relay PVC [DLCI]", + interface => "show interface [interface]" +}; +# +# Routing queries +$queries->{"routing"} = { + damp => "show ip bgp dampened-paths", + neighbor => "show ip bgp neighbor ", + prefix => "show ip bgp [netmask]", + prefixlist => "show ip prefix-list ", + regex => "show ip bgp regex ", + route => "show ip route [netmask]", + routemap => "show route-map ", + summary => "show ip bgp summary" +}; +# +# Debug queries +$queries->{"debug"} = { + log => "Show Logs [ | ]", + ping => "ping ", + trace => "traceroute " +}; +# +# Multicast queries +$queries->{"multicast"} = { + mbgp => "Show ip mbgp [netmask]", + mbgpsum => "Show ip mbgp summary", + # show ip pim interface/show pim interface + ## pim_interface => "Show PIM Interfaces", + # ???/show pim join (extensive) + ## pim_join => "Show PIM Join [group_address]", + # show ip mroute/show multicast route [active] + ## mroute => "Show Multicast Forwarding Table [active]", + # show ip msdp summary/show msdp + ## msdp => "Show MSDP Peering Status", + # show ip msdp sa cache/show msdp source-active + ## msdpsa => "Show MSDP Source Active Table", + # show ip sdr|show multicast sessions + ## msess => "Show Multicast SDR sessions [detail]", + # show ip pim neighbor/show pim neighbors + ## pim_neighbor => "Show PIM Neighbors [detail]", + # show ip pim rp mapping/show pim rps + ## pim_rp => "Show PIM Rendez-vous Points [detail]", + # show ip rpf [address] /show multicast rpf [address] + ## rpf => "Test Multicast RPF
" +}; +# +# IPv6 commands +$queries->{"ipv6"} = { + # show bgp ipv6 / ??? + ## v6_bgp => "Show IPv6 BGP table"; + # show ipv6 interface / show interface + ## v6_interface => "Show IPv6 interface parameters [interface]"; + # show bgp ipv6 summary / show bgp summary + ## v6_summary => "Show IPv6 BGP Summary"; + # show ipv6 route / show route table inet6.0 + ## v6_route => "Show IPv6 Routes "; +}; +# +# %EOF% diff --git a/etc/rancid.conf.sample.in b/etc/rancid.conf.sample.in new file mode 100644 index 0000000..c550c74 --- /dev/null +++ b/etc/rancid.conf.sample.in @@ -0,0 +1,59 @@ +# +# This file sets up the environment used for rancid. see rancid.conf(5) +# +# This will be site specific +# +TERM=network;export TERM +# +# Under BASEDIR (i.e.: --localstatedir), there will be a "logs" directory for +# the logs from rancid and a directory for each group of routers defined in +# LIST_OF_GROUPS (below). In addition to these, there will be a "CVS" +# directory which is the cvs repository. +# +# Use a full path (no sym-links) for BASEDIR. Some versions of CVS seem to +# dislike sym-links. +# +TMPDIR=/tmp; export TMPDIR +# Be careful changing this, it affects CVSROOT below. +BASEDIR=@localstatedir@; export BASEDIR +PATH=@bindir@:@ENV_PATH@; export PATH +# Location of the CVS repository. Be careful changing this. +CVSROOT=$BASEDIR/CVS; export CVSROOT +# Location of log files produced by rancid-run(1). +LOGDIR=$BASEDIR/logs; export LOGDIR +# +# if NOPIPE is set, temp files will be used instead of a cmd pipe during +# collection from the router(s). +#NOPIPE=YES; export NOPIPE +# +# FILTER_PWDS determines which passwords are filtered from configs by the +# value set (NO | YES | ALL). see rancid.conf(5). +#FILTER_PWDS=YES; export FILTER_PWDS +# +# if NOCOMMSTR is set, snmp community strings will be stripped from the configs +#NOCOMMSTR=YES; export NOCOMMSTR +# +# How many hours should pass before complaining about routers that +# can not be reached. The value should be greater than the number +# of hours between your rancid-run cron job. +OLDTIME=4; export OLDTIME +# +# How many hours should pass before complaining that a group's collection +# (the age of it's lock file) is hung. +#LOCKTIME=4; export LOCKTIME +# +# The number of devices to collect simultaneously. +#PAR_COUNT=5; export PAR_COUNT +# +# list of rancid groups +#LIST_OF_GROUPS="sl joebobisp" +# more groups... +#LIST_OF_GROUPS="$LIST_OF_GROUPS noc billybobisp" +# +# For each group, define a list of people to receive the diffs. +# in sendmail's /etc/aliases. +# rancid-group: joe,moe@foo +# rancid-group-admin: hostmaster +# be sure to read ../README regarding aliases. +# +umask 027 -- cgit