[AusNOG] Looking Glass Software Packages

Karl Auer kauer at biplane.com.au
Mon Nov 10 18:28:51 EST 2014


On Mon, 2014-11-10 at 16:50 +1100, Daniel wrote:
> Thank you very very much to Karl whom has spent a lot of time helping me
> with this, and walking me through it,

For others wishing to use the package at:

   http://www.version6.net/lg/lg-1.9.tar.gz

The issue seems to be that some devices send back what appear to be
ASCII control sequences - RS, [, carriage-return.

The somewhat ham-fisted solution is to edit lg.cgi (which is a Perl
script), locate the function print_results, and, just before the second
last print statement, insert this line:

   s/\[m$//g ;

There are no actual carriage returns in the data displayed by the
browser, because the first version of this removed any that were there
and it made no visible difference. The RS characters are invisible but
if you want to zot them too, make the second line this:

   s/\x1e\[m$//g ;

Regards, K

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
http://twitter.com/kauer389

GPG fingerprint: EC67 61E2 C2F6 EB55 884B E129 072B 0AF0 72AA 9882
Old fingerprint: B862 FB15 FE96 4961 BC62 1A40 6239 1208 9865 5F9A




More information about the AusNOG mailing list