cisco-ucce-cli
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCisco UCCE CLI
Cisco UCCE CLI
Read-only CLI for monitoring and troubleshooting Cisco Unified Contact Center Enterprise 12.6. Covers 5 API services: AW Config/Status, Finesse, CVP, Diagnostic Portal, and VVB.
用于监控和排查Cisco Unified Contact Center Enterprise 12.6故障的只读CLI工具,覆盖5个API服务:AW配置/状态、Finesse、CVP、诊断门户和VVB。
Setup
安装
bash
undefinedbash
undefinedInstall globally
全局安装
npm install -g cisco-ucce
npm install -g cisco-ucce
Or run without installing
无需安装直接运行
npx cisco-ucce --help
undefinednpx cisco-ucce --help
undefinedConfiguration
配置
bash
undefinedbash
undefinedAdd a cluster
添加集群
cisco-ucce config add prod
cisco-ucce config add prod
Edit config with hosts and credentials
编辑主机和凭证配置
Config location: ~/.cisco-ucce/config.json
配置文件路径: ~/.cisco-ucce/config.json
cisco-ucce config show
cisco-ucce config show
Set active cluster
设置活跃集群
cisco-ucce config use prod
cisco-ucce config use prod
Test connectivity
测试连通性
cisco-ucce config test
Config supports `<ss:ID:field>` placeholders for ss-cli integration (optional).cisco-ucce config test
配置支持`<ss:ID:field>`占位符用于ss-cli集成(可选)。Global Flags
全局参数
--format table|json|toon|csv (default: table)
--host <host> (override target host)
--cluster <name> (use specific cluster)
--insecure (skip TLS verification)
--no-audit (disable audit logging)--format table|json|toon|csv (默认: table)
--host <host> (覆盖目标主机)
--cluster <name> (使用指定集群)
--insecure (跳过TLS校验)
--no-audit (关闭审计日志)Common Workflows
常用工作流
System Health Check
系统健康检查
bash
undefinedbash
undefinedQuick health check across all services
跨所有服务快速健康检查
cisco-ucce doctor
cisco-ucce doctor
AW system-wide status
AW全系统状态
cisco-ucce status
cisco-ucce status
Version check across all PGs/Routers
跨所有PG/路由器检查版本
cisco-ucce diag version --host all
undefinedcisco-ucce diag version --host all
undefinedAgent & Queue Monitoring
Agent与队列监控
bash
undefinedbash
undefinedAll agent states from Finesse
从Finesse获取所有Agent状态
cisco-ucce finesse users
cisco-ucce finesse users
Queue stats by ID (IDs = skill group IDs from AW)
按ID查询队列统计(ID为来自AW的技能组ID)
cisco-ucce finesse queue 205001
cisco-ucce finesse queue 205001
List all teams
列出所有团队
cisco-ucce finesse teams
cisco-ucce finesse teams
Not-ready reason codes
未就绪原因码
cisco-ucce finesse reason-codes --category NOT_READY
cisco-ucce finesse reason-codes --category NOT_READY
Find agents by team (pipe JSON to jq)
按团队筛选Agent(将JSON管道传给jq)
cisco-ucce agent list --format json | jq '.[] | select(.agentTeamName == "IT.CALL")'
cisco-ucce agent list --format json | jq '.[] | select(.agentTeamName == "IT.CALL")'
Count agents per team
统计每个团队的Agent数量
cisco-ucce agent list --format json | jq 'group_by(.agentTeamName) | .[] | {team: .[0].agentTeamName, count: length}'
undefinedcisco-ucce agent list --format json | jq 'group_by(.agentTeamName) | .[] | {team: .[0].agentTeamName, count: length}'
undefinedPG / Router Diagnostics
PG / 路由器诊断
The Diagnostic Portal runs on PGs (port 7890), Routers (port 7890), AW (port 8443), CUIC (port 8443), and Finesse (port 8443). Use to target a specific server, or for all.
--host--host allbash
undefined诊断门户运行在PG(端口7890)、路由器(端口7890)、AW(端口8443)、CUIC(端口8443)和Finesse(端口8443)上。使用指定目标服务器,或使用批量查询所有服务器。
--host--host allbash
undefinedWhat's running on a PG?
PG上运行着哪些进程?
cisco-ucce diag list-processes --host pg1b.example.com
cisco-ucce diag list-processes --host pg1b.example.com
Service states
服务状态
cisco-ucce diag list-services --host pg1b.example.com
cisco-ucce diag list-services --host pg1b.example.com
Active alarms
活跃告警
cisco-ucce diag alarms --host pg1b.example.com
cisco-ucce diag alarms --host pg1b.example.com
Performance counters
性能计数器
cisco-ucce diag perf --host pg1b.example.com
cisco-ucce diag perf --host pg1b.example.com
Network connections
网络连接
cisco-ucce diag netstat --host pg1b.example.com
cisco-ucce diag netstat --host pg1b.example.com
IP configuration
IP配置
cisco-ucce diag ipconfig --host pg1b.example.com --args "/all"
cisco-ucce diag ipconfig --host pg1b.example.com --args "/all"
Available log files
可用日志文件
cisco-ucce diag log-files --host pg1b.example.com
cisco-ucce diag log-files --host pg1b.example.com
Product version
产品版本
cisco-ucce diag version --host pg1b.example.com
cisco-ucce diag version --host pg1b.example.com
Check ALL hosts at once
一次性检查所有主机
cisco-ucce diag alarms --host all
undefinedcisco-ucce diag alarms --host all
undefinedCVP Investigation
CVP排查
bash
undefinedbash
undefinedCVP version
CVP版本
cisco-ucce cvp version
cisco-ucce cvp version
All CVP nodes and types (CALL, MEDIA, VXML)
所有CVP节点和类型(CALL、MEDIA、VXML)
cisco-ucce cvp servers
cisco-ucce cvp servers
SIP/IVR/ICM config on a call server
呼叫服务器上的SIP/IVR/ICM配置
cisco-ucce cvp properties --host cvp1a.example.com
CVP OPS (`/cvp-config/`) uses a dedicated API user. CVP call servers (`/cvp-orm/rest/`) use AW credentials.cisco-ucce cvp properties --host cvp1a.example.com
CVP OPS (`/cvp-config/`) 使用独立的API用户。CVP呼叫服务器 (`/cvp-orm/rest/`) 使用AW凭证。VVB Active Calls
VVB活跃通话
bash
undefinedbash
undefinedActive calls on first VVB
首个VVB上的活跃通话
cisco-ucce vvb active-calls
cisco-ucce vvb active-calls
Active calls across ALL VVBs
所有VVB上的活跃通话
cisco-ucce vvb active-calls --host all
undefinedcisco-ucce vvb active-calls --host all
undefinedConfiguration Audit & Export
配置审计与导出
bash
undefinedbash
undefinedExport resources to CSV for comparison/reporting
将资源导出为CSV用于对比/报表生成
cisco-ucce agent list --format csv > agents.csv
cisco-ucce skillgroup list --format csv > skillgroups.csv
cisco-ucce agent list --format csv > agents.csv
cisco-ucce skillgroup list --format csv > skillgroups.csv
Full machine inventory (all servers in solution)
完整机器清单(解决方案内所有服务器)
cisco-ucce inventory list
cisco-ucce inventory list
Specific machine details
指定机器的详情
cisco-ucce inventory get 5000
cisco-ucce inventory get 5000
Precision queue routing
精准队列路由
cisco-ucce precisionqueue list
cisco-ucce precisionqueue list
PG configuration with CTI addresses
带CTI地址的PG配置
cisco-ucce peripheralgateway list
cisco-ucce peripheralgateway list
Dialed numbers
被叫号码
cisco-ucce dialednumber list
cisco-ucce dialednumber list
Call types
呼叫类型
cisco-ucce calltype list
undefinedcisco-ucce calltype list
undefinedScripting & Monitoring
脚本编写与监控
bash
undefinedbash
undefinedMonitor queue depth every 30s
每30秒监控一次队列深度
watch -n 30 'cisco-ucce finesse queue 205001 --format json | jq .callsInQueue'
watch -n 30 'cisco-ucce finesse queue 205001 --format json | jq .callsInQueue'
Export all config resources
导出所有配置资源
for resource in agent skillgroup calltype precisionqueue attribute; do
cisco-ucce $resource list --format csv > "${resource}.csv"
done
for resource in agent skillgroup calltype precisionqueue attribute; do
cisco-ucce $resource list --format csv > "${resource}.csv"
done
JSON output for pipe-friendly scripting
输出JSON格式结果,适配管道式脚本调用
cisco-ucce finesse system-info --format json
undefinedcisco-ucce finesse system-info --format json
undefinedAW Config Resources
AW配置资源
All support and (except which is list-only):
listget <id>department| Command | API Resource | Notes |
|---|---|---|
| agent | 3000+ agents, paginated |
| skillgroup | IDs map to Finesse queue IDs |
| calltype | |
| precisionqueue | |
| attribute | |
| expandedcallvariable | NOT |
| mediaroutingdomain | |
| bucketinterval | |
| dialednumber | |
| peripheralgateway | Includes CTI addresses |
| department | List only, no get |
| machineinventory | Full solution inventory |
| agentteam | May return 403 for some users |
Pagination: . Without these flags, auto-paginates all records.
--page N --page-size N所有资源均支持和操作(仅支持list):
listget <id>department| 命令 | API资源 | 说明 |
|---|---|---|
| agent | 支持3000+ Agent,分页返回 |
| skillgroup | ID对应Finesse队列ID |
| calltype | |
| precisionqueue | |
| attribute | |
| expandedcallvariable | 注意不是 |
| mediaroutingdomain | |
| bucketinterval | |
| dialednumber | |
| peripheralgateway | 包含CTI地址 |
| department | 仅支持list,不支持get |
| machineinventory | 完整解决方案清单 |
| agentteam | 部分用户可能返回403错误 |
分页参数:。不带这些参数时会自动拉取全量记录。
--page N --page-size NDiagnostic Portal Endpoints
诊断门户端点
All support and :
--host <hostname>--host all| Command | Endpoint | Notes |
|---|---|---|
| ListProcesses | |
| ListServices | |
| GetProductVersion | |
| GetProductLicense | |
| GetNetStat | |
| GetIPConfig | |
| GetPerformanceInformation | |
| GetPerfCounterValue | |
| GetTraceLevel | |
| GetAlarms | |
| ListTraceComponents | |
| ListTraceFiles | |
| ListLogComponents | |
| ListLogFiles | |
| ListAppServers | |
| ListConfigurationCategories | |
| GetConfigurationCategory | |
| GetTraceRoute | |
| GetPing | |
| DownloadTraceFile | |
| DownloadLogFile | |
所有端点均支持和参数:
--host <hostname>--host all| 命令 | 端点 | 说明 |
|---|---|---|
| ListProcesses | |
| ListServices | |
| GetProductVersion | |
| GetProductLicense | |
| GetNetStat | |
| GetIPConfig | |
| GetPerformanceInformation | |
| GetPerfCounterValue | |
| GetTraceLevel | |
| GetAlarms | |
| ListTraceComponents | |
| ListTraceFiles | 需要指定 |
| ListLogComponents | |
| ListLogFiles | 需要指定 |
| ListAppServers | |
| ListConfigurationCategories | |
| GetConfigurationCategory | 需要指定 |
| GetTraceRoute | |
| GetPing | |
| DownloadTraceFile | 需要 |
| DownloadLogFile | 需要 |
Trace & Log File Collection
跟踪与日志文件收集
bash
undefinedbash
undefined1. Discover available trace components
1. 查找可用的跟踪组件
cisco-ucce diag trace-components --host pg1a.example.com
cisco-ucce diag trace-components --host pg1a.example.com
2. List trace files for a component (last 12 hours default)
2. 列出某个组件的跟踪文件(默认查询最近12小时)
cisco-ucce diag trace-files "Peripheral Gateway 1A/opc" --host pg1a.example.com
cisco-ucce diag trace-files "CTI Server 1A/ctisvr" --hours 24
cisco-ucce diag trace-files "Peripheral Gateway 1A/opc" --host pg1a.example.com
cisco-ucce diag trace-files "CTI Server 1A/ctisvr" --hours 24
3. Download a trace file
3. 下载跟踪文件
cisco-ucce diag download-trace "Peripheral Gateway 1A/opc" "PG1A_opc_trace.zip" -o ./traces/
cisco-ucce diag download-trace "Peripheral Gateway 1A/opc" "PG1A_opc_trace.zip" -o ./traces/
1. Discover available log components
1. 查找可用的日志组件
cisco-ucce diag log-components --host pg1a.example.com
cisco-ucce diag log-components --host pg1a.example.com
2. List log files (EventLog, Tomcat, ICMDBA, etc.)
2. 列出日志文件(EventLog、Tomcat、ICMDBA等)
cisco-ucce diag log-files "EventLog" --host pg1a.example.com
cisco-ucce diag log-files "Tomcat" --hours 24
cisco-ucce diag log-files "EventLog" --host pg1a.example.com
cisco-ucce diag log-files "Tomcat" --hours 24
3. Download a log file
3. 下载日志文件
cisco-ucce diag download-log "EventLog" "System.evtx.xml" -o ./logs/system-events.xml
undefinedcisco-ucce diag download-log "EventLog" "System.evtx.xml" -o ./logs/system-events.xml
undefinedServer-Side Log Locations
服务端日志位置
When RDP/SSH access is needed, these are the common file paths:
当需要RDP/SSH访问时,以下是常用文件路径:
PG / Router (Windows)
PG / 路由器(Windows)
| Path | Contents |
|---|---|
| ICM binary trace logs (opc, pim, jgw, etc.) |
| Text-converted trace logs |
| Diagnostic Framework service logs |
| Unified System CLI tool and output |
| Multi-server collection config |
Use on the server to convert binary logs to text.
dumplog <process> /bt HH:MM /et HH:MM /ms /o| 路径 | 内容 |
|---|---|
| ICM二进制跟踪日志(opc、pim、jgw等) |
| 文本转换后的跟踪日志 |
| 诊断框架服务日志 |
| 统一系统CLI工具和输出 |
| 多服务器收集配置 |
在服务器上使用命令将二进制日志转换为文本。
dumplog <process> /bt HH:MM /et HH:MM /ms /oAW / HDS (Windows)
AW / HDS(Windows)
| Path | Contents |
|---|---|
| AW/HDS service logs |
| Database replication logs |
| Diagnostic Framework logs |
| 路径 | 内容 |
|---|---|
| AW/HDS服务日志 |
| 数据库复制日志 |
| 诊断框架日志 |
CVP (Windows)
CVP(Windows)
| Path | Contents |
|---|---|
| CVP application logs |
| OPS Console logs |
| CVP configuration files |
| 路径 | 内容 |
|---|---|
| CVP应用日志 |
| OPS控制台日志 |
| CVP配置文件 |
Finesse / CUIC / VVB (VOS Linux)
Finesse / CUIC / VVB(VOS Linux)
| Path | Contents |
|---|---|
| Finesse/CUIC web application logs |
| Platform service logs |
Use | DIME-based log download |
| 路径 | 内容 |
|---|---|
| Finesse/CUIC web应用日志 |
| 平台服务日志 |
使用 | 基于DIME的日志下载 |
Cluster Config Structure
集群配置结构
json
{
"activeCluster": "prod",
"clusters": {
"prod": {
"aw": {
"hosts": ["aw-a.example.com"],
"username": "<your-aw-user>",
"password": "<ss:ID:password>"
},
"finesse": {
"hosts": ["fin-a.example.com"],
"username": "<your-finesse-user>",
"password": "..."
},
"cvpOps": {
"host": "cvpops.example.com",
"port": 8111,
"username": "<your-cvp-api-user>",
"password": "..."
},
"cvpCallServers": { "hosts": ["cvp1a.example.com"], "port": 8111 },
"diagnosticPortal": {
"hosts": [
{ "host": "pg1a.example.com", "port": 7890 },
{ "host": "aw-a.example.com", "port": 8443 }
],
"username": "<domain\\your-admin-user>",
"password": "..."
},
"vvb": {
"hosts": ["vvb1a.example.com"],
"username": "<your-vvb-user>",
"password": "..."
},
"insecure": true
}
}
}Auth precedence: CLI flags > env vars (/) > config file.
CISCO_UCCE_USERNAMECISCO_UCCE_PASSWORDjson
{
"activeCluster": "prod",
"clusters": {
"prod": {
"aw": {
"hosts": ["aw-a.example.com"],
"username": "<your-aw-user>",
"password": "<ss:ID:password>"
},
"finesse": {
"hosts": ["fin-a.example.com"],
"username": "<your-finesse-user>",
"password": "..."
},
"cvpOps": {
"host": "cvpops.example.com",
"port": 8111,
"username": "<your-cvp-api-user>",
"password": "..."
},
"cvpCallServers": { "hosts": ["cvp1a.example.com"], "port": 8111 },
"diagnosticPortal": {
"hosts": [
{ "host": "pg1a.example.com", "port": 7890 },
{ "host": "aw-a.example.com", "port": 8443 }
],
"username": "<domain\\your-admin-user>",
"password": "..."
},
"vvb": {
"hosts": ["vvb1a.example.com"],
"username": "<your-vvb-user>",
"password": "..."
},
"insecure": true
}
}
}认证优先级:CLI参数 > 环境变量(/) > 配置文件。
CISCO_UCCE_USERNAMECISCO_UCCE_PASSWORD