Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 (中文) » 中继服务器 » 中继服务器记录和日志管理

 

中继服务器日志文件的远程管理

中继服务器日志文件的远程管理通过 rstool.jar 中的 AdminChannel 类进行。

命令行用法:

java ianywhere.ml.rs.AdminChannel [{options}]...

其中,options 可以是以下一项或多项:

选项 说明
-url rsAdminUrl 指向 rs_admin 扩展
-uid user -pwd password 为访问 rs_admin 提供 HTTP 验证所需的证书
-ping 强制回应 rs_admin 扩展
-getRSConfig 检索中继服务器配置
-setRSConfig 更新中继服务器配置并备份
-hello 协商管理协议版本并强制回应
-archiveRSLog 截断当前在线的中继服务器日志文件并归档
-xol outFile none | beginTime none | endTime nRegex "regex"... 从出站启动器的本地已归档和/或在线日志抽取日志行。中继服务器不必处于运行状态,此功能仅提供本地抽取。
-xrl outFile none | beginTime none | endTime nRegex "regex"...

从中继服务器的已归档和/或在线日志远程抽取日志行,其中:

  • *Time 表示 yyyy-MM-dd HH:mm:ss.SSS 格式的本地时间戳
  • nRegex 表示正则表达式
? | -? | /? | -h | /h 输出此使用说明

例如:

java.exe -cp rstool.jar ianywhere.ml.rs.AdminChannel -url https://rs.my.com/rs16/admin/rs_admin.dll -uid me -pwd changit -hello
java.exe -cp rstool.jar ianywhere.ml.rs.AdminChannel -url https://rs.my.com/rs16/admin/rs_admin.dll -uid me -pwd changit -xrl rr.xrl none none 1 "RSR (element|header|row)"