diff options
Diffstat (limited to 'util/lg')
-rw-r--r-- | util/lg/README | 12 | ||||
-rwxr-xr-x | util/lg/lg.cgi.in | 2 | ||||
-rw-r--r-- | util/lg/lgnotes.html | 12 |
3 files changed, 17 insertions, 9 deletions
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 |