HP Visualize J210XC IRIX to HP-UX Migration Guide - Page 24
sbin/mksf, lsdev, ioscan, dev/rmt/1hn, dev/pr6001pm, dev/printer, sbin/insf
View all HP Visualize J210XC manuals
Add to My Manuals
Save this manual to your list of manuals |
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