To configure auxiliary COM 1 port, use the
line
com1
command. To negate the previously issued command or to revert
to factory defaults, use the
no form of the command.
linecom1->databitsnumber | flowcontrolhardware | modem {in | init-string {default | user-input} | set-stringuser-inputstring} | parity {even | none | odd} | speedspeed | stopbits {1 | 2}
nolinecom1->databitsnumber | flowcontrolhardware | modem {in | init-string | set-stringuser-input} | parity {even | none | odd} | speedspeed | stopbits {1 | 2}
Syntax Description
databits
number
|
Specifies the number of databits per character. The range
is 5 to 8.
|
flowcontrol
hardware
|
Enables modem flow on the COM1 port control.
|
modem
|
Enables the modem mode.
|
in
|
Enables the COM 1 port to only connect to a modem.
|
init-string
default
|
Writes the default initialization string to the modem.
|
set-string
user-input
string
|
Sets the user-specified initilization string to its
corresponding profile. Maximum length is 80 characters.
|
init-string
user-default
|
Writes the provided initialization string to the modem.
|
parity
|
Sets terminal parity.
|
even
|
Sets even parity.
|
none
|
Sets no parity.
|
odd
|
Sets odd parity.
|
speed
speed
|
Sets the transmit and receive speeds. The range is 110 to
115, 200 baud.
|
stopbits
|
Sets async line stopbits.
|
1
|
Sets one stop bit.
|
2
|
Sets two stop bits.
|
Command Default
9600 Baud
8 databits
1 stopbit
Parity none
Default init string
Command Modes
Configuration mode.
Command History
Release
|
Modification
|
1.2(2)
|
This command was introduced.
|
3.0(1)
|
Added an example to show the user-input initialization
string for the Supervisor-2 module.
|
Usage Guidelines
The
line
com1
command available in config t command mode. The line
com1
configuration commands are available in config-com1
submode.
You can perform the configuration specified in this section only if
you are connected to the console port or the COM1 port.
We recommend you use the default initialization string. If the
required options are not provided in the user-input string, the initialization
string is not processed.
You must first set the user-input string before initializing the
string.
Examples
The following example configures a line console and sets the options
for that terminal line:
switch## config terminal
switch(config)#
switch(config)# line com1
switch(config-com1)# databits 6
switch(config-com1)# parity even
switch(config-com1)# stopbits 1
The following example disables the current modem from executing its
functions:
switch# config terminal
switch(config)# line com1
switch(config-com1)# no modem in
The following example enables (default) the COM1 port to only connect
to a modem:
switch# config terminal
switch(config)# line com1
switch(config-com1)# modem in
The following example writes the initialization string to the modem.
This is the default.
switch# config terminal
switch(config)# line com1
switch(config-com1)# modem init-string default
The following example assigns the user-specified initialization
string for a Supervisor-1 module to its corresponding profile:
switch# config terminal
switch(config)# line com1
switch(config-com1)# modem set-string user-input ATE0Q1&D2&C1S0=3\015
The following example assigns the user-specified initialization
string for a Supervisor-2 module to its corresponding profile:
switch# config terminal
switch(config)# line com1
switch(config-com1)# modem set-string user-input ATE0Q0V1&D0&C0S0=1
The following example deletes the configured initialization string:
switch# config terminal
switch(config)# line com1
switch(config-com1)# no modem set-string user-input ATE0Q1&D2&C1S0=3\015
The following example writes the user-specified initialization string
to the modem:
switch# config terminal
switch(config)# line com1
switch(config-com1)# modem init-string user-input