3.7.3 Using the System Log

3.8 Setting Up an ASCII Terminal

The 3151 display can connect directly, or through a modem, to an AIX system. The connection to the AIX system can be made to one of the native serial ports as shown in Figure 13 or to an asynchronous adapter as shown in Figure 14. Additionally, a printer can be connected to the 3151 display and is supported by AIX as Terminal Attached Printing as displayed in Figure 13.



Figure 13: Attaching a Serial Terminal to an RS/6000 System





Figure 14: Terminal Connection to Direct-Attached Asynchronous Adapter

In order to add a tty, use the following procedure:

  1. Issue smitty tty and select Add a tty or smitty maktty.

  2. The system will ask you for the tty type and the parent adapter. Select both and press Enter.

    A screen similar to Figure 15 will be shown:



    Figure 15: Adding a TTY

  3. Select the port number you want this tty to be added to in the PORT number field. For RANs, follow the location code rules to select the appropriate port number.

  4. Change the TERMINAL Type field to the type of terminal you are using. This field is very important since you might not be able to use all the keys on your terminal if this field is set incorrectly. The TERM environment variable stores this setting. You can change the terminal emulation setting by using your TERM environment variable and using the export command to store the terminal emulation you want to use. For example, in order to use ibm3151 terminal emulation, use the command:
    TERM=ibm3151; export TERM
    

  5. Set the line speed and the kind of communication (1/8/N or 1/7/E) for your terminal and press Enter.

    This will create a device special file in the /dev directory and add an entry to the /etc/inittab file in order to run the getty process on your terminal so that your terminal is available at system startup. It also adds another entry to the customized ODM (CuDv) database for the terminal you have just added.

You can also add a tty directly on the command line. In order to add an ibm3151 RS232 terminal using adapter sa0 and port s1 with login enabled use the following command:

mkdev -c tty -t tty -s rs232 -p sa0 -w s1 -a login=enable -a term=ibm3151

You can remove a terminal by using the command:

rmdev -l <tty name> -d

On the ASCII terminal, set the communications options as follows:

Line Speed (baud rate) = 9600
Word Length (bits per character) = 8
Parity = no (none)
Number of Stop Bits = 1
Interface = RS-232C (or RS-422A)
Line Control = IPRTS

Set the keyboard and display options as follows:

Screen = normal
Row and Column = 24x80
Scroll = jump
Auto LF (line feed) = off
Line Wrap = on
Forcing Insert = line (or both)
Tab = field
Operating Mode = echo
Turnaround Character = CR
Enter = return
Return = new line
New Line = CR
Send = page
Insert Character = space

Note

If your terminal is an IBM 3151, 3161, or 3164, press the Ctrl+Setup keys to display the Setup Menu and follow the on-screen instructions to set these fields.

If you are using some other ASCII terminal, refer to the appropriate documents for information about how to set these fields.

3.9 Quiz