offlinefinal.blogg.se

Screen mac os x serial console for cisco
Screen mac os x serial console for cisco





screen mac os x serial console for cisco

You'll be prompted to quit type y and you'll be back at your regular shell. For the sake of putting it all together, here it is: #! /bin/sh/usr/libexec/serial/SerialTerminalSupport stopscreen /dev/cu.serialTo quit cleanly out of screen, type Control-A followed by Control. I wrote a simple shell script to correctly launch screen. Simply stop SerialTerminalSupport and launch screen with the above command. To verify that the change was correct, you can check info on /dev/cu.serial with: stty -f /dev/cu.serialIf the first line says speed 9600 baud, you are good to go. Comment out the three lines beginning with: serial.57600|serial db9 port:Save the file and reboot. Open that file up in your favorite editor and do a search for Xserve. The magic file to change to fix this problem is /etc/gettytab. It turns out that by default, OS X Server sets the baud rate of the serial port to 57600, which is too fast for the Cisco console port. I see bits and pieces of the Cisco's console prompt in my Terminal window, but the screen session keeps sending garbage - to the point where I'd have to close the Terminal window and issue a kill command to let go of /dev/cu.serial and the screen session. Thinking that was all it took, I stopped the SerialTerminalSupport service with this command (run all these commands as superuser): /usr/libexec/serial/SerialTerminalSupport stopAnd tried to launch the screen program to open a connection via the serial port with screen /dev/cu.serial. The syntax for launching it remains the same, though, just the location has changed.

screen mac os x serial console for cisco

Leopard Server moved the SerialTerminalSupport shell script to /usr » libexec » serial. Through some digging, I found the solution to the problem and can now access the router via the serial port at any time, even from my iPhone (through Terminal, of course)! Previous hints targeted at Tiger Server and below, however, do not work any more as the serial support files are no longer found in /System » Library » StartupItems/.

screen mac os x serial console for cisco

Screen mac os x serial console for cisco how to#

Having a pressing need to access a Cisco router via the console cable, and not having a PC with a serial port laying around anywhere, I decided to look into how to access the serial port on an Xserve that's running Leopard Server.







Screen mac os x serial console for cisco