08-30-2009
TTY Insane
Hi All,
Long time reader, first time poster.
I have a tip session to a v480 serial console running Solaris 9.
Look at this mess I'm getting back...
connected rootÀâä0±-ä²*£*rootÀâä0±-ä²*£*rootÀâä0±-ä²*£*lóâiî*****************************oráclecäroí***************************ðátcèäâó*************** **************ðlátforíäeö*****************************ðrocäeöiceó*************************óáðcäóetc* ****************************óáðíîtexðort**************************óâiîfláóè-õðäáte-SõîÆire´¸0-láteót**tíðèoíe****************************tíðíîtiîótállcä***********************tíðreäo±ëerîel***** *********************tíðreäo²liâ*****************************õórloót+foõîä**********************öárí âox****************************öolíît*****************************xfîîet**************************** *úiðäiroðtrootÀâä0±-ä²*£*rootÀâä0±-ä²*£*rootÀâä0±-ä²*£*exðort**ÔÅÒM½öt±00ÔÅÒM½öt±00:*ió*îot*áî*iäeîtifierrootÀâä0±-ä²*£*rootÀâä0±-ä²*£*rootÀâä0±-ä²*£*ro
Can anyone tell me how to make it sane? stty sane made it worse!
I invoked tip using tip -9600 /dev/ttyb, as we always do. It still works fine if we plug it into another box. I have a perfectly legible telnet session to the box so I can make changes, look at stuff etc. My best guess is that there's a line speed issue but I don't know where the settings are.
tia
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi,
i know this is crazy. but i can do this from linux in intel platform.
just wonder can my Sun Solaris 8 sparc can do the same thing? (2 Replies)
Discussion started by: champion
2 Replies
2. AIX
Hi All
can anyone tell me what is the meaning of tty,or give me an example of this? (1 Reply)
Discussion started by: magasem
1 Replies
3. AIX
dears
i have two IBM p630 application servers, they are running hacmp 5.2 as the clustering software.
from the output of errpt on one of the nodes i am receiving the following error:
9D30B78E 0530020007 T S tty1 RECEIVER OVER-RUN ON INPUT
please are there any ideas about how... (0 Replies)
Discussion started by: TheEngineer
0 Replies
4. UNIX for Dummies Questions & Answers
hi iam very new to linux can anyone tell me about pts and tty
acctually today morning i logged into my pc at 9:51
when i have given #who
it has given
sam tty7 9:51
sam pts/1 10:11
so what does it mean (1 Reply)
Discussion started by: praneel2k
1 Replies
5. Solaris
hi all,
what i want to do
when user open terminal like tty5 and do his work
i want to see his terminal
how can i do this (1 Reply)
Discussion started by: xxmasrawy
1 Replies
6. UNIX for Advanced & Expert Users
I am not sure if I am using the correct terminology but somehow my tty keeps changing on me. The man pages are confusing to me on what exactly the tty is. This is what I see when I run the tty command. Could anyone explain why my tty keeps changing?
~ $ tty
/dev/pts/1
~ $ tty
/dev/pts/0 (6 Replies)
Discussion started by: cokedude
6 Replies
7. Shell Programming and Scripting
Hi guys,
I know computers don't misbehave.
But I'm puzzled by what's happening right know in a script :
I simplified the example to point out what seems weird to me.
Don't try to find any sense to this stupid script.
There are 10 rows in /tmp/tmp.txt
i=0
tmpfile=/tmp/tmp.txt
while... (3 Replies)
Discussion started by: chebarbudo
3 Replies
8. Solaris
I have Solaris 10 update 11 installed on a virtual machine which I use for my lunix class (I'm studying I.T. but have little unix experience). So I have root access*
I'm also do C programming in my course and would love to do it on my Solaris machine.
So I looked into installing GCC and... (5 Replies)
Discussion started by: goformickey
5 Replies
9. Shell Programming and Scripting
In bash, you can do something like this:
#!/bin/bash
echo -n "What is your name? " > /dev/tty
read thename < /dev/tty
How can I do the same in python?
I have a python script that has the following content:
#!/usr/bin/python2.7
import getpass
import sys
import telnetlib
import... (2 Replies)
Discussion started by: SkySmart
2 Replies
LEARN ABOUT MOJAVE
sttydefs
sttydefs(1M) System Administration Commands sttydefs(1M)
NAME
sttydefs - maintain line settings and hunt sequences for TTY ports
SYNOPSIS
/usr/sbin/sttydefs -a ttylabel [-b] [-f final-flags] [-i initial-flags] [-n nextlabel]
/usr/sbin/sttydefs -l [ttylabel]
/usr/sbin/sttydefs -r ttylabel
DESCRIPTION
sttydefs is an administrative command that maintains the line settings and hunt sequences for the system's TTY ports by making entries in,
and deleting entries from the /etc/ttydefs file.
sttydefs with a -a or -r option may be invoked only by the super-user. sttydefs with -l may be invoked by any user on the system.
OPTIONS
The following options are supported:
-a ttylabel Add a record to the ttydefs file, using ttylabel as its label. The following describes the effect of the -b, -n,
-i, or -f options when used in conjunction with the -a option:
-b Enable autobaud. Autobaud allows the system to set the line speed of a given TTY port to the line speed of the
device connected to the port without
the user's intervention.
-f final-flags Specify the value to be used in the final-flags field in /etc/ttydefs. final-flags must be in a format recognized
by the stty command. final-flags are the termio(7I) settings used by ttymon after receiving a successful connection
request and immediately before invoking the service on the port. If this option is not specified, sttydefs will set
final-flags equal to the termio(7I) flags 9600 and sane.
-i initial-flags Specify the value to be used in the initial-flags field in /etc/ttydefs. initial-flags must be in a format recog-
nized by the stty command. These flags are used by ttymon when searching for the correct baud rate. They are set
prior to writing the prompt. If this option is not specified, sttydefs will set initial-flags equal to the
termio(7I) flag 9600.
-n nextlabel Specify the value to be used in the nextlabel field in /etc/ttydefs. If this option is not specified, sttydefs will
set nextlabel equal to ttylabel.
-l[ttylabel] If a ttylabel is specified, sttydefs displays the record from /etc/ttydefs whose TTY label matches the specified
ttylabel. If no ttylabel is specified, sttydefs displays the entire contents of /etc/ttydefs. sttydefs verifies
that each entry it displays is correct and that the entry's nextlabel field references an existing
-r ttylabel Remove any record in the ttydefs file that has ttylabel as its label.
OUTPUT
If successful, sttydefs will exit with a status of 0. sttydefs -l will generate the requested information and send it to standard output.
EXAMPLES
Example 1: A sample of sttydefs command.
The following command lists all the entries in the ttydefs file and prints an error message for each invalid entry that is detected.
example# sttydefs -l
The following shows a command that requests information for a single label and its output:
example# sttydefs -l 9600
------------------------------------------------------------------
9600:9600 hupcl erase ^h:9600 sane ixany tab3 hupcl erase ^h::4800
------------------------------------------------------------------
ttylabel: 9600
initial flags: 9600 hupcl erase ^h
final flags: 9600 sane ixany tab3 hupcl erase ^h
autobaud: no
nextlabel: 4800
The following sequence of commands will add the labels 1200, 2400, 4800, and 9600 and put them in a circular list:
sttydefs -a 1200 -n 2400 -i 1200 -f "1200 sane"
sttydefs -a 2400 -n 4800 -i 2400 -f "2400 sane"
sttydefs -a 4800 -n 9600 -i 4800 -f "4800 sane"
sttydefs -a 9600 -n 1200 -i 9600 -f "9600 sane"
FILES
/etc/ttydefs
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
attributes(5), termio(7I)
SunOS 5.10 14 Sep 1992 sttydefs(1M)