Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443
Rep:
Is there a serial terminal shell in Solaris?
Hi,
my question is pretty straight forward and possibly quite easy to answer:
basically I'd just like to know if there is a serial console for Solaris?
I'm using SXCE but compatibility with any version from 10 onwards would be cool!
I have a USB to Serial cable and was wondering if Solaris has the drivers for it as in Linux it works fine (I know, different OS but still hoping for kernel support)?
Unfortunately I don't know the command to list USB devices in the shell; lsusb from Linux
I'm after something like Terra Term32 or Hyper Terminal in Windows or GTKTerm in Linux as I need to connect to Cisco IOS equipment and Sun servers also.
I recall finding something somewhere once but can't remember where now, many thanks for any ideas! :-)
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443
Original Poster
Rep:
Many thanks for the reply, I browsed the page and it claims that the PL2303 chipset based driver is supported
Quote:
Which USB to Serial device can I use with Solaris ?
Solaris supports Digi InsideOut Networks' devices and recently, KeySpan and Prolific chipset based devices' support were also integrated to Solaris. Keyspan and Prolific USB serial drivers are available in OpenSolaris and in Solaris 10 Update 2 and later. PL2303 chip based adapters and Keyspan USA-19HS adapter are available as part of Solaris 10 Update 2.
Mine is a PL2303 so that's fine but it doesn't show up when running prtconf -D, some drivers for it however seem to be PL2302 especially for Windows platforms?
According to the literature:
Quote:
My Edgeport device is based on the latest TI chipset. Are these devices supported under Solaris 10 ?
First, run prtconf -D and check the device id. The device id may look like: usbif1608,1.config1.0 Check the file /etc/driver_aliases if this id exists in it. If it does not, then run the following command as root:
update_drv -a -i "usbif1608,1.config1.0" usbser_edge
Mine is a USB dongle, where they mention chips, mine doesn't actually have any unless it's inside the DB9 connector itself?
What would be the best approach from here I'm wondering as prtconf -D should be a similar command to what I referred to earlier for Linux as in lsusb which isn't listing it unless it's coming up on the PCI interface?
Am gona keep reading through however, but from part 5 in the literature I do seem to have an instance of 0 in both /dev/cua and /dev/term which are both links to:
Code:
# ls -l /dev/term
total 2
lrwxrwxrwx 1 root root 48 May 28 23:40 0 -> ../../devices/pci@0,0/pci17c0,2005@1d/device@1:0
# ls -l /dev/cua
total 2
lrwxrwxrwx 1 root root 51 May 28 23:40 0 -> ../../devices/pci@0,0/pci17c0,2005@1d/device@1:0,cu
.....oops just tested it and I think I lost Solaris completely, blank screen with flashing cursor which means that the system is probably waiting for a serial connection to dial-in via the USB port?
Looks like I'm gona have to transition the system into failsafe and recover it or use some kind of bootable media that can read and write the UFS file system to restore grub by editing:
kernel ... -B console=usb-serial
to take out the -B {boot} flag option!
[EDIT]Correction system boots but verbose boot output is lost, I'm guessing it's being outputted to Serial connection? Just tried to gain access to IOS via console port and claims: tip u0 gives unknown host u0
[/EDIT]
I'm wondering do I need to configure the USB->Serial as an edgeport?? Although now I'm just confusing between Cisco's implementation of STP, PVST+ and Rapid PVST+ :S
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443
Original Poster
Rep:
Hi, if anyone can guide me through this I'd really appreciate it as following the article I'm quite lost as it seems Solaris handles Serial links differently then to what I expected as it seems to be trying to dial out rather then connect to my equipment?
If only it was as simple as insert the adapter, boot up the terminal emulator select USB0 from the port selection, choose bit-rate, parity and stop-bit press enter and get connected....
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Solaris has handling serial lines for ages, actually serial lines used to be only way to connect to/from a Unix box before Ethernet was invented. However, your PC is lacking a serial port and and adapter isn't a transparent solution.
The USB-to-serial adapter isn't a passive device but a peripheral with indeed a chip inside that requires a specific driver, whatever the OS, to convert the high level USB protocol to the primitive RS-232 one. According to the prtconf output, a driver is already installed for your adapter and the corresponding devices are /dev/term/0 and /dev/cua/0. There is no need to try using different devices like /dev/cua/b.
As /dev/term/0 is for incoming connections, the only entry of interest for your device is:
You should only run "tip u0" from your terminal emulator (xterm, dtterm, gnome-terminal or whatever) and be connected to the device located at the other side of the cable, assuming it is set to 9600 bps. If you get a device busy message, that might be because you have left a previous command (presumably tip) running. Try "fuser /dev/cua/0" to see if some process ID shows up.
"eeprom console=usb-serial" was a bad guess. It switches the system console, the one you sees at boot time and when X window is disabled, to a USB to serial device.
You can revert to the original setting by running:
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443
Original Poster
Rep:
Many thanks, jlliagre
Quote:
The USB-to-serial adapter isn't a passive device but a peripheral with indeed a chip inside that requires a specific driver, whatever the OS, to convert the high level USB protocol to the primitive RS-232 one. According to the prtconf output, a driver is already installed for your adapter and the corresponding devices are /dev/term/0 and /dev/cua/0. There is no need to try using different devices like /dev/cua/b.
expanding **cuab:dv=/dev/cua/0:br#2400** I pointed it towards /dev/cua/0 as it was on b as shown above - Now it works!
Quote:
Solaris has handling serial lines for ages, actually serial lines used to be only way to connect to/from a Unix box before Ethernet was invented. However, your PC is lacking a serial port and and adapter isn't a transparent solution.
Back in the 'day' this is how client-server models used to function where where micro computers hadn't come out yet much before they evolved into the 'PC'. The serial terminals stuff like DEC's VT100 line of displays and similar where known as 'dumb' terminals while the server was an intelligent terminal or active terminal even though only having less then 8-bit graphics in the early days!
I don't know about the SPARCS of today only from what I've got as my test platform which are round 10 years or so old, SPARC II ULTRA machines. The only way to connect to them is via serial; RJ45 for the Netra's which have LOM embedded or the Sun 25 pin D-sub connector on my E420r, plus of course all the Cisco stuff which I ranted on about above too
To be honest I don't know whether to be embarrassed or laugh as I use to read the serial output from my Sun servers when debugging - I actually didn't realize that the same information was logged to /var/adm/messages :-0 in Solaris
That's the good thing about having a Solaris based project network, one can learn the basic stuff without going into industry and not knowing where to turn when using Solaris/Sun based systems.
I just wish I had more experience with Solaris, even though it's only been what must be now 4 months or so where I've been using it.....
P.s. once serialled in how do exit tip or send a break command?
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Quote:
Originally Posted by kayasaman
The serial terminals stuff like DEC's VT100 line of displays and similar where known as 'dumb' terminals while the server was an intelligent terminal or active terminal even though only having less then 8-bit graphics in the early days!
Actually, the early Unix servers were not terminals at all. Only blind boxes with serial ports for these VT100s to connect. When the Unix workstations enter the market about ten years later, they were indeed both a Unix server and a one bit then 8 bit graphic terminal.
Quote:
I don't know about the SPARCS of today only from what I've got as my test platform which are round 10 years or so old, SPARC II ULTRA machines. The only way to connect to them is via serial; RJ45 for the Netra's which have LOM embedded or the Sun 25 pin D-sub connector on my E420r, plus of course all the Cisco stuff which I ranted on about above too
Yes, these are plain servers, as opposed to workstations. It is possible to add a graphic card to most of them though.
Quote:
P.s. once serialled in how do exit tip or send a break command?
Ok scratch the not working part!!!!! shift # followed by . gave me the appropriate result. At least I'm not totally incompetent.... few was getting worried for a second there - guess I'm so used to combining key sequences as in ctrl+shift+char1+char2 etc. that I didn't stop to think that they might be following one after the other in serial.
Well that's sorted now!!!! Between yesterday and today I've managed to sort out my serial connection to my Sun's and Cisco devices and also create a tftp server too all in SXCE. I should be proud at this point so why do I feel like I expect more from myself? :S
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.