Cisco Support Tools 1.0 User Guide How to Use the Log Collection Utility from a Command Line 148
Command: Description: Example:
appserver Optionally Specifies the system on which the
utility should run. If not specified, the utility is
run on the local system.
>lctool <app_servername>
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,
ccolreq Opens a session for creating a log collection
request. >ccolreq
<new_collection_name>
Note: Maximum length for
name is 32 characters
add_log_group, alg Adds one log group from the application server's
Repository into current log collection. Each log
group must be added on a separate line.
>alg <log_group_name>
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
request. >lslg
add_request_description,
lcdesc Optionally, sets a description for current log
collection. >lcdesc <description>
set_icm_binary, bin
/off
/on
Optionally, sets the icmBinary flag ON or OFF.
ON causes ICM logs to include binary data. If not
specified, defaults to off.
>bin /on
set_log_range, range
/start_date
/start_time
/end_date
/end_time
/all
Specifies the date/time range for logs to collect.
/start_date, /start_time, /end_date and
/end_time are all required.
Date format is mm/dd/yyyy. Time format is
hh:mm.
Optionally, you can specify /all in place of
specific dates/times.
>range /start_date
mm/dd/yyyy /start_time
hh:mm /end_date mm/dd/yyyy
/end_time hh:mm
set_merge_logs, merge
/off
/on
Optionally, set merge flag ON or OFF. On causes
logs to be merged. If not specified, defaults to
off.
>merge /on
submit_collection_request,
submit Submits the current collection request to
application server to start the log collection. >submit
discard_collection_request
, discard Discards and closes the current collection request
without exiting the Log Collection utility. >discard
list_logs, lslc List information, including status, of all log
collections in the application server's Repository. >lslc
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 Repository. >rem <collection_name>