[Top] [Table Of Contents] [Prev] [Next] [Index]

Parallel Port        7


This chapter describes how to use the command line interface to configure the P0 parallel port included on some PortMaster products. Detailed command definitions follow a command summary table.

Displaying Parallel Port Information

The following command is available to show the configuration of the parallel port:

Summary of Parallel Port Commands

The parallel port commands in Table 7-1 configure the parallel port P0. See Table 1-1, "Configurable Ports Available for Each PortMaster Model," on page 1, for the range of ports available on each PortMaster model.  
Parallel Port Configuration

Command Syntax

 

reset p0

- see page 2-15

save p0

- see page 2-18

set p0 device Device

- see page 7-2

set p0 disabled

- see page 7-2

set p0 disconnect Seconds|infinity

- see page 7-3

set p0 extended on|off

- see page 7-4

set p0 host default|prompt|[1|2|3|4] Ipaddress

- see page 7-4

set p0 service_device netdata|portmaster|rlogin|telnet [Tport]

- see page 7-5

show all

- see page 2-21

show p0

- see page 2-34

Parallel Port Commands

These commands are used to configure the parallel port (P0) of the PortMaster.

set p0 device

This command sets the parallel port to operate as a host-controlled device.

set p0 device Device

Device

Device designation-for example, /dev/ttyrf.

Usage

In the following example, a PortMaster host device /dev/ttyrd is shown. To use the PortMaster device service, you must have the PortMaster in.pmd daemon installed on the specified host.

Example

Command> set p0 device /dev/ttyrd
Port type for port P0 changed from Device to Host Device(/dev/ttyrd)

set p0 disabled

This command disables the parallel port.

set p0 disabled

Usage

This command disables the parallel port. To enable the port, set it as a host device-for example, set p0 device /dev/ttyrd.

Example

Command> set p0 disabled
Port type for port P0 changed from Device to Disabled

See Also

set p0 device - page 7-2

set p0 disconnect

This command sets the disconnection timeout for the parallel port.

set p0 disconnect Seconds|infinity

Seconds

Number of seconds. Default is 120.

infinity

Infinite timeout. This setting effectively disables a disconnection timeout.

Usage

The timeout feature disconnects a session from the port when the port has been inactive-flow control-for the designated time. The port is then available for other sessions.

The infinite timeout feature is useful, for example, for printers that go offline when they run out of paper, but that you do not want to disconnect and thereby terminate the print job.

Example

Command> set p0 disconnect 240
Disconnect timeout for port P0 changed from 120 to 240

set p0 extended

This command sets the extended display mode on or off for the parallel port.

set p0 extended on|off

on

Turns extended mode on.

off

Turns extended off. This is the default.

Usage

When extended mode is on, the show command provides more detailed output.

Example

Command> set p0 extended on
Extended mode for port P0 changed from off to on

set p0 host

This command sets the device host for the parallel port.

set p0 host default|prompt|[1|2|3|4] Ipaddress

default

Uses the default host as device host.

prompt

Displays the host prompt before the login prompt. The user is required to enter a valid hostname or Internet address for a host on the network. Entering PPP or SLIP at the prompt returns a login prompt.

Ipaddress

Uses the host with this IP address or 39-character hostname as device host.

1|2|3|4

Used to specify alternate hosts, with the primary host being 1. The default is 1.

Usage

The host must have the in.pmd daemon installed.

Example

Command> set p0 host 192.168.200.2
Host changed from default to 192.168.200.2 for P0

See Also

set host - page 5-22

set p0 service_device

This command indicates device service to be used by the parallel port.

set p0 service_device netdata|portmaster|rlogin|telnet [Tport]

netdata

Allows netdata connections to this port from the network.

portmaster

Used for host device emulation from a host with the in.pmd daemon installed.

rlogin

Allows rlogin connections to this port from the network.

telnet

Allows Telnet connections to this port from the network.

Tport

Specifies the designated TCP port on the host, from 1 to 65535.

Usage

The host device must be set as the port type for any port that is to act as a host-controlled device on a workstation. This capability allows users to connect through the PortMaster to shared devices such as printers.

Example

Command> set p0 service_device portmaster
Device Service for port P0 changed from to portmaster

See Also

set p0 device - page 7-2



[Top] [Table Of Contents] [Prev] [Next] [Index]

spider@livingston.com
Copyright © 1998, Lucent Technologies. All rights reserved.