本文档介绍使用命令行界面(CLI)从统一联系中心快捷版(UCCX)查找、查看和下载日志的过程。
本文档没有任何特定的要求。
本文档不限于特定的软件和硬件版本。
本文档中的信息都是基于特定实验室环境中的设备编写的。本文档中使用的所有设备最初均采用原始(默认)配置。如果您的网络处于活动状态,请确保您了解所有命令的潜在影响。
通过Secure Shell(SSH)从CLI查找、查看和下载UCCX日志的命令如下所示:
语法:
file list {activelog | inactivelog | install | partBsalog | salog | tftp} file-spec [options]
file-spec:要查看的必需文件
选项:可选 — 页|详细|反向|[日期|大小]
page
— 一次显示一个屏幕的输出。detail
— 包含日期和时间的长列表reverse
— 反向排序方向date
— 按日期排序size
— 按文件大小排序示例:
admin:file list activelog / detail
15 Sep,2016 09:07:48 <dir> audit
15 Sep,2016 09:07:48 <dir> ccm_db
15 Sep,2016 09:07:48 <dir> cm
15 Sep,2016 09:07:48 <dir> core
15 Sep,2016 09:07:48 <dir> cuic
15 Sep,2016 09:07:48 <dir> desktop
15 Sep,2016 09:07:48 <dir> dp_db
15 Sep,2016 09:07:48 <dir> mgetty
15 Sep,2016 09:07:48 <dir> patches
15 Sep,2016 09:07:48 <dir> platform
15 Sep,2016 09:07:48 <dir> sa
15 Sep,2016 09:07:48 <dir> sso
15 Sep,2016 09:07:48 <dir> syslog
15 Sep,2016 09:07:48 <dir> tomcat
15 Sep,2016 09:07:48 <dir> uccx
语法:
file view {activelog|inactivelog|install} file-spec
要查看的文件规格必需文件
file-spec必须解析为单个文件
语法:
file get {activelog|inactivelog|install} file-spec [options]
要传输的文件规范必需文件
可选reltime months|weeks|days|hours|minutes timevalue
吸收时间hh:mm:MM/DD/YY hh:mm:MM/DD/YY
match regex
递归
压缩
reltime
— 相对时间段,指定为 minutes
| hours
| days
| weeks
| months
价值abstime
— 绝对时间段,指定为hh:mm:MM/DD/YY hh:mm:MM/DD/YYmatch
— 匹配文件名中指定为字符串值的特定字符串recurs
— 获取所有文件,包括子目录compress
选项允许您下载压缩格式的文件。注意:要下载文件,请确保已配置并可访问外部安全文件传输协议(SFTP)服务器。
提示:此 recurs
选项允许您遍历所有子目录和文件的目录。如果要从目录中提取所有日志,则使用此选项。
您可以使用命令: show open files regexp
在CLI上实时获取当前写入的日志。此方法对实时故障排除非常有用 — 您可以查看内存中当前写入的日志,然后相应地 tail, view
或 get
从CLI(下载)该文件以供调查。
该命令可以匹配与任何日志文件名匹配的正则表达式,从而允许您实时排除问题(可实时再现)。
示例:
1.对Appadmin上的错误进行故障排除,以在实时重现问题时获取或查看当前日志
show open files regexp MADM
从当前目录复制当前文件的路径 /uccx/log/MADM/
admin:show open files regexp MADM
Executing.. please wait.
tomcat 29349 tomcat 729w REG 8,6 1905330 5640852 /common/log/taos-log-b/uccx/log/MADM/Cisco001MADM076.log
admin:file view activelog /uccx/log/MADM/Cisco001MADM076.log
admin:file get activelog /uccx/log/MADM/Cisco001MADM076.log
admin:file tail activelog /uccx/log/MADM/Cisco001MADM076.log
2.在实时重现问题时,对由于脚本中的某个步骤导致的引擎呼叫故障问题进行故障排除
show open files regexp MIVR
从当前目录复制当前文件的路径 /uccx/log/MIVR/
3.在实时重现问题时,对Finesse或CUIC的问题进行故障排除
Finesse - show open files regexp Desktop-webservices
CUIC - show open files regexp CCBU-cuic
以下是这些命令的使用示例:
file view activelog /desktop/finesse/logs/catalina.out
file get activelog /desktop/finesse/logs/catalina.out
file get activelog /desktop recurs compress
file view install /system-history.log
注意:您不需要“/”。 或者: file view install system-history.log
工作
file view activelog /syslog/sd_ntp.log
file get activelog /cm/log/informix/ccm.log
file get activelog /uccx/log/MIVR recurs compress
file get activelog / recurs compress
file get activelog /platform/cli/UCCxPackets.cap
file list activelog /platform/log/servm*.log