4.4.3 128-Port Asynchronous Adapter Considerations

4.5 Adding a TTY Device

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 28 will be shown:



    Figure 28: Adding a TTY

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

  4. Change the TERMINAL Type parameter to the type of terminal you are using. This parameter is very important since you might not be able to use all the keys on your terminal if this parameter 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:
    export $TERM=ibm3151.
    

  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, 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

Where <tty name> can be determined by using the command tty or by listing all the TTYs and then selecting the TTY you want to remove.

4.6 Adding a Tape Drive