Finding tcp sessions on a router
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2013 08:24 PM
Greetings. I have DNS resolution enabled on my routers so that I can connect to things via hostnames. But one thing that I would like is if there is a way to disable DNS resolution when the router outputs information. For example, when I run a "show tcp brief" it gives me a bunch of names (reverse-looked-up). I would prefer that it just gives me addresses. Same for traceroute. Is there an option or even a TCL script that will allow output of "show tcp brief" without the resolution?
I know I could temporarily disable resolution and enable it again, but that seems a bit cumbersome.
Thanks,
Matt
- Labels:
-
Network Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2013 08:31 PM
I often answer my own questions it seems, but I found for "show tcp brief" I could do:
# show tcp | i (Local|Foreign) host
or if I wanted to have some spacing in between the output, I could do:
# show tcp | i (Local|Foreign) host|^$
If anyone reads this, I hope it's useful!
