繁体   English   中英

获取远程计算机上的远程Web逻辑服务器的状态

[英]get status of a remote web logic server which is on remote machine

我们的项目在安装了远程计算机的Web逻辑服务器(10.3.6)上运行,我们需要通过使用一些本地计算机/笔记本电脑来检查该服务器及相关状态(节点管理器,管理服务器,数据源)自动脚本,然后通过自动生成的电子邮件发送该报告。 尽管可以在网络逻辑中启用监视或通知,但我们需要自定义报告。 第二个要求是将Web逻辑服务器的域日志和我们的应用程序日志重定向到其他计算机,以将它们作为实时日志进行跟踪,也就是说,如果我们的应用程序用户在应用程序内执行某些操作,则这些日志需要被重定向到另一台计算机,用户可以将其视为实时日志。

我是Web(-逻辑)服务器的新手,所以我想知道是否可以满足我们的要求?

您可以使用新的REST API或旧的JMX API来自动监视服务器( https://docs.oracle.com/middleware/1213/wls/NOTES/whatsnew.htm#NOTES353 )。

至于重定向日志,我在将Logstash( http://logstash.net/ )与WebLogic结合使用方面有很好的经验。

您可以编写WLST脚本来监视服务器状态,例如:

connect("username","password","t3://localhost:8001")
# First enable the Administration Port. This is Not a requirement.
edit()
startEdit()
cmo.setAdministrationPortEnabled(1)
activate(block="true")
# check the state of the server
state("myserver")
# now move the server from RUNNING state to ADMIN
suspend("myserver", block="true")
# check the state
state("myserver")
# now resume the server to RUNNING state
resume("myserver",block="true")
# check the state
state("myserver")
# now take a thread dump of the server
threadDump("./dumps/threadDumpAdminServer.txt")
# finally shutdown the server
shutdown(block="true")

至于你的第二个问题。 为什么不编辑Servers -> <server name> -> Logging设置以将文件输出到远程服务器可以看到的共享区域?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM