App-RouterColorizer
view release on metacpan or search on metacpan
the L<App::RouterColorizer> module. This script takes no arguments.
The output will be colorized based on detection of key strings as they
might be sent from Arista, Juniper, and VyOS routers. It may also work
on other router outputs, but these have not been used for development.
/usr/bin/ssh router.example.com | router-colorizer.pl
=head1 COLOR CODING
Color coding is used, which assumes a black background on your terminal.
The colors used indicate different kinds of output. Note that most lines
of output are not colorized, only "important" (as defined by me!) lines
are colorized.
=over 4
=item C<green>
Green text is used to signify "good" values. For instance, in the output
from C<show interfaces> on an Arista router, seeing lines indicating the
Cyan text indicates potentially important text, seperated out from text
that is not-so-important. For instance, in C<show bgp neighbors>, cyan
is used to point out lines indicating which route map is being used.
=back
=head1 IP Address Colorization
IP addresses are also colorized. These are colorized one of several colors,
all with a colorized background, based on the IP/CIDR address. Thus, an
IP address like C<1.2.3.4> will always be the same color, which should make
it easier to spot potential transposition or copy mistakes (if it shows up
sometimes as white-on-blue, but other times as black-on-red, it's not the
same address!).
=head1 Number Grouping/Underlines
The progarm also underlines alternating groups of 3 digits as they appear
in digit strings. This is used to assist people who might have dyslexia
or other visual processing differences, to allow them to quickly determine
bin/router-colorizer.pl view on Meta::CPAN
the L<App::RouterColorizer> module. This script takes no arguments.
The output will be colorized based on detection of key strings as they
might be sent from Arista, Juniper, and VyOS routers. It may also work
on other router outputs, but these have not been used for development.
/usr/bin/ssh router.example.com | router-colorizer.pl
=head1 COLOR CODING
Color coding is used, which assumes a black background on your terminal.
The colors used indicate different kinds of output. Note that most lines
of output are not colorized, only "important" (as defined by me!) lines
are colorized.
=over 4
=item C<green>
Green text is used to signify "good" values. For instance, in the output
from C<show interfaces> on an Arista router, seeing lines indicating the
bin/router-colorizer.pl view on Meta::CPAN
Cyan text indicates potentially important text, seperated out from text
that is not-so-important. For instance, in C<show bgp neighbors>, cyan
is used to point out lines indicating which route map is being used.
=back
=head1 IP Address Colorization
IP addresses are also colorized. These are colorized one of several colors,
all with a colorized background, based on the IP/CIDR address. Thus, an
IP address like C<1.2.3.4> will always be the same color, which should make
it easier to spot potential transposition or copy mistakes (if it shows up
sometimes as white-on-blue, but other times as black-on-red, it's not the
same address!).
=head1 Number Grouping/Underlines
The progarm also underlines alternating groups of 3 digits as they appear
in digit strings. This is used to assist people who might have dyslexia
or other visual processing differences, to allow them to quickly determine
lib/App/RouterColorizer.pm view on Meta::CPAN
=head2 format_text
$colorized_text = $colorizer->format_text($text)
This method colorizes/formats the text, as provided in C<$text>.
/usr/bin/ssh router.example.com | router-colorizer.pl
=head1 COLOR CODING
Color coding is used, which assumes a black background on your terminal.
The colors used indicate different kinds of output. Note that most lines
of output are not colorized, only "important" (as defined by me!) lines
are colorized.
=over 4
=item C<green>
Green text is used to signify "good" values. For instance, in the output
from C<show interfaces> on an Arista router, seeing lines indicating the
lib/App/RouterColorizer.pm view on Meta::CPAN
Cyan text indicates potentially important text, seperated out from text
that is not-so-important. For instance, in C<show bgp neighbors>, cyan
is used to point out lines indicating which route map is being used.
=back
=head1 IP Address Colorization
IP addresses are also colorized. These are colorized one of several colors,
all with a colorized background, based on the IP/CIDR address. Thus, an
IP address like C<1.2.3.4> will always be the same color, which should make
it easier to spot potential transposition or copy mistakes (if it shows up
sometimes as white-on-blue, but other times as black-on-red, it's not the
same address!).
=head1 Number Grouping/Underlines
The progarm also underlines alternating groups of 3 digits as they appear
in digit strings. This is used to assist people who might have dyslexia
or other visual processing differences, to allow them to quickly determine
( run in 1.963 second using v1.01-cache-2.11-cpan-f56aa216473 )