Cisco Unified Contact Center Express Command Line Interface Reference Guide, Release 9.0(2)
File Commands
Downloads: This chapterpdf (PDF - 1.11MB) The complete bookPDF (PDF - 2.57MB) | The complete bookePub (ePub - 251.0KB) | Feedback

File Commands

File Commands

file uccx view

This command is used to view custom files created by Unified CCX scripts.

Command Syntax

file uccx view custom_file file-spec

Arguments

  • file-spec—mandatory; the file to view. The file-spec must resolve to a single file. file-spec can contain '*' as wildcards, providing it resolves to a single file

Options

None

Requirements

Level privilege—0

Command privilege level—1

Allowed during upgrade—false

Example

admin:file uccx view custom_file test.txt

file uccx list custom_file

This command will list custom files created by Unified CCX scripts.

Command Syntax

file uccx list custom_file file-spec [options]

Arguments

  • file-spec—mandatory; the file to view. file-spec can contain '*' as wildcards.

Options

  • page—pause output
  • detail—show detailed listing
  • reverse—reverse sort order
  • date—sort by date
  • size—sort by size

Requirements

Level privilege—0

Command privilege level—1

Allowed during upgrade—false

Example

admin:file uccx list custom_file * detail 
08 Dec,2009 16:56:11 0 text.txt 

dir count = 0, file count = 1 

file uccx list prompt_file

This command will list prompt files created for various locales.

Command Syntax

file uccx list prompt_file file_spec [options]

Arguments

  • file-spec—mandatory; the file to view. The file-spec can contain '*' as wildcard.

Options

  • page—pause output
  • detail—show detailed listing
  • reverse—reverse sort order
  • date—sort by date
  • size—sort by size

Requirements

Level privilege—0

Command privilege level—1

Allowed during upgrade—false

Example

admin:file uccx list prompt_file system/G711_ULAW/en_US detail
16 May,2012 17:50:19      <dir>    AA
16 May,2012 17:50:19      <dir>    ICD
16 May,2012 17:50:19      <dir>    ICM
16 May,2012 17:50:19      <dir>    SNU
16 May,2012 17:50:19      <dir>    SSA
16 May,2012 17:50:19      <dir>    UserDialog
16 May,2012 17:50:19      <dir>    gen
05 Dec,2002 06:19:03       13,822  continue_enter_number.wav
05 Dec,2002 06:19:03        7,280  credit_of.wav
05 Dec,2002 06:19:04       18,310  did_not_hear_name.wav
05 Dec,2002 06:19:04       11,430  enter_phone_number.wav
05 Dec,2002 06:19:05       12,926  finished.wav
05 Dec,2002 06:19:05        4,448  goodbye.wav
05 Dec,2002 06:19:06        8,546  name_cancelled.wav
05 Dec,2002 06:19:06       47,572  name_confirm.wav
05 Dec,2002 06:19:07       22,990  name_not_found.wav
05 Dec,2002 06:19:08       36,142  no_phone_number.wav
05 Dec,2002 06:19:08        3,902  of.wav
05 Dec,2002 06:19:09        5,492  past.wav
05 Dec,2002 06:19:09        5,110  pound.wav
05 Dec,2002 06:19:10        8,070  spell.wav
05 Dec,2002 06:19:10       11,524  spell_again.wav
05 Dec,2002 06:19:11       12,724  spell_another.wav
05 Dec,2002 06:19:11        5,596  star.wav
05 Dec,2002 06:19:12       45,074  system_problem.wav
05 Dec,2002 06:19:12        5,038  thankyou.wav
05 Dec,2002 06:19:13        8,910  try_again.wav
05 Dec,2002 06:19:14       51,810  unrecov_error_rec.wav
05 Dec,2002 06:19:14        5,216  welcome.wav
dir count = 7, file count = 22
admin:

file uccx get

This command transfers the custom files created by Unified CCX scripts outside the box.

Command Syntax

file uccx get custom_file file-spec [options]

Arguments

  • file-spec—mandatory; file to transfer. file-spec can contain '*' as wildcards

Options

  • reltime—mandatory; file to transfer, file-spec can contain '*' as wildcards
  • abstime—absolute time to filter
  • match—searc pattern to filter
  • recurs—obtain all the files located in file-spec and subdirectories
  • compress—transfer files as compressed file

Requirements

Level privilege—0

Command privilege level—1

Allowed during upgrade—false

Example

admin:file uccx get custom_file text.txt abstime 00:00:12/01/08 01:00:12/30/08

file uccx tail

This command will tail a custom file created by a Unified CCX script.

Command Syntax

file uccx tail custom_file file-spec [options]

Arguments

  • file-spec—mandatory; file to tail.

Options

hex,[num lines],regexp "expression"

recent: to tail the most recently changed file in the directory.

Requirements

Level privilege—0

Command privilege level—1

Allowed during upgrade—false

Example

Tail file starting with the last 10 lines with pagination enabled:

admin:file uccx tail custom_file text.txt page 102005-08-03 15:01:41,248 DEBUG [main] - cmdMVL size = 0
2005-08-03 15:01:41,248 INFO [main] - adding command in level3 (password/security)
2005-08-03 15:01:41,249 DEBUG [main] - begin for level4, topVL size = 0
2005-08-03 15:01:41,250 DEBUG [main] - begin for level4, topVL size = 0
2005-08-03 15:01:41,256 DEBUG [main] - begin for level3, topVL size = 0
2005-08-03 15:01:41,257 DEBUG [main] - begin for level2, topVL size = 0
2005-08-03 15:01:41,884 INFO [main] - merging complete
2005-08-03 15:06:27,619 INFO [main] - got to save history
2005-08-03 15:06:27,620 INFO [main] - Exiting CLI

file uccx delete

This command deletes a custom file created by a Unified CCX script. The command deletes one or more files on the Unified CCX custom files area.


Note


Files that are in use cannot be deleted.


Command Syntax

file uccx delete custom_file file-spec [options]

Arguments

  • file-spec—mandatory; file to delete. file-spec can contain '*' as a wildcard

Options

  • detail,noconfirm

Requirements

Level privilege—0

Command privilege level—1

Allowed during upgrade—false

Example

admin:file uccx delete custom_file log/*.log det noconfirmdeleting file : log/cli00001.log
deleting file : log/cli00002.log
deleting file : log/cli00003.log
deleting file : log/cli00004.log
files:       found = 4, deleted = 4

file uccx dump

This command will dump the contents of a file on the Unified CCX custom files area.

Command Syntax

file uccx dump custom_file file-spec [options]

Arguments

  • file-spec—mandatory; file to dump

Options

hex,regexp "expression"

recent: to dump the most recently changed file in the directory.

Requirements

Level privilege—0

Command privilege level—1

Allowed during upgrade—false

Example

admin:file uccx dump custom_file text.txt 23640935: Dec 06 22:59:43.407 IST Unable to process call, Exception=java.lang.NullPointerException 
23640936: Dec 06 22:59:43.407 IST java.lang.NullPointerException