XG700 User's Guide
90/266
All Rights Reserved, Copyright (C) PFU LIMITED 2005-2006
5.5.11 tftp put
Function
Uploads the files into the volatile memory to the TFTP server.
Prompt
xg#
Command syntax
tftp put HOST LOCAL-FILE [ REMOTE-FILE ]
Parameter
HOST
Specify the hostname of the TFTP server or IP address.
IP addresses that can be specified are: 1.0.0.1 - 126.255.255.254, 128.0.0.1 - 191.255.255.254, and 192.0.0.1 -
223.255.255.254.
LOCAL-FILE
Specifies a file name to upload.
[ REMOTE-FILE ]
Specifies the file name to use when saving on the TFTP server.
When this parameter is omitted, it will be the same file name as "LOCAL-FILE."
Command type
Operation management commands
Message
% tftp: %1$: Host name lookup failure
Explanation
The specified hostname does not exist.
[[Inserted string]]%1$: specified hostname
Solution
Check whether the specified hostname is correct.
% tftp: server says: %1$
Explanation
An error has been received from the TFTP server.
[[Inserted string]]%1$: content of error message received from the TFTP server.
The content of message depend on the type of the TFTP server. For example, there is a message as below.
−
File not found: There are no files in the TFTP server.
−
Access violation: File permission error has occurred in the TFTP server.
−
Not allowed to overwrite existing files: The file in the TFTP server cannot be overwritten.
−
File already exists: There are files in the TFTP server.
−
Unknown transfer ID: Process will be aborted in time out.
Solution
Take actions in accordance with the message received from the TFTP server.
% tftp: last timeout
Explanation
There is no response from the TFTP server. There is a possibility of network communication error with the
management LAN, or the setting of time out of the TFTP server may be too short.
Solution
Check whether there is no problem in network connection with the TFTP server using the "ping" command. If the
problem persists, review the setting of time out of the TFTP server.
% local file: No such file or directory
Explanation
The specified file does not exist on the XG700.
[[Inserted string]]%1$: specified file name
Solution
Check the status of the file on the XG700.
% Invalid IP-address.
Explanation
The specified format of the IP address or specified content is incorrect.
Solution
Specify the IP address in a correct format and execute it again.
Note
If there are no specified files in the TFTP server, or directories are specified, an error may occur. (it depends on the
functionality of the TFTP server)
When transferring a file with a large file size, if the time out is set short on the TFTP server, an error may occur. (it
depends on the functionality of the TFTP server)
In order to check whether the file has been transferred successfully, check that the file size displayed by the "dir" or "ls"
command is identical to the size of the file transferred onto the TFTP server.
Example
Copy the content of running-config to the file name "run_conf."
Then, upload the copied "run_conf" file with the file name "run_conf_20050822" in the TFTP server called "host1."
xg# show running-config > run_conf
xg# tftp put host1 run_conf run_conf_20050822