×

Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

How to use a MAC for connecting through the console port ?

Endorsed Question
Jan 21st, 2014
User Badges:

I have a MAc book air with OS x 10.7.5,

I bought the adapter usb to serial port, but the drivers that come with it are for Windos , I am stuck .

No idea what to do for using the mack for connect to the console port of my cisco labs routers.

Please any idea of what to do would be graet .

Thanks

Cisco Endorsed by Venkat Kannan
ckent0001 about 3 years 2 months ago

There's a new Mac app called Serial available on the App Store. Full disclosure- I wrote it. We got tired of having to find and install drivers for different serial adapters and devices we have here in order to administer Cisco switches, so we wrote our own terminal that uses its own built-in drivers for the most common chipsets available. There's a free demo available.

Also, as of Mac OS X 10.9, Apple began shipping their own FTDI driver. So, if you're using a USB-serial adapter that uses the FTDI chipset (many of the higher-end adapters do), you don't need to worry about installing drivers and can use the built-in screen command in the Terminal to access serial ports.

Endorsed by kvihol
John Blakley about 3 years 6 months ago

There are a couple other things that can be tried. Connect the usb cable to your laptop, and then drop to terminal and type this:


ls /dev/tty*


Find the device that's associated to your usb port. Then use screen to that:


screen /dev/tty-xxxx


If that doesn't work try this:


ioreg -c IOSerialBSDClient  | grep usb


If it comes back with something, find the IOSerialCallOutDevice and screen to that:


screen /dev/cu.usbserial



HTH,
John

*** Please rate all useful posts ***

Cisco Endorsed by Kyle Bolton
John Blakley about 3 years 6 months ago

You'll need to get a usb-serial adapter and then connect with a console cable. Adapters aren't very expensive.

Connecting to the Console Port with Mac OS X
To connect a Mac OS X system USB port to the console using the built-in OS X Terminal utility, follow these steps:
Step 1 Use the Finder to go to Applications > Utilities > Terminal.

Step 2 Connect the OS X USB port to the router.

Step 3 Enter the following commands to find the OS X USB port number:

