S e c u r e C o n s o l e S e r v e r M a n u a l , R e v . K , J u l y , 2 0 1 3
Page 61
Ap p e n d i x B : F AQ
A few frequently-asked questions
B.1 How To…
This section is a collection of tips and hints for various setup items. The root user can change
any of the following features using the given command steps:
B.1.1 Change Port Parameters
Serial Port settings are modified via the
stty
command (see
man
page
stty
).
The serial port
settings are modified in the
rc.serial
file to be permanently changed. Note the following:
•
Changing port names is persistent over a reboot
•
Changing port communication settings (baud rate, parity etc.) is temporary. The file
/etc/rc.serial
must be edited in order to save the settings.
To change the Port Parameters, edit the file:
/etc/rc.d/rc.serial
For example, to change the baud rate for Port 5 to 19,200 baud, enter:
Stty -F/dev/ttyB5 19200 {other options}
B.1.2 Change the Name of a Port
You can change the name of a Port if you know the original name. For example, to change the
Port
<current name>
to
payroll
, enter:
Stty --name=payroll -F/lsi/ports/<current name>
B.1.3 View a Buffer
Use less or cat to view a port’s buffer. There are at least two methods:
/lsi/ports/buf_<portname>
or
/proc/port_buffers/<portnumber>