• No se han encontrado resultados

NORMAS TÉCNICAS PERUANAS NTP RELACIONADAS AL TOMO IV DEL CODIGO NACiONAL De ELECTRiCIDAD (*)

PRESTACION DEL SERVICIO PUBLICO DE ELECTRICIDAD

The UNIX System must be configured in MULTI-USER mode with the print scheduler running.

Change to the /tmp directory, then copy the AXEL diskette files to the hard disk:

# cd /tmp <CR>

# tar xvf /dev/fdx <CR>

where fdx is the device name for the diskette.

Invoke the installation script: # ./install

From the menu, select the language to be used (English or French) and the UNIX operating system (AIX, SCO, etc) under which the servers are to run. The two servers and the AXEL configurator will then be copied to the /etc

directory.

The AXEL configuration utility (/etc/axconf) is automatically run. The following menu appears:

1) Help

2) Show the Current Configuration 3) Add a Platine/Device Association 4) Add a System Printer

5) Remove a Platine/Device Association 6) Remove a System Printer

7) Quit

Note: the configuration process depends on which UNIX system has been

selected. This menu is different when this AXEL utility is run under AIX (refer to Chapter 8.3.3).

8.3.1 - Platine/Device Association

Option 3 allows a Platine/Device Association to be added. Five parameters are required:

- AXEL Server:

Select the required AXEL server (printd or ttyd) according to the Terminal Set-Up of the Platine terminal.

- AXEL Platine:

Enter the name of the target Platine. If this name is not listed in the

/etc/hosts file, the axconf utility adds it, with its associated IP address.

- TCP Port Number:

Enter the TCP Port Number for the auxiliary port to be used. This is the number entered through the Platine terminal Set-Up.

- Device:

Enter the device type (pseudo-terminal or named pipe), then enter the name of the device.

Note: if the printer is a pseudo-terminal, the device filename used should be the master part name (such as /dev/ptypx).

- Logfile:

This optional file is used to record AXEL server events. Enter the logfile name or press <RETURN> if logging is not required.

Every association created is stored in the file /etc/rc2.d/S90axel (/etc/rc.axel under AIX). The associations are then made by running this file automatically during system start-up

It is also possible to run the daemon immediately (so as not to wait until the system is rebooted).

Note: to remove a Platine/Device association, use option 5.

The UNIX System can now access the peripheral, attached to the Platine terminal, through the device controlled by the AXEL server.

Note: if this device is a pseudo-terminal, the slave part (/dev/ttypx) of the device name must be used.

a) Using a Printer

The most common requirement is to declare a printer attached to the Platine terminal. This printer can be added using the UNIX System Management Tool.

Note: a printer can also be created or removed through options 4 and 6 of the

AXEL utility. Use these options only when the printer device is a named pipe and use the UNIX System Management Tool when the printer device is a pseudo-terminal.

Note: on Solaris 1 and 2, a system printer may only be attached to a pseudo-

terminal, not to a named pipe. b) Other uses

Peripherals, other than simple printers, can be attached to the Platine terminal. For example, bi-directional peripherals such as PostScript printers, touch screens and serial terminals, can be controlled through the ttyd AXEL server. These peripherals may be monitored in a totally standard manner, because they are accessed through a device.

8.3.2 - IBM AIX: Platine/Printer Association

Under IBM AIX, the /etc/axconf main menu is displayed as follows:

1) Help

2) Show the Current Configuration DAEMON Monitoring 3) Add a Platine/Device Association 4) Add a System Printer

5) Remove a Platine/Device Association 6) Remove a System Printer

PIOBE Monitoring 7) Add a Platine/Printer Association 8) Remove a Platine/Printer Association 9) Quit

For DAEMON Monitoring (options 3, 4, 5 and 6) refer to the previous chapter. PIOBE monitoring associates a Platine terminal with a printer (not with a device). The main benefit of this method is that the AXEL server is not a daemon (a background process) but a simple printer interface program.

By selecting option 7 in the configuration menu, a Platine/Printer Association can be created. Three parameters are needed:

- AXEL Platine:

Enter the name of the target Platine. If this name is not listed in the

/etc/hosts file, the axconf utility adds its name to the associated IP address.

- TCP Port Number:

Enter the TCP port number for the auxiliary port to be used. This is the number entered through the Platine terminal Set-Up .

Note: the chosen port must be controlled by the printd service.

- Logfile:

This optional file is used to record all AXEL server events. Enter the logfile name or press <RETURN> if logging is not required.

- Printer:

Enter the characteristics of the new printer: - the name,

- the model (the default value is 4201-3). - the type (the default value is asc).

Note: to discover all available printer types and printer models on your system,

study the files in the /usr/lpd/pio/predef directory.

Printers controlled by the AXEL server are addressed with the lp and

associated commands, like any system printer: $ lp -d printer_name file

- 9 -

Documento similar