Cordys Web Gateway与XForm的监控及log文件下载(SecureCRT)

设置XForm Container为Debug模式。

在“Properties - XForms”中,设置“Log Setings”,首先,去掉“Use System Policy”,再进行后续的设置。

日志文件位置

Cordys安装目录,对应日志路径如下:

/opt/Cordys/defaultInst/Logs

Apache安装目录,对应日志路径如下:

/usr/local/apache2.2.26/log

下载日志文件

ZModem协议,下面一段是从SecureCRT的帮助中copy的:
ZModem is a full-duplex file transfer protocol that supports fast data transfer rates and effective error detection. ZModem is very user friendly, allowing either the sending or receiving party to initiate a file transfer. ZModem supports multiple file (“batch”) transfers, and allows the use of wildcards when specifying filenames. ZModem also supports resuming most prior ZModem file transfer attempts.

rz,sz便是Linux/Unix同Windows进行ZModem文件传输的命令行工具。windows端需要支持ZModem的telnet/ssh客户端,SecureCRT就可以用SecureCRT登陆到Unix/Linux主机(telnet或ssh均可)

先设定SecureCRT上传下载文件保存路径:

options(选项) -> session(会话选项) -> Xmodem/Zmodem -> upload / download -> ok

从Linux系统下载文件:

[root@VMXPNSAPP Logs]# sz system#xforms#xforms.xml.2016-06-23
rz
?a? zmodem ′???£  °′ Ctrl+C ???£
Transferring system#xforms#xforms.xml.2016-06-23...
  100%      25 KB   25 KB/s 00:00:01       0 Errors

到windows系统下载目录中就能找到此文件了。

获取到log文件如下:

(1)来自/opt/Cordys/defaultInst/Logs

gateway日志:Gateway26915.xml

<log4j:event logger="com.eibus.management.ManagedComponent" timestamp="1467092764353" level="INFO" thread="main">
<log4j:message><![CDATA[JMX address: service:jmx:rmi:///jndi/rmi://127.0.0.1:1099/cordys/Gateway26915]]></log4j:message>
<log4j:MDC><![CDATA[host=VMXPNSAPP processid=26915]]></log4j:MDC>
<log4j:locationInfo class="com.eibus.management.ManagedComponent" method="createJMXProtocolConnectors" file="ManagedComponent.java" line="1221"/>
</log4j:event>
......

XForm日志:system#xforms#xforms.xml

(2)来自/usr/local/apache2.2.26/log
error_log、access_log。

注意:开启Debug后,日志文件非常巨大,例如XForm日志5分钟达到73M。

参考:

《 SecureCRT上传和下载文件 rz sz》 ChinaUnix博客, kevinspace 2009.03

你可能感兴趣的:(secureCRT,debug,Cordys,XForm)