Use the following CLI syntax to configure parameters on an RS-232 serial port.
config# port port-id
no shutdown
serial
rs232
character-length {6 | 7 | 8}
control-lead
input
dtr-dsr high
rts-dcd high
exit
output
dcd-rts high
cts-alb high
ri-rdl high
exit
monitor
dtr-dsr off
rts-dcd off
exit
hold-time {[up hold-time-up] [down hold-time-down]}
no loopback
parity {odd | even | mark | space}
speed {600 | 1200 | 2400 | 4800 |
9600 | 19200 | 38400 | 57600 | 115200}
stop-bits {1|2}
exit
exit
exit
The following CLI syntax shows an example of configuring an RS-232 serial port.
config# port 1/3/2
config>port# no shutdown
config>port# description "RS-232 Serial”
config>port# serial
config>port>serial# rs232
config>port>serial>rs232# character-length 8
config>port>serial>rs232# control-lead
config>port>serial>rs232>control-lead# input
config>port>serial>rs232>control-lead>input# dtr-dsr high
config>port>serial>rs232>control-lead>input# rts-dcd high
config>port>serial>rs232>control-lead>input# exit
config>port>serial>rs232>control-lead# output
config>port>serial>rs232>control-lead>output# dcd-rts high
config>port>serial>rs232>control-lead>output# cts-alb high
config>port>serial>rs232>control-lead>output# ri-rdl high
config>port>serial>rs232>control-lead>output# exit
config>port>serial>rs232>control-lead# monitor
config>port>serial>rs232>control-lead>monitor# dtr-dsr off
config>port>serial>rs232>control-lead>monitor# rts-dcd off
config>port>serial>rs232>control-lead>monitor# exit
config>port>serial>rs232>control-lead# exit
config>port>serial>rs232# hold-time up 100
config>port>serial>rs232# no loopback
config>port>serial>rs232# parity odd
config>port>serial>rs232# speed 9600
config>port>serial>rs232# stop-bits 1
config>port>serial>rs232# exit
config>port>serial# exit
config>port# exit
Use the admin>display-config detail command to display the serial RS-232 port configuration information.
*A:Dut>admin# display-config detail
#--------------------------------------------------
echo "Port Configuration"
#--------------------------------------------------
.....
port 1/3/2
description "RS-232 Serial"
serial
rs232
speed 9600
control-lead
input
dtr-dsr high
rts-dcd high
exit
output
dcd-rts high
cts-alb high
ri-rdl high
exit
monitor
dtr-dsr off
rts-dcd off
exit
exit
character-length 8
parity odd
stop-bits 1
hold-time up 100 down 100
exit
exit
exit
exit
exit
.....
#--------------------------------------------------