Académique Documents
Professionnel Documents
Culture Documents
Often times, it's necessary to access a CUCM server via the CLI instead of the web server. If you've not done
much of this yet, the command structure may seem a little awkward. It's nothing like IOS and can give many
voice and network engineers pause when they first encounter it.
This large post contains a list of all Cisco UC 9.1(1) CLI commands and their syntax in brief format. This
included CUCM CLI commands, CUC CLI commands and IM & Presence CLI commands. It's no
coincidence that this is the version of UC that is tested on the current CCIE Collaboration exams. However,
if you'd like to consult the full Cisco document for your version of UC (or something close), refer to the links
below:
Cisco Command Line Interface (CLI) Guides for Unified Communication
7.0(1)
8.6(1)
9.1(1)
10.0(1)
Disclaimer
Many of the CLI commands below require that services be reset, will reset the services themselves or require
a server reset to be effective. Some are disruptive and some could be catastrophic. Please use this list as a
quick reference guide, but ALWAYS research and test commands on a non-production system to verify that
you get the desired results. Furthermore, some of the commands listed below will not function on specific
UCS hardware or they are specific to CUCM or CUC (and some work on either).
Initiate the CLI
First and foremost, you remotely access the CLI via a secure SSH session to the CUCM. If you do not have
remote access to the CUCM via SSH, you can also gain access to the CLI via a locally attached keyboard and
monitor. Shown below, I've used PuTTY to gain access to the CLI of the CUCM server.
SSH to CUCM CLI via PuTTY
Delete Commands
delete account account-name
File Commands
file check [detection-size-kb]
Checks the /usr directory for files or directories that have changed
since the last installation or upgrade
Run Commands
run cuc dbquery database_name
sql_query[page]
run cuc preupgrade test
Set Commands
set account enable user-id
set account name name
set accountlocking { enable | disable }
set accountlocking count attempts
set accountlocking unlocktime seconds
set cert bulk consolidate unit
set cert bulk export unit
set cert bulk import unit
set cert bulk sftp
set cert delete unit name
set cert import type name [caCert]
set cert regen name
set cli pagination { on | off }
set cli session timeout minutes
Sets the web security certificate information for the operating system
Sets the time, in minutes, that can elapse before a web application,
such as Cisco Unified Communications Manager Administration,
times out and logs off the user.
Sets the working directory for active, inactive, and installation logs
}directory
Show Commands
show account
show accountlocking
show cert list { own | trust }
show cert own filename
show cert trust filename
show cli pagination
show cli session timeout
Displays the details of processes that share the same name and
indicates their parent-child relationship
Lists the open file descriptors for a comma-separated list of
process IDs
Shows a specific process number or command name
Searches for the pattern that the regular expression regexp
specifies in the output of the operating system-specific process
listing
Retrieves details of processes that share the user name and
displays parent-child relationship
Displays a list of the most processor-intensive processes
show workingdir
Unset Commands
unset ipsec policy_group policy_group
unset ipsec policy_name policy_name
unset network dns options [ timeout ] [
attempts ] [ rotate ]
unset network domain
unset network ipv6 static_address [ reboot ]
Utils Commands
utils auditd { enable | disable | status }
utils core { active | inactive } analyze
[core_filename]
utils core { active | inactive } list
utils cuc activate CUSRSV
utils cuc cluster activate
utils cuc cluster deactivate
utils cuc cluster makeprimary
utils cuc cluster overwritedb
Starts, stops, and provides the status of the system auditing service
Generates a backtrace for a core file, a thread list, and the current
value of all CPU registers
Creates reports about the server in the platform/log directory
Converts the standalone Cisco Unity Connection server to Cisco
Unity Connection SRSV server
Activates this server in a Cisco Unity Connection cluster
Deactivates this server in a Cisco Unity Connection cluster
Forces the specified server to take the primary server status in a
Cisco Unity Connection cluster
Overwrites the database on the server on which you run this
command with the database from the other server in the
Connection cluster. Replication restarts after the database is
overwritten. This method is used when you restore one server from
a backup and must copy the restored data to the other server.
Creates a cluster relationship with the publisher server in a
Connection cluster after the server was replaced or the Connection
was reinstalled on the publisher server. This command overwrites
all data on the publisher server with data from the subscriber server
and initializes replication between the servers.
Collects data that is helpful to technical support staff for
status }
utils os secure { enforce | permissive | status }
utils remote_account create
utils remote_account disable
utils remote_account enable
utils remote_account status
utils
reset_application_ui_administrator_name
utils
reset_application_ui_administrator_password
utils reset_ui_administrator_name
utils service { activate | deactivate | start | stop
| restart } service_name
utils service list [page]
utils service auto-restart { enable | disable |
show } service-name
utils snmp config 1/2c community-string {
add | | delete | | list | | update }
utils snmp config 1/2c inform { add | | delete | |
list | | update }
utils snmp config 1/2c trap { add | delete | list |
update }
utils snmp config 3 inform { add | | delete | |
list | | update }
utils snmp config mib2 { add | | delete | | list | |
update }
utils snmp config 3 trap { add | | delete | | list |
| update }
utils snmp config 3 user { add | | delete | | list |
| update }
utils snmp get version
utils snmp hardware-agents { status | | start | |
stop | | restart }
utils snmp test
utils snmp walk version
utils soap realtimeservice test [remote-ip]
remote-httpsremote https-password
utils sso { enable | disable | status }
utils system restart
utils system shutdown
utils system switch-version
utils system boot { console | serial }
utils system upgrade { initiate | cancel | status
}
utils vmtools status
utils vmtools upgrade