Copy

Use the copy command to copy boot ®les and con®guration ®les to and from remote routers and hosts. To use the copy command, the device must have IP con®gured and running on at least one interface. The device cannot be in Con®g-only mode.

Syntax:

 

copy

con®g

 

[ibd or ®lename]

 

[host-ip-address or ®lename]

Example 1 - Copying from a Remote Router:

Boot config> copy

source filename [CONFIG] 128.185.110.30/ibd/Y17.ldc destination filename IBD/Y17.ldc

Source ®lenameand destination ®lenamemust be one of the following:

con®g Con®guration memory

ibd/®lename

File name on IBD. Include the complete pathname.

IP address/remote

Remote ®le on TFTP host.

path and ®lename

Include the complete pathname.

Note: When copying a ®le to the IBD, the ®le is placed in the largest set of

contiguous free banks. If no banks are available the message COPY error - TFTP Disk Full or IBD full appears on the console.

In the example above, get the source from a remote router whose IP address is 128.185.110.30. The IBD has a ®lename Y17.ldc. The colon (:) is used here as the delimiter. The destination has a ®lename of Y17.cfg.

Example 2 - Copying from a Remote Host:

Boot config> copy

source filename [CONFIG] 128.185.110.30/router/loads/2210.02.cfg destination filename ibd/2210.02.cfg

In the example above, the source has a path and ®lename. The destination is an IBD.

Example 3 - Copying Within a Device:

Boot config> copy

source filename [CONFIG] config

destination filename [CONFIG]? ibd/2210.02.cfg

In the example above, the source is the con®guration memory. The destination is an IBD.

con®g Gets the same result as if you type copy and press the Enter key, except that you do not get prompted for the source ®lename.

98MRS V3.2 Software User's Guide

Page 134
Image 134
IBM SC30-3681-08 manual Copy