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

转载 2012年03月30日 15:39:47
一般情况下,当然是不用考虑这种问题了。主要是在实验环境下,可能想尝试点新的玩法。
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又是一个全新的空的安装了。


相关文章推荐

如何删除WAS的profile

如何删除WAS的profile 一般情况下,当然是不用考虑这种问题了。主要是在实验环境下,可能想尝试点新的玩法。 Profile Management Tool不能用来删除一个profile。 ...

WAS Profile

  • 2011年07月06日 01:39
  • 301KB
  • 下载

ios设备运行出现 ”A valid provisioning profile for this executable was not found“的解决

寡主之前做ios真机的时候,当在xcode添加新设备的时候,又是总会遇到A valid provisioning profile for this executable was not found的问...

WAS中单元(Cell)节点(Node),以及Node、Profile 与 Server 之间的关系是什么

WAS中单元(Cell)节点(Node),以及Node、Profile 与 Server 之间的关系是什么 单元: 单元是整个分布式网络中一个或多个节点的逻辑分组。单元是一个配置概...
  • lyfxjt
  • lyfxjt
  • 2015年05月28日 22:59
  • 1407

WAS Cell, Node, Profile, Server

1. Cell 单元是整个分布式网络中一个或多个节点的逻辑分组。单元是一个配置概念,是管理员将节点间逻辑关联起来的实现方法。管理员根据具体的业务环境,制定对其整体系统集成环境有意义的条件来定义和组织构...

【转】WAS下为什么使用profile

WebSphere Application Server V6 引进了概要文件(profile)概念,目的是将产品的二进制文件(binaries)与用户数据物理分离,并使用户能定义多组用户数据。从而使...

A valid provisioning profile for this executable was not found.

测试环境:Xcode6.1.1 错误:A valid provisioning profile for this executable was not found. 解决方案:步骤一、Edit S...

Your build settings specify a provisioning profile with the UUID, no provisioning profile was

iOS 真机调试问题  在Archive项目时,出现了“Your build settings specify a provisioning profile with the UUID “”, ...

Your build settings specify a provisioning profile with the UUID, no provisioning profile was found

在Archive项目时,出现了“Your build settings specify a provisioning profile with the UUID “”, however, no suc...

创建一个jsp页面报:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

主要是缺少Tomcat运行时相关类导致的,简单的说就是找不到tomcat(服务器),解决方法如下: 1、报错页面: 2、右击所在的项目->Build Path->Configu...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:WAS初学-如何从WAS中删除一个Profile
举报原因:
原因补充:

(最多只允许输入30个字)