HP-UX Reference (11i v2 07/12) - 1M System Administration Commands N-Z (vol 4)
s
swa-get(1M) swa-get(1M)
-x download_cmd=
Usage: Intermediate
Specifies a command that can download a URL from the Internet. The command is enclosed in single
quotes (’). This option is useful in cases where a system does not have a direct connection to the Inter-
net, but can execute a command that can download a URL from the Internet (for example, by using a
gateway machine).
Using this option overrides many options which are used by the internal SWA download functionality,
including proxy and CRL configuration.
This command should take one option that is supplied by SWA (the URL of a file to download), and
outputs that file to its standard output. If the actual command in your environment behaves
differently, it can be wrapped by a shell script in order to provide the interface that SWA needs.
The command needs to support the protocol specified by the
catalog_source
option (default
HTTPS) for catalog retrieval and FTP for patch retrieval. See swa-report(1M) for information about
the
catalog_source
option.
Note: Externally used commands are not necessarily supported by HP, but can give considerable
flexibility for your environment. For example, some external commands can authenticate using Win-
dows NT-based domain passwords to a Microsoft web proxy, which is not directly supported by
SWA.
The following command is an example:
swa report -x download_cmd=’ssh user@system curl’
This command uses SSH (see ssh(1)) to run the curl command on a gateway system. The
curl
command is an open source tool that ships with several Linux distributions.
curl may be configured,
either using a configuration file on the gateway system or by command-line parameters specified as
part of the
download_cmd option.
-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 FTP protocol is used for patch download. Integrity of the patches is checked using MD5 secure
hashes in the catalog, for which the HTTPS protocol is recommended. See the https_proxy
option and the catalog_source
option for details. See swa-report(1M) for information about the
catalog_source option.
The use of ${proxy} for this option value is substituted with the value of the proxy
option (which
is not set by default).
-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).
384 Hewlett-Packard Company − 3 − HP-UX 11i Version 2: December 2007 Update