Chapter 12: Using Cisco Tools from a Command Line

 

How to Use the Log Collection Utility from a Command Line

Command:

Description:

Example:

/all

 

 

set_merge_logs, merge

Optionally, set merge flag ON or OFF. On causes logs to

>merge /on

/off

be merged. If not specified, defaults to off.

 

 

 

/on

 

 

submit_collection_request,

Submits the current collection request to application server >submit

submit

to start the log collection.

 

discard_collection_request,

Discards and closes the current collection request without >discard

discard

exiting the Log Collection utility.

 

list_logs, lslc

List information, including status, of all log collections in

>lslc

 

the application server's Repository.

 

view_collection, view

Displays detailed information of a specified log collection. >view

 

 

<collection_name>

remove_log, rmlc

Deletes log collection from the application server's

>rem <collection_name>

 

Repository.

 

rename_log, ren

Renames a log collection in the application server's

>ren

 

Repository.

<old_collection_name>

 

 

<new_collection_name>

 

 

Note: Maximum length for

 

 

name is 32 characters

download_log, download

Downloads a specified log file from the application server's

download

/filename

Repository to a local drive.

 

 

 

/index

 

 

xml

Note: This command is not used with the Log Collection

 

 

utility.

 

read_file, read

Directs command input to another input file.

>read <filename>

 

For example, you can direct input to run a batch file that

 

 

contains a series of commands executable by this utility

 

silent

Note: This command is not used with the Log Collection

 

 

utility.

 

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

149

Page 163
Image 163
Cisco Systems 2.1(1) manual Downloadlog, download, 149