cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
579
Views
0
Helpful
1
Replies

Finding tcp sessions on a router

m.glosson
Level 1
Level 1

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

1 Reply 1

m.glosson
Level 1
Level 1

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!

Review Cisco Networking for a $25 gift card