WAS初学-如何从WAS中删除一个Profile

一般情况下,当然是不用考虑这种问题了。主要是在实验环境下,可能想尝试点新的玩法。
Profile Management Tool不能用来删除一个profile。
#1 先删除一个独立的app server
首先把server停掉,然后
cd D:\IBM\WebSphere\AppServer\bin
manageprofiles.bat -delete -profileName AppSrv02
====================================================================
D:\IBM\WebSphere\AppServer\bin>manageprofiles.bat -delete -profileName AppSrv02
INSTCONFSUCCESS: Success: The profile no longer exists.
====================================================================
文件系统里应该还有些残余,主要是Log文件。反正也没什么用了,直接把整个文件夹AppSrv02删除好了。
然后更新下注册表: manageprofiles.bat -validateAndUpdateRegistry
====================================================================
D:\IBM\WebSphere\AppServer\bin>manageprofiles.bat -validateAndUpdateRegistry
[]
====================================================================
这个命令的返回值看起来有点奇怪嘛。

#2 cell环境下profile的删除
先确保dmgr和node agent都正常运行
登陆console,在node页面,选中node,然后单击“Remove Node”。如果配置了安全,需要输入用户名和密码。
=====================================================================================
Removing node

ADMU2001I: Begin removal of node: HGHLTR8Y32CCNode01

ADMU2035W: WARNING! Node removal utility is unable to remove this node since it was created during Cell Profile creation. Your current node has not been modified.

ADMU2036I: To continue removal of this node manually, you may use manageprofiles utility to delete the profile for this node and run cleanupNode utility on Deployment Manager.

The console has not received information on the remove operation in a timely manner. The state of the operation is indeterminate. Check the remove node log for details.

=================================================================================================================

它说这个node是在创建cell时创建的,这个普通的node删除工具无法完成,只能用 manageprofiles来完成。
那就照它说的办吧。
先在admin console里停掉node agent。
cd D:\IBM\WebSphere\AppServer\bin
manageprofiles.bat -delete -profileName AppSrv01
=================================================================================================================
D:\IBM\WebSphere\AppServer\bin>manageprofiles.bat -delete -profileName AppSrv01
INSTCONFPARTIALSUCCESS: The profile no longer exists, but errors occurred. For m
ore information, consult D:\IBM\WebSphere\AppServer\logs\manageprofiles\AppSrv01
_delete.log.
=================================================================================================================

说是部分成功,上目录看一下,也都删完了,只剩下logs目录了。所以基本认定为成功。顺便把AppSrv01清理掉。
不过admin console里面还是有这个node的信息的,所以还得执行下 cleanupNode
=================================================================================================================
cd D:\IBM\WebSphere\AppServer\profiles\Dmgr01\bin
cleanupNode AppSrv01 -profileName Dmgr01
=================================================================================================================
需要输入下用户名和密码。
=================================================================================================================
D:\IBM\WebSphere\AppServer\profiles\Dmgr01\bin>cleanupNode AppSrv01 -profileName
 Dmgr01
ADMU0116I: Tool information is being logged in file
           D:\IBM\WebSphere\AppServer\profiles\Dmgr01\logs\cleanupNode.log
ADMU0128I: Starting tool with the Dmgr01 profile
ADMU2001I: Begin removal of node: AppSrv01
ADMU2026E: Node AppSrv01 is not incorporated into any cell.
=================================================================================================================
这下就比较纠结了。
不过貌似把node和profile搞的有点混了,搞错node的名字了:
=================================================================================================================
cd D:\IBM\WebSphere\AppServer\profiles\Dmgr01\bin
cleanupNode HGHLTR8Y32CCNode01 -profileName Dmgr01
D:\IBM\WebSphere\AppServer\profiles\Dmgr01\bin>cleanupNode HGHLTR8Y32CCNode01 -p
rofileName Dmgr01
ADMU0116I: Tool information is being logged in file
           D:\IBM\WebSphere\AppServer\profiles\Dmgr01\logs\cleanupNode.log
ADMU0128I: Starting tool with the Dmgr01 profile
ADMU2001I: Begin removal of node: HGHLTR8Y32CCNode01
ADMU2024I: Removal of node HGHLTR8Y32CCNode01 is complete.
=================================================================================================================
这下admin console干净多了。
最后一步,把dmgr的profile也删掉。先把dmgr停掉。
cd D:\IBM\WebSphere\AppServer\bin
manageprofiles.bat -delete -profileName Dmgr01
=================================================================================================================
D:\IBM\WebSphere\AppServer\bin>manageprofiles.bat -delete -profileName Dmgr01
INSTCONFSUCCESS: Success: The profile no longer exists.
=================================================================================================================
Dmgr01的目录里也只剩logs了,也一并清理了。
顺便把D:\IBM\WebSphere\AppServer\logs\manageprofiles里面的log也打包清理了。

这样WebSphere又是一个全新的空的安装了。


  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值