I am having trouble with a device connected through a serial port on my sun workstation ( I am running solaris 7).
The seriel device works on an identical workstation running the same o/s version but when I move it to the initial workstation it doesn't work. I am using an rs232 serial cable and... (1 Reply)
I have a serial modem connected to a usb port using an adapter cable. The system is a HP DL360. RedHat ES3.0
I am using the device /dev/ttyUSB0
When I issue the command "mgetty ttyUSB0" I get the following output in the log file.
How do I get the system to see the modem.
12/02 14:17:55... (2 Replies)
Hi
I have just re-installed Compaq ML350 G2 Server with Unix SCO 5.0.5 and
informix DBMS .
on this server we have 2 serial ports , unfortunately its not working.
Can anyone help me to check the serial ports working or not OR guide me
to reconfigure it.
I have attached a device with... (1 Reply)
I am developing an application in c with Linux OS, where a radio modem working at baud rate 9600 will be attached to PC on serial port. More than four such units will be communicating at one time, so there may be jamming or data corruption. Each module will be transmitting Data packets less than... (2 Replies)
I am working with solaris 9 sparc and I want to connect physical device in serial port but when I am connecting it,It is showing the error window saying--
So can any1 tell me the reason or is there any package I have to add to work with serial port??? (2 Replies)
Hi,
I am working with Sun Solaris 9 Sparc,Sun-Blade-100.In my application,I need to monitor the UPS using Serial port.
When I am using JRE 1.4 in my application,I am able to monitor it but when I am upgrading the JRE version from 1.4 to JRE1.6. I am not able to monitor the UPS.It is showing the... (1 Reply)
Hi,
I have a external board connected to my serial port. I need to execute "shutdown -r now" command when system boot up. When system boots up it requires a username ans password. Then I need to run my command. I can use rc script but that is rebooting system before it asks for username and... (0 Replies)
Hi Everyone,
In my environment, I have few T5220. On the iLOM Management Card, I have both Network and Serial port are cabled, I don't have any issues while I try to connect using Network Management port, but when I try to connect the serial port for the same server which is actually connected... (3 Replies)
Hello,
I have an unloaded T5140 machine and want to access the ILOM for the first time and subsequently the network port after that., and then load Solaris 10 the final January 2011 build.
The first part is what confuses me -the cabling.
I am coming from a Windows machine (w/appropriate... (5 Replies)
I am trying to change the setting of serial port baud rate in Red Hat Linux 5.9 by the following command.
>> stty 9600 cs8 -parenb -ixon -cstopb -echo -F /dev/ttyS0
The serial port will be used by our custom application in 2 separate servers which are the replica of one another.
The port setting... (2 Replies)
Discussion started by: Anjan Ganguly
2 Replies
LEARN ABOUT SUNOS
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)