webclient
Syntax
webclient[-g
URL][-o
file]|[-m][-l]
Description
Downloads files from HTTP or FTP, and mounts an ISO file system.
Options
-g
Retrieves a document specified by the URL.
URL
Specifies the hypertext address of the document to retrieve. This can be either an IPv4 address or host name.
-o
Redirects output to a specified file.
file
Specifies the file name to which output is redirected.
-m
Downloads and mounts an ISO file as a file system.
-l
Displays information on the network settings used.
Usage
You do not need to use
ifconfig
on a network interface if you plan to run
webclient
or
ftp
over the same interface because these interface and IP address settings are automatically selected by the
Pre-Boot Network Settings configured in the System Utilities.
If the interface used by
ftp
and
webclient
happens to be configured by
ifconfig
, that setting is erased and, instead, the System Utilities
Pre-Boot Network Settings menu is applied on the interface when the commands are run.
This command enables scriptable network transfers. A key benefit of using this command is that you can specify a URL with an HTTP address to retrieve a document, output it to a file at that address, and download a file or mount an ISO file. Press ESC or Ctrl-C to cancel a file transfer. For FTP URLs, authentication by supplying a user-name and password in clear text in the URL is supported. The maximum size of a file that can be saved to a FAT32 partition is 4 GB. You must use an IPv4 address.
Examples
To download an ISO file from an HTTP or FTP server and mount an ISO file system:
fs0:\> webclient -g http:\/\/192.168.1.20/filename.iso -m
or
fs0:\> webclient -g http:\/\/www.hpe.com/filename.iso -m
or
fs0:\> webclient -g ftp:\/\/192.168.1.20/filename.iso -m
To download a file from an FTP or HTTP server and save it to the current file system:
fs0:\> webclient -g http:\/\/192.168.1.20/file.html -o file.html
or
fs0:\> webclient -g ftp:\/\/192.168.1.20/file.html -o file.html
or
fs0:\> webclient -g ftp:\/\/ftp.hpe.com/file.html -o file.html
To download a file from an FTP server with the user-name
user
and a password of
pass
:
fs0:\> webclient -g ftp:\/\/user:pass@192.168.1.20/file.html -o file.html
To display the network settings:
fs0:\> webclient -l