Installing HP-UX 11.0 and Updating HP-UX 10.x to 11.0 HP 9000 Computers Edition 1

Appendix C 257
Ignite-UX System Administration
Section 5: Post Install Scripts
It will then show up in the Advanced tab for all configurations.
NOTE Scripts are accessed by Ignite-UX via tftp. Make sure the directory the
script resides in is available to tftp by examining and/or changing the
/etc/inetd.conf file.
2. Managing Network Printers
One task an administrator generally needs to perform after a new OS
installation is setting up printers. Here is one method you can use to
automate this process.
Write a script which performs the HP-UX commands for adding a
printer. Attached below is a script for adding a remote printer named
“printbob”, and turning on the lp scheduler. We found that the easiest
method for creating the sequence of commands for the script was to use
SAM. We turned on SAM logging for “commands-only”, performed the
tasks desired, and then extracted those commands from the SAM log file.
Here is our script for adding “printbob” to all systems:
#!/sbin/sh
# Post process IUX script to add a local default printer
# Performing task “Add Remote Printer”: Adding “printbob”
#
/usr/sbin/lpadmin -pprintbob -ormhpfcmgw.fc.hp.com -orptsslj
-mrmodel \ -v/dev/null -orc -ocmrcmodel -osmrsmodel
/usr/sbin/lpadmin -dprintbob
/usr/sbin/accept printbob
/usr/bin/enable printbob
# Turn on lp scheduler
#
lpsched -v