macbook:user$ cd /dev
macbook:user$ ls -ltr /dev/*usb*
crw-rw-rw- 1 root wheel 9, 66 Apr 1 16:46 tty.usbmodem1a21
DT-macbook:dev user$
Step 4 Connect to the USB port with the following command followed by the router USB port speed:

macbook:user$ screen /dev/tty.usbmodem1a21 9600
To Disconnect the OS X USB Console from the Terminal Window
Enter Ctrl+A followed by Ctrl+\

Hth,
John

Sent from Cisco Technical Support iPhone App

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4.1 (23 ratings)
Loading.
John Blakley Tue, 01/21/2014 - 15:19
User Badges:
  • Purple, 4500 points or more

You'll need to get a usb-serial adapter and then connect with a console cable. Adapters aren't very expensive.

Connecting to the Console Port with Mac OS X
To connect a Mac OS X system USB port to the console using the built-in OS X Terminal utility, follow these steps:
Step 1 Use the Finder to go to Applications > Utilities > Terminal.

Step 2 Connect the OS X USB port to the router.

Step 3 Enter the following commands to find the OS X USB port number:

macbook:user$ cd /dev
macbook:user$ ls -ltr /dev/*usb*
crw-rw-rw- 1 root wheel 9, 66 Apr 1 16:46 tty.usbmodem1a21
DT-macbook:dev user$
Step 4 Connect to the USB port with the following command followed by the router USB port speed:

macbook:user$ screen /dev/tty.usbmodem1a21 9600
To Disconnect the OS X USB Console from the Terminal Window
Enter Ctrl+A followed by Ctrl+\

Hth,
John

Sent from Cisco Technical Support iPhone App

riveron08 Tue, 01/21/2014 - 18:17
User Badges:

Thank you for your time answering my question , I appreciate it .

Let me try it.

riveron08 Tue, 01/21/2014 - 18:37
User Badges:

What I am making wrong ?


Last login: Tue Jan 21 21:49:18 on ttys001

Ernestos-MacBook-Air:~ riveron08$ cd /dev

Ernestos-MacBook-Air:dev riveron08$ ls -ltr /dev/*usb*

ls: /dev/*usb*: No such file or directory

Ernestos-MacBook-Air:dev riveron08$ crw-rw-rw- 1 root wheel 9, 66 Apr 1 16:46 tty.usbmodem1a21

-bash: crw-rw-rw-: command not found

Ernestos-MacBook-Air:dev riveron08$ DT-macbook:dev user$

-bash: DT-macbook:dev: command not found

Ernestos-MacBook-Air:dev riveron08$

riveron08 Tue, 01/21/2014 - 19:17
User Badges:

I found this in my MAC in about my MAC


USB-Serial Controller D:

Product ID:          0x2303

Vendor ID:          0x067b  (Prolific Technology, Inc.)

Version:           4.00

Speed:          Up to 12 Mb/sec

Manufacturer:          Prolific Technology Inc.

Location ID:          0xfd110000 / 3

Current Available (mA):          500

Current Required (mA):          100

John Blakley Wed, 01/22/2014 - 03:49
User Badges:
  • Purple, 4500 points or more

There are a couple other things that can be tried. Connect the usb cable to your laptop, and then drop to terminal and type this:


ls /dev/tty*


Find the device that's associated to your usb port. Then use screen to that:


screen /dev/tty-xxxx


If that doesn't work try this:


ioreg -c IOSerialBSDClient  | grep usb


If it comes back with something, find the IOSerialCallOutDevice and screen to that:


screen /dev/cu.usbserial



HTH,
John

*** Please rate all useful posts ***

Hi


Whilst I am using the Serial app successfully, I would still like to understand how one could connect with the min-USB cable without paying $30. It is not a lot of money, to be sure, but it is a barrier to adoption, which is a shame.

I am using El Capitan 10.11.3. None of the options for finding a device I can use the "screen" command with are working for me.

Many thanks

Nathan

davidbroadnax Thu, 04/23/2015 - 14:28
User Badges:

Thank you so much..Up and running! So long third party software....

 

ejlbarcelon Thu, 07/07/2016 - 19:11
User Badges:

hi,

hope someone still answer my question, i have installed the drivers and was able to see the the tty.usb from my mac terminal, i can also connect properly. My problem is that when i issue a command through console, it freeze up after a few lines of output. It will not let me continue and i have to exit "screen" and run it to gain access. Even if i use other terminal application, results are the same.

Am i missing something or do i have to configure something on my terminal app?

TIA for those who will answer.

edlazarenko Thu, 07/27/2017 - 04:46
User Badges:

Hello! Your solution works great, except Mac went to some kind of BSOD, after unpluging usb-to-com adapter. 

ckent0001 Sun, 06/08/2014 - 10:27
User Badges:

There's a new Mac app called Serial available on the App Store. Full disclosure- I wrote it. We got tired of having to find and install drivers for different serial adapters and devices we have here in order to administer Cisco switches, so we wrote our own terminal that uses its own built-in drivers for the most common chipsets available. There's a free demo available.

Also, as of Mac OS X 10.9, Apple began shipping their own FTDI driver. So, if you're using a USB-serial adapter that uses the FTDI chipset (many of the higher-end adapters do), you don't need to worry about installing drivers and can use the built-in screen command in the Terminal to access serial ports.

riveron08 Tue, 06/10/2014 - 11:00
User Badges:

Thanks for your time answering my questions

I will give it a try.

Thanks

 

mateja.jovanovic Sat, 04/25/2015 - 06:18
User Badges:

Nice tool... but for 30 euros I think I´ll stick to the instructions provided by John here below :)

tj.mitchell Wed, 12/09/2015 - 07:34
User Badges:
  • Bronze, 100 points or more

Ok.. This software rocks. Just tried it and it found the USB-Serial adapter and boom. took I think 60 secs..

mateja.jovanovic Wed, 12/10/2014 - 07:40
User Badges:

Yeap, this worked. Thanks mate, you deserve all of the 5 stars I gave u :D

Actions

This Discussion