HP-UX System Administrator's Guide: Routine Management Tasks
/usr/sbin/swreg -l depot /cdrom
3. Copy all or part of the contents of the DVD to hard disk and use that as a network
software depot. (It is better to copy too much than too little.)
For example, to copy all the software on a DVD into a depot at /usr/main_depot
and automatically register it:
/usr/sbin/swcopy -s /cdrom "*" @ /usr/main_depot
Or, using swcopy in interactive mode (using screens like those you see in snoop):
/usr/sbin/swcopy -i -s /cdrom
Copying Software From Tape
To copy software on tape at /dev/rmt/0m to a depot at /usr/main_depot:
/usr/sbin/swcopy -i -s /dev/rmt/0m @ /usr/main_depot
The program will pause if you need to change tapes. Bring up the “Logfile” while in
swcopy to see the tape-change messages.
More Examples
The first command in the example that follows copies all software (“*”) from the path
/release/11.31/wszx6 at the network source appserver to the target
/mnt1/depot. The second command does the same thing except that it copies only
the software specified in the file /tmp/langJ.
swcopy -s appserver.cup.hp.com:/release/11.31/wszx6 \
"*" @:/mnt1/depot
swcopy -f /tmp/langJ -s hpclpep:/languages/gsJ @:/mnt1/depot
The following example builds a tape from the depot created in the previous example:
swpackage -x target_type=tape -s /mnt1/depot -d /dev/rmt/0m "*"
NOTE: Building a depot on tape or disk is a good use of the capabilities of SD, but
you are taking on some extra responsibility: if you build the depot incorrectly, or
incompletely, and the upgrade fails as a result, HP will not treat this as an SD defect.
About Patches
You can find information about patches at:
• In the US, Canada, Asia Pacific, and Latin America, use:
http://us-support.external.hp.com
• In Europe, use:
http://europe-support.external.hp.com
188 Managing Software