databits

To configure the number of data bits in a character for the terminal port, use the databits command. To revert to the default, use the no form of this command.

databits bits

no databits bits

Syntax Description

bits
Number of data bits in a character. The range is from 5 to 8.

Command Default

8 bits

Command Modes

Terminal line configuration mode

Command History

Release
Modification
4.0(0)N1(1a)
This command was introduced.

Usage Guidelines

You can configure the console port only from a session on the console port.

Examples

This example shows how to configure the number of data bits for the console port:

switch# configure terminal
switch(config)# line console
switch(config-console)# databits 7
 

This example shows how to revert to the default number of data bits for the console port:

switch# configure terminal
switch(config)# line console
switch(config-console)# no databits 7
 

Related Commands

Command
Description
show line
Displays information about the console port configuration.