Working with UCM CLI: File commands

Posted: 2015-12-04 in Cisco, UCM

Working with UCM CLI: File commands

Wanted to share few tips regarding usage of CLI in CUCM. Use cases for file get/tail/list/delete etc.

It’s much faster to check UCM traces quickly by using the CLI instead of RTMT. Example below shows you how to troubleshoot failed call or any other issue (especially if you need to try and check the traces multiple times).

File locations for different traces may be found in another article below.


  1. Find UCM recent traces.

file list activelog /cm/trace/ccm/sdl date det

04 Dec,2015 10:58:13      180,383  SDL001_100_000186.txt.gz

04 Dec,2015 15:52:47      179,897  SDL001_100_000187.txt.gz

04 Dec,2015 15:52:50           34  SDL001_100.index

04 Dec,2015 16:40:37       25,380  SDL001_100_000188.txt.gzo

dir count = 0, file count = 376


Useful tip.

Sometimes services like DrsMaster or DsrLocal are in running state, but UCM has issues with DRS web menus or backups. Good thing to check is that the logs are generated for the services and if there are not – it’s an indication that the services are stuck.


  1. file tail

Check the debugs in the realtime by specifying the last file

file tail activelog cm/trace/ccm/sdl/SDL001_100_000188.txt.gzo

Or you can specify “recent” keyword and the last file will be used

file tail activelog cm/trace/ccm/sdl recent


  1. file list

To go through the UCM directories use file list.

file list ?

file list activelog /


  1. file view

Sometimes it is worthy to use “file view” to check content in long files.

To verify “.rhosts” and “sqlhosts” files the following command might be used

show tech dbstateinfo

But we need only ccm.log tail output and the beginning and sqlhosts at the end.

file view activelog /cm/trace/dbl/showtechdbstateinfo165422.txt


  1. file dump

Very nice way of checking general information about the system: install time, upgrades done successfully and failures, language files.

file dump install /system-history.log


  1. file get

Sometimes RTMT can not connect to CUCM or customer can not install RTMT, so there is a need to collect the traces by other means. It is quite simple by would like to point out two things: filtering by filename and collected the files for last N seconds, minutes, hours, days.

admin:file get activelog /cm/trace/ccm/sdl/SDL001_100_00018*

Please wait while the system is gathering files info …done.

Sub-directories were not traversed.

Number of files affected: 10

Total size in Bytes: 1562301

Total size in Kbytes: 1525.6846

Would you like to proceed [y/n]? n

Files transfer cancelled.


admin:file get activelog /cm/trace/ccm/sdl/ reltime minutes 15

Please wait while the system is gathering files info …done.

Sub-directories were not traversed.

Number of files affected: 1

Total size in Bytes: 38790

Total size in Kbytes: 37.88086

Would you like to proceed [y/n]? n


  1. file delete

In case some engineer enabled traces, but forgot to put them back common partition might be full. To mitigate that you need to check the trace settings (especially number of files to store and their size) and remove some old logs files.

file delete inactivelog cm/trace/*/*/*/* noconfirm
file delete inactivelog cm/trace/*/*/* noconfirm
file delete inactivelog cm/trace/*/* noconfirm
file delete inactivelog cm/trace/* noconfirm


  1. file search

Search within the traces.

Not using this, but adding for consistency.

file search activelog cm/log/informix/ccm.log block ignorecase



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s