# RS-232 Port Configuration Mode Commands

The RS-232 Port Configuration Mode is used to manage the RS-232 ports on the SPIO cards.

IMPORTANT:

The commands or keywords/variables that are available are dependent on platform type, product version, and installed license(s).
default

Restores the port’s default speed and communication mode.
Platform:

ASR 5000
Product:

All
Privilege:

Security Administrator, Administrator
Syntax

    default { preferred
    slot | terminal { all | databits | flowcontrol | parity | speed | stopbits }

preferred slot

Sets the port for non-revertive operation for port redundancy auto-recovery; requiring an administrative user to manually issue a port switch to command to return service to the original port.
terminal { all | databits | flowcontrol | parity | speed | stopbits }

Sets the terminal settings for the RS-232 port to their default settings.

all: Restores all settings to their default values.

databits: Restores the databits setting to its default value of 8.

flowcontrol: Restores the flowcontrol setting to its default value of none.

parity: Restores the parity setting to its default value of none.

speed: Restores the speed setting to its default value of 9600.

stopbits: Restores the stopbits setting to its default value of 1.
Usage:

Restores port-level parameters to their default values.
Example:
The following command restores all terminal settings to their default values:

    default terminal all

end

Exits the current configuration mode and returns to the Exec mode.
Product:

All
Privilege:

Security Administrator, Administrator
Syntax

    end

Usage:

Use this command to return to the Exec mode.
exit

Exits the current mode and returns to the parent configuration mode.
Product:

All
Privilege:

Security Administrator, Administrator
Syntax

    exit

Usage:

Use this command to return to the parent configuration mode.
preferred slot

Assigns revertive or non-revertive control to port redundancy auto-recovery.

Default: non-revertive operation
Platform:

ASR 5000
Product:

PDSN, FA, HA, GGSN
Privilege:

Security Administrator, Administrator
Syntax

    preferred slot slot#

    no preferred slot slot#

no

Disables revertive, or auto-recovery, operation for selected port.
slot#

Identifies the physical chassis slot where the SPIO card is installed.
Usage:

This command enables or disables revertive port redundancy, wherein after a port failover, when the original port is restored to service (such as link up) the system will return service to that port automatically.

Disabled, which is the default setting, causes non-revertive operation; requiring an administrative user to manually issue a port switch to command to return service to the original port.

This command must be issued on a per port basis, allowing you to configure specific ports to be used on individual line cards or SPIO cards. For example, ports 1 through 4 could be configured as “preferred” on the line card in slot 17, while ports 5 through 8 are “preferred” on the line card in slot 33. In this scenario, both line cards would be in an Active operational state while still providing LC and port redundancy for the other.

IMPORTANT:

This command is not supported on all platforms.
Example:

    preferred slot 24

snmp trap link-status

Enables or disables the generation of an SNMP trap for link status changes.
Platform:

ASR 5000
Product:

All
Privilege:

Security Administrator, Administrator
Syntax

    snmp trap link-status

    no snmp trap link-status

no

Disables the sending of traps for link status changes.
Usage:

Enable link status change traps when a monitoring facility can use the information or if there are trouble shooting activities are in progress.
Example:

    snmp trap link-status

    no snmp trap link-status

terminal

Configures the console port on the SPIO.
Platform:

ASR 5000
Product:

All
Privilege:

Security Administrator, Administrator
Syntax

    terminal { carrierdetect { off | on } | databits { 7 | 8 } | flowcontrol { hardware | none } | parity { even | none | odd } | speed { 115200 | 19200 | 38400 | 57600 | 9600 } | stopbits { 1 | 2 } }

carrierdetect { off | on }

Default:

Specifies whether or not the console port is to use carrier detect when connecting to a terminal.
databits { 7 | 8 }

Default: 8

Specifies the number of data bits used to transmit and receive characters.
flowcontrol { hardware | none }

Default: none

Specifies how the flow of data is controlled between the SPIO and a terminal.
parity { even | none | odd }

Default: none

Specifies the type of error checking used on the port.

even: Enables error checking by setting the parity bit to 1 (if needed) making the number of 1s in the data bits even.

none: Disables error checking.

odd: Enables error checking by setting the parity bit to 1 (if needed) making the number of 1s in the data bits odd.
speed { 115200 | 19200 | 38400 | 57600 | 9600 }

Default: 9600

Specifies the flow of data in bits per second between the console port and terminal.
stopbits { 1 | 2 }

Default: 1

Specifies the number of stop bits between each transmitted character.
Usage:

Sets the SPIO console port parameters for communication with the terminal device.
Example:
The following command sets the SPIO’s console port. The terminal must support these values.

    terminal carrierdetect
    off databits 7 flowcontrol hardware parity even speed 115200 stopbits 1