如何在WebSphere Application Server 6.0.2.23中重命名应用程序服务器

Zac*_*ach 5 websphere

我们正在重新调整运行WebSphere 6.0.2.23的应用程序服务器.我想重命名各种应用程序服务器以更好地反映其新角色.

如何重命名应用程序服务器?

似乎wsadmin可以做到这一点,但我正在努力与对象层次结构.

小智 4

IBM 示例脚本

下载:

配置脚本.zip

从命令行执行:

/usr/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/ws_ant.sh \
-profileName AppSrv01 \
-buildfile exportImport.xml \
-logfile rename.log \
-DoldServerName=server1 \
-DnewServerName=server2 \
-DnodeName=yourNode01 changeServerName
Run Code Online (Sandbox Code Playgroud)

来源