Command:

Description:

Example:

 

 

 

appserver

Optionally Specifies the system on which the

>lctool <app_servername>

 

utility should run. If not specified, the utility is

 

 

run on the local system.

 

 

 

 

system

Note: This command is not used with the Log

 

 

Collection utility.

 

 

 

 

localhost

Note: This command is not used with the Log

 

 

Collection utility.

 

 

 

 

create_collection_request,

Opens a session for creating a log collection

>ccolreq

ccolreq

request.

<new_collection_name>

 

 

Note: Maximum length for

 

 

name is 32 characters

 

 

 

add_log_group, alg

Adds one log group from the application server's

>alg <log_group_name>

 

Repository into current log collection. Each log

 

 

group must be added on a separate line.

 

 

 

 

remove_log_group, rmlg

Removes 1 log group from current log collection.

>rmlg <log_group_name>

 

 

 

list_log_groups, lslg

Lists the log groups in the current collection

>lslg

 

request.

 

 

 

 

add_request_description,

Optionally, sets a description for current log

>lcdesc <description>

lcdesc

collection.

 

 

 

 

set_icm_binary, bin

Optionally, sets the icmBinary flag ON or OFF.

>bin /on

/off

ON causes ICM logs to include binary data. If not

 

specified, defaults to off.

 

/on

 

 

 

 

 

 

set_log_range, range

Specifies the date/time range for logs to collect.

>range /start_date

/start_date

/start_date, /start_time, /end_date and

mm/dd/yyyy /start_time

/end_time are all required.

hh:mm /end_date mm/dd/yyyy

/start_time

Date format is mm/dd/yyyy. Time format is

/end_time hh:mm

/end_date

 

hh:mm.

 

/end_time

Optionally, you can specify /all in place of

 

/all

specific dates/times.

 

 

 

 

set_merge_logs, merge

Optionally, set merge flag ON or OFF. On causes

>merge /on

/off

logs to be merged. If not specified, defaults to

 

off.

 

/on

 

 

 

 

 

 

submit_collection_request,

Submits the current collection request to

>submit

submit

application server to start the log collection.

 

 

 

 

discard_collection_request

Discards and closes the current collection request

>discard

, discard

without exiting the Log Collection utility.

 

 

 

 

list_logs, lslc

List information, including status, of all log

>lslc

 

collections in the application server's Repository.

 

 

 

 

view_collection, view

Displays detailed information of a specified log

>view <collection_name>

 

collection.

 

 

 

 

remove_log, rmlc

Deletes log collection from the application

>rem <collection_name>

 

server's Repository.

 

 

 

 

Cisco Support Tools 1.0 User Guide

How to Use the Log Collection Utility from a Command Line 148

Page 148
Image 148
Cisco Systems 1.0 (1) manual Alg loggroupname