LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-21-2021, 08:45 PM   #1
jmgibson1981
Senior Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Debian
Posts: 1,151

Rep: Reputation: 393Reputation: 393Reputation: 393Reputation: 393
Serial port how to?


I have been googling awhile. I've tried a few different packages on my windows and linux sides. I think I'm just not understanding something.

I got a serial > ethernet cable at my server and it's plugged into the switch. What do I need on the remote end to hit it? I'm thinking some type of client but nothing I try seems to be able to see anything on the lan. Had the idea that I could get a client on my desktops end and it would be able to find a serial port over the lan. So far not working that way.

Last edited by jmgibson1981; 04-21-2021 at 08:47 PM.
 
Old 04-21-2021, 09:43 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
Quote:
Originally Posted by jmgibson1981 View Post
I have been googling awhile. I've tried a few different packages on my windows and linux sides. I think I'm just not understanding something.

I got a serial > ethernet cable at my server and it's plugged into the switch. What do I need on the remote end to hit it? I'm thinking some type of client but nothing I try seems to be able to see anything on the lan. Had the idea that I could get a client on my desktops end and it would be able to find a serial port over the lan. So far not working that way.
You could use minicom to connect and manage your switch. Somehow I think you have got wrong idea what this port is for ... ?
 
Old 04-21-2021, 09:56 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
I'm with Emerson.

I assume you have a Cisco managed switch. The serial port on the switch is an ethernet port instead of DB 9 or maybe 25 pin connector that you would of found on PCs or serial MODEMs. It is the console port used to configure the switch. As posted you can use any terminal program like minicom or PuTTy.
 
Old 04-21-2021, 10:06 PM   #4
jmgibson1981
Senior Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Debian
Posts: 1,151

Original Poster
Rep: Reputation: 393Reputation: 393Reputation: 393Reputation: 393
It's an rs232 port on the back of my server. I was hoping to get a remote terminal for if it fails to boot so I don't need to haul a monitor out to where it is.

Last edited by jmgibson1981; 04-21-2021 at 10:08 PM.
 
Old 04-21-2021, 10:18 PM   #5
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
Ouch. Ethernet and serial are nothing alike, not compatible with each other at all. What cable it is you have got there? Generally you connect serial port to another serial port.
 
Old 04-21-2021, 10:25 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
If what fails to boot? The server or switch?

There are special devices that are remote ethernet to keyboard, video mouse but they are expensive. Dell and HPs have special boards that basically do the same thing called Irac or ilo.

You can configure the servers serial port as a remote console but you are already using it to control the switch? You would need another computer to be the terminal device.
 
Old 04-21-2021, 10:30 PM   #7
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
I have an APC UPS cable, one end is ethernet and the other is USB, it does not mean it is ethernet to USB adapter cable, APC simply used such physical port and made such a cable. Your cable may be similar special cable.
 
Old 04-21-2021, 10:38 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
Back in the old days we used special RJ-45 to 9 pin adapters to connect VAX computers and I have a few micro computers I use for routers with a RJ-45 serial port.
 
Old 04-22-2021, 08:40 AM   #9
jmgibson1981
Senior Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Debian
Posts: 1,151

Original Poster
Rep: Reputation: 393Reputation: 393Reputation: 393Reputation: 393
Ok thanks. It appears I misunderstood how this all worked. I'm not sure if it's me or it's just very vague. Either way thank you for explaining that.
 
Old 04-22-2021, 09:15 AM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
Quote:
Originally Posted by jmgibson1981 View Post
Ok thanks. It appears I misunderstood how this all worked. I'm not sure if it's me or it's just very vague. Either way thank you for explaining that.
Maybe a little of both. Back in the days of main frames and traditional minicomputers the system was controlled by a special terminal called the system console. Basically a root terminal that was always logged in. In those days serial terminals would be used to access and program the computer and typically the console terminal was kept locked up in the same room as the computer to limit access.

Now days when booting linux on PCs the first virtual terminal defaults to the system console and it is where you see the boot and kernel messages. It is possible to use a serial port as the system console but it isn't active until the kernel boots and you do not see the BIOS messages.

Many "old school" devices like Cisco managed switches have a serial port system console. You login and type in commands just like you would using the terminal. Cisco has its own unique language used to communicate with its switches.

I don't know why some manufactures use a RJ-45 as a serial port connector. With a switch it is easier since all connectors are the same except for power.
 
Old 04-22-2021, 09:33 AM   #11
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,347

Rep: Reputation: Disabled
Quote:
Originally Posted by jmgibson1981 View Post
It's an rs232 port on the back of my server. I was hoping to get a remote terminal for if it fails to boot so I don't need to haul a monitor out to where it is.
You didn't misunderstand this part.

Many servers today still have a serial port for this specific reason. You may have to activate the "serial console" option in the BIOS Setup, but then you'll be able to remotely manage the server over a serial connection. If you want to reach that serial port over a network, you'll either need a device called a serial port redirector/server, or connect the port on the server to the serial port of another computer using a null-modem serial cable.

As mentioned by others, the cable you've got is not a "serial to ethernet" cable, it's a DE-9 to 8P8C modular plug serial cable. It's used for managing equipment that for some reason use an 8P8C connector for the serial port, typically routers and switches. There are two pinout standards for 8P8C serial connections (because why wouldn't there be?), one being the mirror image of the other, and today the proprietary "Cisco" variant is by far the one most commonly used.
 
Old 04-22-2021, 12:15 PM   #12
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,753

Rep: Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983
Quote:
Originally Posted by jmgibson1981 View Post
Ok thanks. It appears I misunderstood how this all worked. I'm not sure if it's me or it's just very vague. Either way thank you for explaining that.
Nothing vague; you have a serial port...you need a serial device to talk to it. And Ethernet is NOT serial.

You need something like this:
https://www.amazon.com/Serial-Ethern.../dp/B00FJEHNSO

...and there are probably cheaper ones as well. You can then telnet/ssh into that IP address, and it will do the 'translation' between serial and network. Your other alternative is to carry a laptop/computer to the switch, and plug it into a serial port on that computer, and run a terminal session through hypercom/minicom/whatever-com.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Communicate Virtual Serial Port on Host(windows) to Communicate with Virtual Serial Port on Guest System(Linux) aquamarine Linux - Newbie 2 09-16-2016 02:48 PM
[SOLVED] Serial terminal connected to USB Serial Port on Ubuntu 12.04 809areacode Linux - General 3 07-18-2013 10:06 PM
Is a USBtty (USB serial port) treated the same as tty (normal serial port) in C? spudgunner Programming 1 11-12-2010 01:19 PM
linux serial port to router console port connection? frankie_fix Linux - General 3 02-26-2007 09:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration