Configuring HP-UX For Peripherals
214 Chapter8
Configuring Printers and Plotters
Configuring a Plotter or other Non-Automatically Configurable Output
Devices Using HP-UX Commands
system file from the current kernel and writes a system file in your
current directory. (That is, it creates /stand/build/system.) The -v
provides verbose explanation as the script executes.
cd /stand/build
/usr/lbin/sysadm/system_prep -v -s system
b. Modify the /stand/build/system file to add the absent driver(s) by
invoking the kmsystem command. The -c Y specifies that
driver-name is to be configured into the system.
/usr/sbin/kmsystem -S /stand/build/system -c Y
driver-name
NOTE To avoid introducing format errors, do not edit the HP-UX system
description files directly. Instead, use the commands kmsystem and
kmtune. These commands are new for Release 11.0; consult kmsystem
(1M) and kmtune (1M) in the HP-UX Reference.
c. Build the new kernel by invoking the mk_kernel command. This
creates /stand/build/vmunix_test, a kernel ready for testing.
/usr/sbin/mk_kernel -s /stand/build/system
d. Save the old system file by moving it. Then move the new system file
into place.
mv /stand/system /stand/system.prev
mv /stand/build/system /stand/system
e. Prepare for rebooting by invoking the kmupdate command. This sets a
flag that tells the system to use the new kernel when it restarts.
/usr/sbin/kmupdate
Step 4. Reboot the system by invoking the shutdown command with sufficient
grace period to allow users to exit their files before the system goes down.
See shutdown (1M) in the HP-UX Reference.
Step 5. Bind the software driver used by the plotter (instr0) to the plotter's full
hardware path (56/48.5) by executing /usr/sbin/ioscan with the -M
and -H options. Then verify the results by executing ioscan again.
As shown in the following sequence of commands and ioscan output, the
device driver (instr0) associates with a peripheral device at address
56/48.5. The instr0 driver cannot identify any more specifically what
instrument is attached, but it can communicate with it.