set-device

set-device


set-decimal Index Level set-dozens
Syntax set-device {?} {(options}
set-device {device} {(options}
set-device {keyword} {(options}
Category TCL
Type Verb
Description attaches the sct, floppy or half-inch or special devices.

This command is a more generalized form of the standard "set-half", "set-sct", "set-8mm" or "set-floppy" commands.

"device" may be expressed as a number, through options or by up to three keywords extracted from the fields DEVICE, TYPE or OPTIONS in the list-device command. Devices are numbered from 0 to 9 as they appear in the configuration file. Note that the options may not allow complete selection. If a system has two identical devices, for example, two 5 1/4" floppy drives, the options will select only the first. The form with a device number must be used for these cases, using either the device number or the Unix device name as keyword. If no argument is provided, "set-device" simply lists the currently defined devices, as list-device.

"device" is a device number, from 0 to 15, obtained from the "list-device" command or can be composed of up to three keywords identifying the device.

The available keywords are:  720k, 1.2M, 1.44M, 3 1/2", 5 1/4",  floppy, sct, 8mm and "half inch". As of release 6.0, 2.88 megabyte diskette drives are supported.
Options 3  3-1/2" floppy.

5  5-1/4" floppy.

9  9-track, 1/2" tape.

a  5-1/4" floppy.

b  3-1/2" floppy.

c  Changes the 8mm tape block size. The current tape block size is displayed and the operator is prompted for the new block size (0 or 512). On D3/Unix Systems, the default block size is set at "0" (zero) at install time. Zero means variable-length.

e  Selects 2.88mb floppy. (releases 5.2.5 and higher only).

f  Floppy (3-1/2" or 5-1/4" as default)

h  High density (1.44M for 3-1/2" floppy, 1.2M for 5-1/2" floppy, 6250 bpi for 9-track tapes, 150M for Quarter Inch tapes).

i  Suppresses display of devices after the command is complete (used in macros).

k  Hard disk "pseudo" tapes. These devices are removable or fixed hard disks or regular Unix files. Their size is fixed and determined by the device or by the maximum file size for a user. The main usage for these devices is for small, fast t-dumps/saves, transaction logging or incremental saves.

l  Low density (720K for 3-1/2" floppy, 1600 bpi for 9-track tapes).

m  Medium density (720K for 5-1/4" floppy, 3600 bpi for 9-track tapes).

n  Network "pseudo" tape. This device has an 'infinite' size. It is assumed another system is reading the data at the 'other end' of the network.

q  quarter Inch tape.

r  Prevents an automatic rewind on the device. This option must be used to set the device to a floppy with an unformatted floppy disk in the drive.

s  Standard density (360 for 5-1/2" floppy, 60M or 120M for quarter-inch (SCT) tapes.
See Also list-device set-half file-save admin.tape tape handling verbs fuser WRITET admin.tape.setup :files set-8mm sel-restore READTL READTX u313c ue070 chg-device tape set-floppy set-sct t-select config tape t-stat account-restore transaction logger t-att t-copy
Example set-device floppy 1.44m
Selects the 3 1/2" floppy.

set-device rmt0
Selects the tape device associated with the Unix device /dev/rmt0.

On release 7.0 and later:
set-device 0
Block size: 500
[1701] Tape device is assigned to 3 1/2" high density (1.44M) floppy drive.

Tape        Status           16 Jan 1997  14:30:40                            
#   Type             Density           Owner   Device Name                   
----------------------------------------------------------------------
0 | Floppy         | 3 1/2" 1.44M    | 191*+ | /dev/rpdsk/4                  
1 | Quarter Inch   | High            |       | /dev/rmt/0n                   
2 | 4mm DAT        |                 |       | /dev/rmt/1n                   
3 | 4mm DAT        ‚                               | /dev/rmt/1un                  
4 | 8mm Tape       |                 |       | /dev/rmt/2n                   
5 | 8mm Tape       |                 | 141   | /dev/rmt/2un                  
6 | Floppy         | Pseudo Floppy   |       | /usr/opt/pick/bin/abs         
7 | Floppy         | Pseudo Floppy   |       | /usr/opt/pick/bin/data
8 | Floppy         | Pseudo Floppy   |       | /usr/opt/pick/bin/ref
9 | Network        |                 |       | /home/tmp/pipein              
10 | Floppy         | Pseudo Floppy   | 191*  | /home/tmp/floppy              
11 | Floppy         | Pseudo Floppy   |       | /n/dev/home/tmp/floppy        
----------------------------------------------------------------------

Selects the tape device associated with the unix device /dev/rpdsk/4
The "Owner" column displays the pib number that has use of the device, and a "*" indicates that this pib is the current process. A "+" indicates that this device is the "active" device (as a pib can attach more than one device).
Warnings
Compatibility D3/Unix AP 6.1 D3 7.0
set-decimal Index Level set-dozens