Zhone 5100 参照マニュアル

ページ / 186
CHAPTER 1
System commands
28    
Vpacket 5100/6100 Series Reference Manual
Uploading files
You can upload a file, including image files (executable operating code with the suffix “.bin”) or 
configuration files (with the suffix “.cfg”), to a network host by issuing the upload command. 
If a source file is not provided, the current Flash version of the operating code is used.
The FTP settings are used unless a substitute is provided. The configuration and image keywords 
provide a shortcut for three purposes: the user doesn't need to worry about being in the right 
directory (the transfer is always done to the proper directory) or set the mode of transfer, and the 
regular use of a well-known FTP site streamlines operations.
Syntax: upload [server <server IP address>] [filename on server] [filename on VDR] 
[username <user>] [password <password>] [binary] [reboot] [configuration] [image]
Arguments:
<server IP address>] 
IP address of the FTP server configured in set ftp if one is not 
specified
[filename on server] 
if not provided, the filename is taken from the set ftp 
commands
[filename on the VDR] 
if not specified, the filename for the server is used. If the 
filename on the VDR is to be different both filename must be 
specified.
[username <user>]
username to use to login to the server (the FTP setting is used if 
this is not specified).
[password <password>]
password to use to login to server (the password from FTP is 
used if not provided)
[binary] 
Tells FTP to use binary mode to transfer the file.
[reboot] 
reboots the system after the upload is complete
[configuration] 
sets up an upload of the main.cfg file from the VDR to the 
remote host/system. The VDR expects the transfer mode and 
the destination directory; it uses the FTP settings for server, 
and so forth, unless individual items are overridden. For 
example upload configuration would upload the main.cfg file 
from the config directory from the VDR to the FTP server 
using the user and password from the FTP settings. 
[image]
uses the filename configured from set ftp and the other FTP 
settings (unless overridden)
Example:
VPacket# upload image s020101.bin
Starting upload of s020101.bin to s020101.bin
File s020101.bin successfully uploaded to s020101.bin
VPacket# upload configuration config2.cfg
Starting upload of config2.cfg to config2.cfg
File config2.cfg successfully uploaded to config2.cfg
VPacket#