Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #33486

Re: Python Script for Colorizing Traceroute Output (apologies for top-post)

References <6ea528f6-e4c2-4da9-a011-d81f13b83d28@googlegroups.com> <mailman.3774.1353175657.27098.python-list@python.org> <roy-EFAEEF.13385317112012@news.panix.com> <mailman.3778.1353177966.27098.python-list@python.org> <c5f40ace-71eb-4e02-a400-1cfb88543e66@googlegroups.com>
Date 2012-11-18 09:00 +1100
Subject Re: Python Script for Colorizing Traceroute Output (apologies for top-post)
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.3782.1353189613.27098.python-list@python.org> (permalink)

Show all headers | View raw


On Sun, Nov 18, 2012 at 6:59 AM, Jordan Bylsma <jordan.bylsma1@gmail.com> wrote:
> For this case the firewalls DO respond to TTL(in most cases) and will show in a traceroute. The objective here is to colorize particular devices to easily see what type of devices traffic would traverse across the network. I would be using a database of device hostnames that when they match in traceroute they would be printed a particular color. Something like router=green, layer 3 switch yellow, and firewall red. I'm just looking for a basic script to accomplish this. Nothing too fancy.

Sounds like the previously-mentioned Generic Colo(u)?ri(s|z)er (and
yes, its README says exactly that) could do that for you. You'd need
to craft a regexp to identify each hostname set, rather than using a
database, but it shouldn't be difficult to write a script to create
grc's config file.

I've never used the program, though, so I have no idea how good it is.
All I've done is download the tar.gz and glance over a few bits (the
licence, mainly - which is mostly-GPL).

By the way, you may wish to consider identifying your devices by IP
address rather than hostname. If your IPs are stable and readable, you
could save yourself the delays of reverse DNS lookups by simply
colorizing the IPs.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Python Script for Colorizing Traceroute Output Jordan Bylsma <jordan.bylsma1@gmail.com> - 2012-11-17 07:04 -0800
  Re: Python Script for Colorizing Traceroute Output garabik-news-2005-05@kassiopeia.juls.savba.sk - 2012-11-17 15:18 +0000
  Re: Python Script for Colorizing Traceroute Output wrw@mac.com - 2012-11-17 12:06 -0500
  Re: Python Script for Colorizing Traceroute Output (apologies for top-post) wrw@mac.com - 2012-11-17 12:07 -0500
    Re: Python Script for Colorizing Traceroute Output (apologies for top-post) Roy Smith <roy@panix.com> - 2012-11-17 13:38 -0500
      Re: Python Script for Colorizing Traceroute Output (apologies for top-post) Chris Angelico <rosuav@gmail.com> - 2012-11-18 05:45 +1100
        Re: Python Script for Colorizing Traceroute Output (apologies for top-post) Jordan Bylsma <jordan.bylsma1@gmail.com> - 2012-11-17 11:59 -0800
          Re: Python Script for Colorizing Traceroute Output (apologies for top-post) Chris Angelico <rosuav@gmail.com> - 2012-11-18 09:00 +1100
            Re: Python Script for Colorizing Traceroute Output (apologies for top-post) Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-11-18 01:18 +0000
              Re: Python Script for Colorizing Traceroute Output (apologies for top-post) Chris Angelico <rosuav@gmail.com> - 2012-11-18 12:27 +1100
        Re: Python Script for Colorizing Traceroute Output (apologies for top-post) Jordan Bylsma <jordan.bylsma1@gmail.com> - 2012-11-17 11:59 -0800

csiph-web