Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.058 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; 'subject:Python': 0.05; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'cases)': 0.16; 'color.': 0.16; 'traverse': 0.16; 'network.': 0.17; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'device': 0.24; 'script': 0.24; 'cc:addr:python.org': 0.25; 'header:In- Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'firewall': 0.29; 'this.': 0.29; "i'm": 0.29; 'basic': 0.30; 'switch': 0.32; 'received:google.com': 0.34; 'received:209.85': 0.35; 'something': 0.35; 'too': 0.36; 'subject: (': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'nothing': 0.38; 'easily': 0.39; 'subject:-': 0.40; 'most': 0.61; 'traffic': 0.61; 'show': 0.63; 'here': 0.65; 'fancy.': 0.84; 'firewalls': 0.84; 'red.': 0.84 Newsgroups: comp.lang.python Date: Sat, 17 Nov 2012 11:59:17 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=67.176.36.216; posting-account=J9YxrgoAAADIml7V1lRhg-XA0ccE7dhR References: <6ea528f6-e4c2-4da9-a011-d81f13b83d28@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 67.176.36.216 MIME-Version: 1.0 Subject: Re: Python Script for Colorizing Traceroute Output (apologies for top-post) From: Jordan Bylsma To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 7 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1353182360 news.xs4all.nl 6978 [2001:888:2000:d::a6]:40429 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:33483 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 ea= sily 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 trace= route they would be printed a particular color. Something like router=3Dgre= en, layer 3 switch yellow, and firewall red. I'm just looking for a basic s= cript to accomplish this. Nothing too fancy.