summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/Makefile.in6
-rw-r--r--util/lg/README12
-rwxr-xr-xutil/lg/lg.cgi.in2
-rw-r--r--util/lg/lgnotes.html12
4 files changed, 21 insertions, 11 deletions
diff --git a/util/Makefile.in b/util/Makefile.in
index 2432c26..511cb7f 100644
--- a/util/Makefile.in
+++ b/util/Makefile.in
@@ -17,11 +17,13 @@ install: all
cd lg; $(MAKE) -e install
clean:
- cd lg; $(MAKE) -e clean; \
+ @if [ -f util/Makefile ] ; then \
+ cd lg; $(MAKE) -e clean; \
+ fi
rm -f Makefile $(UTIL_PROGS)
distclean: clean
- cd lg; $(MAKE) -e distclean; \
+ cd lg; $(MAKE) -e distclean;
rm -f config.log config.status
distdir:
diff --git a/util/lg/README b/util/lg/README
index f574278..b4186b9 100644
--- a/util/lg/README
+++ b/util/lg/README
@@ -12,7 +12,7 @@ index.html often the default document the server will load, contains
lg.conf looking glass configuration file
lg.cgi work horse of the looking glass
lgform.cgi front-end form for the looking glass engine
-lgnotes.html manual for the looking glass
+lgnotes.html user info for the looking glass
the looking glass requires the CGI and LockFile-Simple perl modules.
these can be retrieved from CPAN, http://www.cpan.org/. CGI's home is
@@ -43,6 +43,16 @@ and install bits in /usr/local/rancid/util/lg (or <prefix>/util/lg).
% cat /usr/local/www/data/lg/.htaccess
Options FollowSymLinks ExecCGI
+ note on index.html: index.html is typically the default file loaded
+ when a url ends with a '/'. index.html can be used to redirect this
+ to lgform.cgi using a netscape meta refresh. Though this is supported
+ by many browsers, it is supposedly netscape specific and non-standard.
+ In apache, the same thing can be acheived by altering the default
+ directory index like this:
+
+ % cat /usr/local/www/data/lg/.htaccess
+ DirectoryIndex lgform.cgi
+
2) the LG needs to be able to find and read lg.conf. by default this
is installed as <PREFIX>/util/lg/lg.conf and the LG will look there.
however, LG_CONF environment variable can be used to move it elsewhere.
diff --git a/util/lg/lg.cgi.in b/util/lg/lg.cgi.in
index 0320b7d..0900060 100755
--- a/util/lg/lg.cgi.in
+++ b/util/lg/lg.cgi.in
@@ -378,7 +378,7 @@ if ($type eq "prefix" || $type eq "mbgp" || $type eq "route" ) {
# don't show the jewels
&print_results if ($arg == 98 || $arg == 99);
} elsif ($type eq "prefixlist" || $type eq "routemap") {
- if ($arg[0] !~ /^[A-Za-z][^\s\"]*$/) {
+ if ($arg[0] !~ /^[0-9A-Za-z][^\s\"]*$/) {
$results[0] = "That argument ($arg[0]) is not valid.\n";
&print_results;
}
diff --git a/util/lg/lgnotes.html b/util/lg/lgnotes.html
index 5fa2336..44fb4e0 100644
--- a/util/lg/lgnotes.html
+++ b/util/lg/lgnotes.html
@@ -20,16 +20,14 @@ Ed Kern's looking glass. See the "real thing" at
</p>
<p>
<UL>
-<li>Items in the queries column which do not have radio buttons
- are not yet implemented but are on the list of things to do.</li>
<li>Some items are not implemented for the junipers yet (so, as i get
- to it) or no equivalent exists.
+ to it) or no equivalent command exists.
<li>If there is something which you feel is missing, feel free to ask
- and/or send comments to the <a href=mailto:rancid@shrubbery.net>maintainer
- </a> to implement it. No guarantees.</li>
+ and/or send comments to <a href=mailto:rancid@shrubbery.net>
+ rancid@shrubbery.net</a>. No guarantees.</li>
<li>Only one query per router allowed at any given time. This is to avoid
- resource deprivation. The looking glass will attempt to serialize
- queries.</li>
+ resource deprivation on the looking glass host or the router. The
+ looking glass will attempt to serialize queries.</li>
<li>The looking glass will ping a router prior to querying it to avoid
trying to query routers which are down or otherwise inaccessible.</li>
<li>Login failures can be intermittent or permanent, either due to the