【WebLogic】WebLogic 12.2.1.4.0控制台告警处理记录

WebLogic 12.2.1.4.0 控制台告警处理教程
在安装了最新补丁的Oracle WebLogic 12.2.1.4.0中,控制台出现匿名IIOP和T3告警。通过WLST脚本关闭这些选项后,尽管激活时可能出现错误,但实际已成功禁用。在管理控制台中,需锁定并编辑,进入安全设置,取消远程匿名IIOP和T3访问的勾选,保存并激活更改。告警消除需重启管理服务。

        Oracle WebLogic 12.2.1.4.0安装了2022年4月19日发布的最新补丁集后,创建应用域,登录到管理后台,会发现控制台页头会提示下面的红色提示:

        点击红色链接,可以跳转到告警信息的详情页面,如下图所示:

        点选任意一个选项,然后点击View Details,即可跳转到官方页面,在这个页面里面,会告知用户如何去解决这个告警。下面就以第一个为例,通过WLST脚本来关闭匿名的 IIOP 和 T3。

[app@ansible-awx ~]$ sh /weblogic/Oracle/Middleware/Oracle_Home/oracle_common/common/bin/wlst.sh

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

wls:/offline> connect('weblogic','YOUR_PASSWORD','t3://192.168.223.199:9600')
Connecting to t3://192.168.223.199:9600 with userid weblogic ...
Successfully connected to Admin Server "AdminServer" that belongs to domain "wls12cdomain".

Warning: An insecure protocol was used to connect to the server. 
To ensure on-the-wire security, the SSL port or Admin port should be used instead.

wls:/wls12cdomain/serverConfig/> edit()
Location changed to edit tree.   
This is a writable tree with DomainMBean as the root.    
To make changes you will need to start an edit session via startEdit(). 
For more help, use help('edit').

wls:/wls12cdomain/edit/> startEdit()
Starting an edit session ...
Started edit session, be sure to save and activate your changes once you are done.
wls:/wls12cdomain/edit/ !> cd("SecurityConfiguration/wls12cdomain")
wls:/wls12cdomain/edit/SecurityConfiguration/wls12cdomain !> cmo.setRemoteAnonymousRMIIIOPEnabled(false)
wls:/wls12cdomain/edit/SecurityConfiguration/wls12cdomain !> cmo.setRemoteAnonymousRMIT3Enabled(false)
wls:/wls12cdomain/edit/SecurityConfiguration/wls12cdomain !> activate()
Activating all your changes, this may take a while ... 
The edit lock associated with this edit session is released once the activation is completed.
WLST lost connection to the WebLogic Server that you were connected to. 
This may happen if the server was shut down or partitioned.      
You will have to re-connect to the server once the server is available.
Disconnected from weblogic server: AdminServer
Traceback (innermost last):
  File "<console>", line 1, in ?
  File "<iostream>", line 481, in activate
  File "<iostream>", line 553, in raiseWLSTException
WLSTException: Error occurred while performing disconnect : Error while Activating changes. : weblogic.rjvm.PeerGoneException: ; nested exception is: 
        java.io.EOFException 
Use dumpStack() to view the full stacktrace :
wls:/offline> exit()

Exiting WebLogic Scripting Tool.

        虽然,最后执行activate()时候出现报错,但是通过控制台的核查,可以发现下面两个框的默认勾选已经被成功取消了。

        

在控制台查看的步骤:

  1. In the Change Center of the Administration Console, click Lock & Edit.

  2. In the left pane of the console, under Domain Structure, select the domain name.

  3. Select Security>General, then expand the Advanced node.

  4. Clear the Remote anonymous RMI access via IIOP and Remote anonymous RMI access via T3 check boxes.

  5. Click Save, then in the Change Center, click Activate Changes.

告警处理后,需要重启管理服务,才能将告警信息消除。

参考:

https://docs.oracle.com/en/middleware/fusion-middleware/weblogic-server/12.2.1.4/lockd/secure.html#GUID-D053EEFA-7461-4A22-865A-1180A49CACCD 

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

cnskylee

技术分享我是认真的,期待您打赏

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值