HP-UX Software Assistant Reference (November, 2010)

In SWA versions C.02.80 and later, you may use the string %url to represent the web locations
SWA uses to complete any download. SWA will substitute URL destinations for the %url target
string as it works.
Since the example swa get command does not use the %url target string, SWA appends
the URL destination to the end of the command, which becomes the script argument.
The following procedure is to be run on the system to be analyzed.
1. Create an inventory of the local system, then download the catalog using the gateway
system, run an analysis, and create a report:
# swa report -x download_cmd="ssh user@gateway /opt/perl/bin/GET \"%url\""
2. Review the recommended actions and issues.
3. Download patches using the gateway system and make a depot on the local system:
# swa get -t target_depot -x download_cmd='/usr/local/bin/myGetScript.sh'
where myGetScript.sh could be
#! /usr/bin/sh
URL=$1
ssh user@gateway 'wget O \'$URL\' '
4. Continue with the patch installation procedure.
-x ftp_proxy=${proxy}
Usage: Advanced
Proxy host and port (with optional HTTP basic authentication username and password) for
accessing content using the FTP protocol. No proxy information is specified by default.
The following format is used:
service://[user:password@]proxy-server:port
For example: ftp_proxy=http://web-proxy.mycompany.com:8088
The use of ${proxy} for this option value is substituted with the value of the proxy option
(which is not set by default).
-x hp_id=
Usage: Advanced
Use this option to specify your ITRC User ID to gain access to the ITRC patch database.
-x hp_pw=
Usage: Advanced
Use this option in conjunction with hp_id to specify your ITRC password.
-x https_proxy=${proxy}
Usage: Advanced
Proxy host and port (with optional HTTP basic authentication username and password) for
accessing content using the HTTPS protocol. No proxy information is specified by default.
The following format is used:
service://[user:password@]proxy-server:port
For example: https_proxy=http://web-proxy.mycompany.com:8088
If username and password are specified as authentication credentials to your proxy server,
HTTP basic authentication is used, which is a clear-text protocol, (that is, your password may
be visible to others on your network). Also, credentials specified on the command-line are
visible to other local users, and access to credentials stored in extended option files are
determined by their permissions. If your proxy server requires another type of authentication,
see the -x download_cmd option.
The use of ${proxy} for this option value is substituted with the value of the proxy option
(which is not set by default).
19