07-30-2022 12:34 AM
on newer models of cisco catalyst switches, such as c9200, and probably even 3650/3560 series, you are supposed to see the the active listening/open sockets with the command:
"show ip sockets"
but the active ssh = tcp 22 session is missing from this table of active open ports.
anybody have a clue? Also, is there a better command to run to get this information?
07-30-2022 01:16 AM
- You may also try "show ip tcp brief" or "show tcp brief"
M.
07-30-2022 04:12 AM - edited 07-30-2022 11:45 AM
1-
A similar command is show ip sockets on older IOS versions, but it doesn't seem to list TCP sockets. However, it will list other non-UDP protocols, like EIGRP.
2-TRY this command
show control-plane host open-ports
3-
show tcp brief
only show you the active connection (TCP) not show the port that router listen to.
07-30-2022 09:59 AM
Hi,
try show tcp brief all command
07-30-2022 12:38 PM - edited 08-01-2022 06:05 PM
thx to all who replied. I performed some various tests on certain models to help the community and show some desperation - LOL! This shouldn't be so difficult to do. these switches OS have been around for 20+ years. Common cisco!
So Im still not having much luck:
3560 Switch:
show tcp brief all - shows just active ssh-22 connection & occasionally tacacs (tcp-49)
show tcp brief - shows just active ssh-22 connection & occasionally tacacs (tcp-49)
show ip sockets - gets me mostly there will app udp/tcp ports, but missing tcp-22
show control-plane <anything> - command not available
C9200 Switch:
show tcp brief all - shows just active ssh-22 connection & occasionally tacacs (tcp-49)
show tcp brief - shows just active ssh-22 connection & occasionally tacacs (tcp-49)
show ip sockets - gets me mostly there will app udp/tcp ports, but missing tcp-22
show control-plane <anything> - command not available
C9300 Switch:
show tcp brief all - shows just active ssh-22 connection & occasionally tacacs (tcp-49)
show tcp brief - shows just active ssh-22 connection & occasionally tacacs (tcp-49)
show ip sockets - gets me mostly there will app udp/tcp ports, but missing tcp-22
show control-plane <anything> - command not available
show ip tcp brief <all> - command not available on all platforms
07-30-2022 01:27 PM - edited 07-30-2022 01:41 PM
show tcp brief all <<<<- NO IP with this command
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide