System Administration Guide, Volume 2

How to Adjust the Printer Port Characteristics

  1. Log in as superuser or lp on the print server.

  2. Adjust the printer port characteristics by using the lpadmin command.


    # lpadmin -p printer-name -o "stty=options"
    

    -p printer-name

    Name of the printer for which you are adjusting the port characteristics. 

    -o "stty=options"

    Sets the port characteristic (stty option) specified by options.You can change more than one stty option setting with this command. Enclose each option in single quotation marks and use a space to separate the options. See stty(1) for a complete list of options. Table 7-1 shows the default stty settings used by the LP print service.

  3. Verify that the printer port characteristics have been changed by using the following command.


    # stty -a
    

Examples--Adjusting the Printer Port Characteristics

In the following example, the command sets the port characteristics for the printer luna. The parenb option enables parity checking/generation, parodd sets odd parity generation, and cs7 sets the character size to 7 bits.


# lpadmin -p luna -o "stty='parenb parodd cs7'"

In the following example, the command sets the terminal baud rate to 19200 for the printer venus.


# lpadmin -p venus -o "stty=19200"