Software Distributor Administration Guide HP-UX 11i v1, 11i v2, and 11i v3 (5900-2561, March 2013)

11.11.1 swask Examples
Run all request scripts from the default depot (/var/spool/sw) and write the response file
(response) back to the same depot:
swask -s /var/spool/sw \*
Run the request script for Product1 from depot /tmp/sample.depot.1 on remote host
swposix, create the catalog /tmp/test1.depot on the local controller machine, and place
the response file (response) in the catalog:
# swask -s swposix:/tmp/sample.depot.1 \
-c /tmp/test1.depot Product1
Run request scripts from remote depot /tmp/sample.depot.1 on host swposix only when a
response file is absent, create the catalog /tmp/test1.depot on the local controller machine,
and place the response file (response) in the catalog:
# swask -s swposix:/tmp/sample.depot.1 \
-c /tmp/test1.depot -x ask=as_needed \*
11.11.2 swinstall Examples
To install all the software from local depot tmp/sample.depot.1 using any response files
generated by request scripts:
# swinstall -s /tmp/sample.depot.1 -x ask=true \*
To install Product1 from remote depot /tmp/sample.depot.1 on host swposix and use an
existing response file (previously generated by the swask command) located in /tmp/bar.depot:
# swinstall -s swposix:/tmp/sample.depot.1 \
-c /tmp/bar.depot Product1
To install all products in remote depot /tmp/sample.depot.1 on host swposix, use any
response files generated by request scripts, create catalog /tmp/bar.depot and copy all response
files to the new catalog:
# swinstall -s swposix:/tmp/sample.depot.1 \
-c /tmp/bar.depot -x ask=true \*
To install all products in remote depot /tmp/sample.depot.1 on host swposix, use response
files, run request scripts only when a response file is absent, create catalog /tmp/bar.depot
and copy all response files to the new catalog:
# swinstall -s swposix:/tmp/sample.depot.1 \
-c swposix:/tmp/bar.depot -x ask=as_needed \*
11.11.3 swconfig Examples
To configure Product1, use any associated response files generated by a request script, and
save response files under /tmp/resp1:
# swconfig -x ask=true -c /tmp/resp1 Product1
11.11 Request Script Tasks and Examples 229