Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Console connect to Cisco routers via minicom Network
Here's a step-by-step set of instructions on how to console onto your cisco router or switch from your mac using minicom.
  1. Install minicom via Fink [Fink minicom page]. In the Terminal, type fink install minicom
  2. Purchase the Keyspan PDA adapter. Install the driver and reboot
  3. Configure minicom. Type minicom -s in the Terminal, and select Serial port setup (using the up and down arrows). Set the serial device to look as follows:
        x A -    Serial Device      : /dev/cu.USA19QI191P1.1                   
        x B - Lockfile Location     : /sw/var/run                               
        x C -   Callin Program      :                                           
        x D -  Callout Program      :                                           
        x E -    Bps/Par/Bits       : 9600 8N1                                  
        x F - Hardware Flow Control : No                                        
        x G - Software Flow Control : No                                        
        x                                                                       
        x    Change which setting?                                              
    
    Verify your "Serial Device" by looking through /dev on your computer for something that looks approximately like above. You might do ls /dev/cu* to find it fast. Don't choose /dev/cu.modem, and note the "E" settings -- this is what Cisco routers require, and note that there's no flow control of any kind. Save setup as dfl; this is the default config which minicom uses on launch.
Read the rest of the hint for the remainder of the steps.

You will need the following cabling:
  1. patch cable say 7" long
  2. Cisco rj45 to db9 converter with "Terminal" on oneside 74-0495-01 on the other
  3. db9 female to db9 male null modem cable
  4. Keyspan PDA converter
Connect the cables:
  • #1 into the console port of the router
  • #2 goes into #1
  • #3 goes into #2
  • #4 goes into #3 and into a USB slot on the back of your Mac.
Shut the router down, then type sudo minicom. You will see Initializing modem; you should then connect to your router.

IMPORTANT:
When you are done you must hang up the connection. Hit Control-A then hit z then hit x then hit Return. You will see Resetting Modem, and then you will exit out of minicom.
    •    
  • Currently 2.60 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (5 votes cast)
 
[85,486 views]  

Console connect to Cisco routers via minicom | 12 comments | Create New Account
Click here to return to the 'Console connect to Cisco routers via minicom' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Console connect to Cisco routers via minicom
Authored by: shimes on May 26, '04 11:31:50AM

You can also use ZTerm (http://homepage.mac.com/dalverson/zterm/) with a Keyspan High Speed USB Serial Adapter (http://www.keyspan.com/products/usb/USA19HS/) and the console cables that Cisco ships with their devices. I've been experimenting with that solution on 10.3 for a while now and it has worked well for configuring switches and routers locally.

Scott



[ Reply to This | # ]
Console connect to Cisco routers via minicom
Authored by: beerguy on May 26, '04 01:13:35PM

Yup - that's what I make my living with. Works great.



[ Reply to This | # ]
Console connect to Cisco routers via minicom
Authored by: webbix on May 26, '04 08:03:58PM
Currently under beta (I think) and bound to be a shareware/commercial app, look at Telconi Terminal. It provides a very nice GUI allowing configuration of your Cisco.

Not a serial connection but worth a mention if you have ssh/telnet access open on your Cisco.

[ Reply to This | # ]
Console connect to Cisco routers via minicom
Authored by: macubergeek on May 27, '04 06:59:18PM

wow what a sweet little app!!!



[ Reply to This | # ]
Console connect to Cisco routers via minicom
Authored by: reese on Jul 01, '04 09:04:35PM

I have been using zterm for years, starting on OS9,8,7? to console SGI and SUN servers as well as Cisco gear. Yes, it works great and there is basically no setup.
But... you have to be in front of the Mac to use it. For remote service you need to use a remote desktop app (ARD, Timbuktu, VNC) just to get a shell.
I just set up minicom and after cleaning up a few messes in Fink it works and I can access it via ssh.

Reese



[ Reply to This | # ]
Console connect to Cisco routers via minicom
Authored by: macubergeek on May 26, '04 07:46:47PM

Yup Zterm is also a good solution.
I've had good success using a modem initialization string of:
^M



[ Reply to This | # ]
Console connect to Cisco routers via minicom
Authored by: mautro on May 29, '04 05:04:37AM

It's ok,but if I would admin a sun sparc via minicom/zterm the only things I should change are the Bps/Par/Bits parameters (and the cable,of course)?
Regards
Mauro



[ Reply to This | # ]
Console connect to Cisco routers via minicom
Authored by: macubergeek on May 29, '04 06:29:23PM

I have not consoled onto a sun box in a while but I think 8none1 & no flow control should be fine assuming you have proper null modem cable.



[ Reply to This | # ]
Console connect to Cisco routers via minicom
Authored by: macubergeek on May 29, '04 06:33:26PM

I take that back
My pc is consoled into my sparc box and it uses 9600 8none1 and no flow control and it works fine (with Hyperterminal)
So go ahead and use the same settings in Zterm.



[ Reply to This | # ]
Console connect to Cisco routers via minicom
Authored by: jasonatmacosxhnt on Dec 14, '04 04:34:48PM
The new USA-19HS adapters are out and KeySpan no longer makes older models. After installing my new keyspan the device is /dev/cu.USA19H3b1P1.1 Launch the Keyspan Serial Assistant to figure out your device info.

If you run
sudo chmod g+w /sw/var/run

you can run minicom right from any command prompt without running sudo minicom, one less extra of a step. You still have to be an admin on the box to do this.

[ Reply to This | # ]
Console connect using Suntac VS-60R and minicom
Authored by: gkjapan on Feb 01, '05 06:22:23PM

Yes!!! I was able to connect successfully via minicom to a Cisco 3662 with a Suntac VS-60R that I got here in Japan. It has no drivers, just uses the built in USB drivers. It's recognized as /dev/cu.usbmodemUSB-COM.

Thanks for the tip.



[ Reply to This | # ]
Console connect to Cisco routers via minicom
Authored by: pauldr on Feb 12, '10 03:29:06AM

I need some assistance. I have read several posts on how to use minicom on a mac os (10.5.8) to connect and configure a cisco switch. I am not able to do to this. I'm going to post my config settings and if anyone has a solution, please let me know. I have been working on this for 3 weeks and tried suggesting to my supervisor to use windows but he will not budge.

I would greatly appreciate any guidance to solve this.

Thank you,
Paul

Config Settings:
Serial Port Setup
A -    Serial Device      : /dev/tty.USA28Xfa41P1.1
B - Lockfile Location     : /Users/admin/minicom/tty
C -   Callin Program      :
D -  Callout Program      :
E -    Bps/Par/Bits       : 9600 8N1
F - Hardware Flow Control : No
G - Software Flow Control : No

MODEM and DIALING
A - Init string .........
B - Reset string ........ ^M~ATZ^M~
C - Dialing prefix #1.... ATDT
D - Dialing suffix #1.... ^M
E - Dialing prefix #2.... ATDP
F - Dialing suffix #2.... ^M
G - Dialing prefix #3.... ATX1DT
H - Dialing suffix #3.... ;X4D^M
I - Connect string ...... CONNECT
J - No connect strings .. NO CARRIER BUSY
NO DIALTONE VOICE
K - Hang-up string ...... ~~+++~~ATH^M
L - Dial cancel string .. ^M

M - Dial time ........... 45 Q - Auto bps detect ..... No
N - Delay before redial . 2 R - Modem has DCD line .. Yes
O - Number of tries ..... 10 S - Status line shows ... DTE speed
P - DTR drop time (0=no). 1 T - Multi-line untag .... No

Change which setting? (Return or Esc to exit)



[ Reply to This | # ]