Cisco Systems 2.1(1) manual To Access CP from the Dashboard, Using CP Command Line Options, 202

Models: 2.1(1)

1 287
Download 287 pages 15.85 Kb
Page 216
Image 216

Chapter 14: - Using 3rd Party Common Tools

cp

Note: If the environment variable CHMOD exists, its value is used to establish default options.

cp

Note: This tool can be used in both Interactive Mode and Batch Mode. For details on scheduling this tool to run in batch mode see Using Batch Mode.

Use the CP utility to copy files.

To Access CP from the Dashboard

To run CP from the Support Tools Dashboard:

Step 1 In the Arguments field, enter desired arguments, as described in the Using section below.

Note: When entering arguments, the CP command is already implied. Do not enter it in the Arguments field.

Step 2 Specify the command duration time or accept the default (60 seconds). This is the amount of time the command will attempt to run before terminating.

Step 3 If desired, check Elevate Command Priority. This ensures the command will run regardless of the level of server activity.

Step 4 Click the Run button.

Using CP - Command Line Options

cp [-ifprv?] file1 file2

cp [-ifprvd?] file1 fileN directory

If the last file is a directory, each file is copied into a file in the destination directory with the same name.

If only two files are specified, file1 is copied to file2.

If more than two files are specified, the last file must be a directory.

The options for CP are:

-i: ask for confirmation before overwriting each destination file.

-f: copy the file, don't ask for confirmation even if it will overwrite a file marked Read-Only.

-p: preserve the source attributes and last modified date and time for the destination file. This is the default. To turn if off use -p-.

Cisco Support Tools User Guide for Cisco Unified Software Release 2.1(1)

202

Page 216
Image 216
Cisco Systems 2.1(1) To Access CP from the Dashboard, Using CP Command Line Options, Use the CP utility to copy files, 202