可通过多个选项查看日志。
ca_log 命令包含以下日志查看选项:
ca_log [-cahost <hostname>][-entiredomain]
-view <logname>[<查看选项>]
-jobID <ID> -groupbyjob -before <mm/dd/yyyy> -after <mm/dd/yyyy> -monitor -sev
Note:To properly display all Unicode characters in the output of a command, you must first set the environmental variable "ARCSERVE_UNICODE_DISPLAY_CMDL" to a value of 1 prior to running the command as follows:
C:\Documents and Settings\cb>set ARCSERVE_UNICODE_DISPLAY_CMDL=1
要正确查看这些 Unicode 字符,还需在设置环境变量后按如下所示重定向 ca_log 的输出:
C:\>ca_log -view activity.log >UNICODE_log.txt
根据一个或多个查看选项,显示由日志名指定的日志。
按作业 ID 或活动日志的作业列表 ID 显示指定日志。
例如:
仅当要查看的文件名是活动日志时才可用。指定 ca_log -view 命令将先显示按作业 ID 分组的日志,然后再显示没有作业 ID 的作业。显示其他日志之前,作业日志还会将主作业及其子作业日志分在一组。
如果不包括该选项,将按时间顺序显示活动日志。
如果包括该选项,将按作业分组并显示活动日志。
例如,输出如下所示:
显示日期 mm/dd/yyyy 之前带有指定日志名的所有条目。
Note:You can use the -before and -after options together to display logs across a period of time.
显示日期 mm/dd/yyyy 之后带有指定日志名的所有条目。
Note:You can use the -before and -after options together to display logs across a period of time.
显示带有指定日志名的日志并不定时将它打开。在将其他条目记录到日志中时,该日志名进行实时更新。
在显示上次指定的日志之后不要终止 ca_log 命令,并继续从可用的日志文件中读取和显示其他日志。
显示带有指定日志名的每个条目的重要级别。在日期栏后面显示重要级别。严重级别包括:
I - 信息
W - 警告
E - 错误
Note:The -sev option can be used in conjunction with the -jobID, ‑before, and -after options.
|
Copyright © 2016 |
|