Command Line Interface Basics
Start CLI Session
Access the Cisco Unified Contact Center Express (Unified CCX) Command Line Interface (CLI) either remotely or locally using one of these two methods:
- From an SSH-enabled client workstation, use SSH to connect securely to the Unified CCX.
- Access the Unified CCX CLI directly or by using a terminal server that is connected to the serial port. Use this method if a problem exists with the IP address.
To start a CLI session:
Procedure
Step 1 |
Perform one of the following tasks:
In either case, the system prompts you for a password. |
Step 2 |
Enter password. The CLI prompt displays. The prompt represents the administrator ID, for example: admin: |
Get Help with Commands
You can get two kinds of help for any command:
- Detailed help that includes a definition of the command and an example of its use.
- Short query help that includes only command syntax.
To get detailed help, at the CLI prompt, enter
help command
where command specifies the command name or the command and parameter.
Detailed Help Example:
admin:help file list activelog help: This will list active logging files options are: page - pause output detail - show detailed listing reverse - reverse sort order date - sort by date size - sort by size file-spec can contain '*' as wildcards
admin:file list activelog platform detail 02 Dec,2004 12:00:59 <dir> drf 02 Dec,2004 12:00:59 <dir> log 16 Nov,2004 21:45:43 8,557 enGui.log 27 Oct,2004 11:54:33 47,916 startup.log dir count = 2, file count = 2
Note |
If you enter the help command without specifying the name of a particular command as the optional parameter, the system provides information about the CLI system. |
To query only command syntax, at the CLI prompt, enter
command ?
where command represents the command name or the command and parameter.
Query Example
admin:file list activelog?Syntax: file list activelog file-spec [options] file-spec mandatory file to view options optional page|detail|reverse|[date|size]
Note |
If you enter a ? after a menu command, such as set, it acts like the Tab key and lists the commands that are available. |
Exit Command with Ctrl-C Key Sequence
You can stop most interactive commands by entering the Ctrl-C key sequence.
admin:utils system upgrade initiate Warning: Do not close this window without first exiting the upgrade command. Source: 1) Remote Filesystem 2) DVD/CD q) quit Please select an option (1 - 2 or "q"): Exiting upgrade command. Please wait... Control-C pressed admin:
Note |
If you execute the command utils system switch-version and enter Yes to start the process, entering Ctrl-C exits the command but does not stop the switch-version process. |
End CLI Session
To end the CLI session, enter quit at the CLI prompt.
If you are logged in remotely, you get logged off, and the SSH session is terminated. If you are logged in locally, you get logged off, and the login prompt appears.
Additional CLI Commands
Besides the commands available on Unified CCX , more commands are available that can be executed as a part of Unified Operating System. For detailed information about all the CLI commands available for the Cisco Unified Operating System, see the Command Line Interface Reference Guide for Cisco Unified Communications Solutions available here:
https://www.cisco.com/en/US/products/sw/voicesw/ps556/prod_maintenance_guides_list.html
The following Unified Operating System commands are not applicable to Unified CCX :
-
delete dscp
-
file delete license
-
file get license
-
file list license
-
file view license
-
set cert bulk
-
set dscp
-
set network cluster publisher
-
set network dhcp
-
set network ipv6 dhcp
-
set network ipv6 service
-
set network ipv6 static_address
-
show ctl
-
show dscp
-
show itl
-
show network ipv6 settings
-
show tech ccm_service
-
run loadxml
-
utils sso unavailable
Important |
When file get CLI command is used with the abstime as an option to collect log files, this filters the files based on the last modified timestamp. If the last modified time is updated, this CLI may not give desired results. Use the log collection feature in RTMT instead to collect the log files. |