How to detect console
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2022 06:20 AM - edited 07-05-2022 06:21 AM
Dears,
is there any method to know if the console cable is connect to device or not ?
we have switches in different location, some of them is connected with console cable, i am looking if there is any method to know if the device is connect with console cable or not.
Best Regards.
- Labels:
-
LAN Switching
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2022 06:36 AM
try #show line
https://www.oreilly.com/library/view/cisco-ios-in/156592942X/ch04s07.html
Good luck
KB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2022 06:45 AM
Just a footnote to what @Kasun Bandara provided, it would only show a currently "up" link.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2022 08:16 AM
you can find line is active or not by '*' mark at start of lines.
Good luck
KB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2022 02:04 AM
Dear @Kasun Bandara
Thank you for your reply.
i checked with # show line , i got the following:
- when the console is active, there is a (*) mark.
- when the console is not active , there is no (*) mark.
-----
my issue is not related to active console session, i just would like know if there is a console cable is connect to our switches or not, because when we upgraded the device to a new version and there is console cable connect to the device, the device enter to rommon mode, and i tried to find any solution for this issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2022 02:28 AM
if console is connected to device without any PC or Laptop connected to console's other side, there is no way to check that. you need to physically check that.
Good luck
KB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2022 06:49 AM
Hi,
As far as I know, there is really no useful command that can show you if the console line is connected (up or down). There is "sh line console 0" but this only shows you the characteristics of the line and not if the console is connected to anything.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2022 02:06 AM
exactly i am looking if there is any method to show you if the console line is connected (up or down).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2022 07:59 AM - edited 07-05-2022 07:59 AM
do
show user
this give hint that user use console or not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2025 11:05 AM
N7K-admin-VDC# show line console connected
Line console is connected
