Chapter 12: Using Cisco Tools from a Command Line

How to Use the Log Collection Utility from a Command Line

Table 14: Downloading Collected Logs

Command Option:

Description:

>lctool

Invokes the Log Collection utility.

>ccolreq my_collection_name

Initiates a request for a new collection and specifies the collection name.

>view my_collection

Displays all of the logs collected by a particular collection. You must use the view

 

command prior to downloading a file.

 

Returns output such as shown below. Note the unique index number (0, 1,2) prefacing

 

each log in the collection:

 

Name: "my_collection"

 

Creation time: Thu Sep 2 11:28:17 2006

 

Description:

 

Merge: false

 

Binary for ICM Log: false

 

Selection type: all

 

Including Log Group:

 

[my_group]

 

Collected item:

 

0) ICM : 10.86.128.84 nam50, RouterA, dba

 

1) ICM : 10.86.128.84 nam50, RouterA, et

 

2) ICM : 10.86.128.84 nam50, RouterA, mds

>download /index 0 /filename

Specifies that the log whose index value is 0 should be downloaded from the Repository

c:\my_collection.zip

and saved to the local C drive in a file named my_collection.zip.

 

Note:

 

• To download all logs in the collection, omit the/index option.

 

• You can name the downloaded file anything you like. Its file type, regardless of the

 

extension specified, is always Zip.

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

151

Page 165
Image 165
Cisco Systems 2.1(1) manual 151