set device

Use the set device command to:

Anyone can display the contents of the device table. Root privileges are required to configure devices.

Also see the set chat, set line, and set script commands.

Command Syntax

Configuration Syntax

Enter the set device command as shown below to configure entries in the device table:

set device name=name [baud={no|rate}] [chat={no|index_num|chat_name}] [dialer={no|index_num|script_name}] [ports=range] [newname=newname] [p{1-9}]

Remove Syntax

Enter the set device command as shown below to remove an entry from the device table:

set device rmdevice=on {range=index_range|device=name}

Display Syntax

Enter the set device command as shown below to display entries from the device table:

set device show=on [{range=range|name=name}]

Command Fields

Command Field

Description

baud

no - means the baud rate specified on the set line command will be used.

rate - the baud rate (line speed) when this device is used. This field overrides the baud rate (for this device) defined on the set line command.

The range is 50 to 460,800 bps, and the default is no.

chat

no - means that a chat table entry is not associated with this device.

index_num - a chat table entry (index number) associated with this device.

chat_name - the name of a chat table entry.

The default is no.

dialer

no - means that a dialer script is not associated with this device.

index_num - a script table entry (index number) associated with this device.

script_name - the name of a script

The default is no.

name

Specifies a user-defined name for the device.

newname

Specifies a new name for a previously defined device.

p{1-9}

Integers (1-9) that can be used in the variable fields of login or dialer scripts.

ports

Specifies the port or range of ports available to this device.

range

Specifies a device table entry or range of entries (identified by their index numbers).

rmdevice=on

Removes the device specifies on this field and on the range field.

show=on Displays detailed information on the settings for the specified device.

Command Examples

Displaying the Device Table

In this example, the set device command displays the entire device table.

set device

Displaying an Entry in the Device Table

In this example, the set device command displays a range of entries in the device table.

set device range=4-7

Removing an Entry from the Device Table

In this example, the set device command removes an entry from the device table.

set device rmdevice=on range=2

Configuring a Device

In this example, the set device command configures a device to use a dialer script and to override the baud rate specified on the set line command.

set device name=OutDev ports=3-5 dialer=modemscp baud=19200