HP Visualize J210XC IRIX to HP-UX Migration Guide - Page 24

sbin/mksf, lsdev, ioscan, dev/rmt/1hn, dev/pr6001pm, dev/printer, sbin/insf

Page 24 highlights

Devices The mksf command The mksf command is used to create a device file if the device is already known to the system. Options to /sbin/mksf include: -d Use the device driver specified. A list of device drivers is obtained with the lsdev command. -I Selects card instance -C The device specified belongs to this class. The class is also obtained with the lsdev command. -H Use the hardware path specified. Hardware paths are obtained with the ioscan command. -D Override the default device installation directory and install in directory named -r Create a character (raw) device file -v Use verbose output Examples To create character device file /dev/rmt/1hn for a 6250bpi mag tape drive with a norewind flag on card instance 1: # mksf -d tape2 -I 1 -b 6250 -n -r /dev/rmt/1hn To create a device file name /dev/pr6001pm for an HP 2564B printer (operating with 600 lines per minute): # mksf -d lpr2 -I 1 /dev/pr6001pm To create a device file for a dial-in terminal with CCITT protocol on port 5 of the first MUX: # mksf -d mux -I 0 -p 5 -c -I To create a device file named /dev/printer and map it to the line printer with card instance 2: # mksf -C printer -I 2 /dev/printer To create a device file using the default naming conventions for the tape device at hardware path 56/52.0.0 for raw mode, 1600 bits per inch, and no rewind of close: # mksf -H 56/52.0.0 -r -b 1600 -n The insf command The insf command is used to create a device file if the device has not been assigned yet. It creates the device file and also obtains a card instance number for the device. Options to /sbin/insf include: -d Use the device driver specified. A list of device drivers is obtained with the lsdev command. -C The device specified belongs to this class. The class is also obtained with the lsdev command. -H Use the hardware path specified. Hardware paths are obtained with the ioscan command. -I Selects card instance -k Assign card instance numbers but do not create device file names -e Creates device files for existing devices 19

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125

Devices
19
The mksf command
The
mksf
command is used to create a device file
if the device is already known to the system
.
Options to
/sbin/mksf
include:
-d
Use the device driver specified. A list of device drivers is obtained with the
lsdev
command.
-I
Selects card instance
-C
The device specified belongs to this class. The class is also obtained with the
lsdev
command.
-H
Use the hardware path specified. Hardware paths are obtained with the
ioscan
command.
-D
Override the default device installation directory and install in directory named
-r
Create a character (raw) device file
-v
Use verbose output
Examples
To create character device file
/dev/rmt/1hn
for a 6250bpi mag tape drive with a norewind flag on card
instance
1
:
# mksf -d tape2 -I 1 -b 6250 -n -r /dev/rmt/1hn
To create a device file name
/dev/pr6001pm
for an HP 2564B printer (operating with 600 lines per
minute):
# mksf -d lpr2 -I 1 /dev/pr6001pm
To create a device file for a dial-in terminal with CCITT protocol on port
5
of the first MUX:
# mksf -d mux -I 0 -p 5 -c –I
To create a device file named
/dev/printer
and map it to the line printer with card instance
2
:
# mksf -C printer -I 2 /dev/printer
To create a device file using the default naming conventions for the tape device at hardware path 56/52.0.0
for raw mode, 1600 bits per inch, and no rewind of close:
# mksf -H 56/52.0.0 -r -b 1600 –n
The insf command
The
insf
command is used to create a device file
if the device has not been assigned yet
. It creates the
device file and also obtains a card instance number for the device. Options to
/sbin/insf
include:
-d
Use the device driver specified. A list of device drivers is obtained with the
lsdev
command.
-C
The device specified belongs to this class. The class is also obtained with the
lsdev
command.
-H
Use the hardware path specified. Hardware paths are obtained with the
ioscan
command.
-I
Selects card instance
-k
Assign card instance numbers but do not create device file names
-e
Creates device files for existing devices