DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 26th June 2008
ddekok ddekok is offline
Port Guard
 
Join Date: May 2008
Posts: 38
Thanked 4 Times in 3 Posts
Default Serial Consoles

I have two servers, lets call them A (FreeBSD 6.2) and B (FreeBSD 7.0). They are connected with a single null modem cable. This is so I can access one if it is having a network/firewall issue or the such.

Things seem to be configured properly as I can get into the serial console from my Gentoo laptop using a USB-serial adaptor and minicom. However, I cannot establish a connection from one server to the other with cu or tip. I get the error message

/dev/cuad0: Device Busy
link down

I'm beginning to suspect that I cannot double up the purpose of a single port (eg "dial in" an "dial out") due to the port being locked for inbound communication. Is there any way to hijack it when I need to establish an outbound connection?
Reply With Quote
  #2   (View Single Post)  
Old 26th June 2008
jbhappy's Avatar
jbhappy jbhappy is offline
Real Name: Jeff
Port Guard
 
Join Date: Jun 2008
Location: MI, US
Posts: 30
Thanked 4 Times in 3 Posts
Default

Quote:
Originally Posted by ddekok View Post
I'm beginning to suspect that I cannot double up the purpose of a single port (eg "dial in" an "dial out") due to the port being locked for inbound communication. Is there any way to hijack it when I need to establish an outbound connection?
set the ttyd0 entry to "off" in /etc/ttys on the server you're calling out from; init q; killall getty; you should now be able to tip cuad0. set the ttyd0 entry back to 'on' and 'init q' again when you're done.
Reply With Quote
  #3   (View Single Post)  
Old 26th June 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

Wouldn't it make sense to restart getty after killing it? aka, killall -HUP getty?
Reply With Quote
  #4   (View Single Post)  
Old 26th June 2008
jbhappy's Avatar
jbhappy jbhappy is offline
Real Name: Jeff
Port Guard
 
Join Date: Jun 2008
Location: MI, US
Posts: 30
Thanked 4 Times in 3 Posts
Default

Quote:
Originally Posted by BSDfan666 View Post
Wouldn't it make sense to restart getty after killing it? aka, killall -HUP getty?
init will restart all the getty instances in /etc/ttys that are declared "on". as far as I can tell, getty doesn't make a distinction between SIGHUP and SIGTERM--both cause it to exit.
Reply With Quote
  #5   (View Single Post)  
Old 26th June 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 699
Thanked 90 Times in 81 Posts
Default

Quote:
Originally Posted by ddekok View Post
I have two servers, lets call them A (FreeBSD 6.2) and B (FreeBSD 7.0). They are connected with a single null modem cable. This is so I can access one if it is having a network/firewall issue or the such.
Note: you will need two separate serial cables to connect both servers, if you want to be able to connect from one to the other as needed. Connect serial port 1 on system A to serial port 2 on system B. Then connect serial port 1 on system B to serial port 2 on system A.

Then configure both systems to use serial port 1 for the serial console. And to use serial port 2 to "dial-out" to the other server.

Otherwise, using a single cable between serial port 1 on both systems, you'll have both systems outputting data to the serial port (ie the serial console is connected to serial port 1), and you won't have anything available to "dial-out" on to the other server.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up the serial console PeterSteele FreeBSD General 6 3rd November 2008 04:42 PM
probleme with serial port pitbac23 FreeBSD General 2 4th October 2008 01:42 AM
Serial connections JMJ_coder General software and network 9 25th July 2008 03:28 PM
Usb serial adapter Business_woman FreeBSD General 10 4th June 2008 03:06 PM
Mounting a second serial hd keyboard112 Other BSD and UNIX/UNIX-like 4 12th May 2008 08:06 AM


All times are GMT. The time now is 08:27 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick