导出 websphere 配置文件

Export websphere profile

我正在尝试导出 websphere 配置文件。在 wsadmin

下尝试了各种命令
$AdminTask exportWasprofile {-archive c:/myCell.car}
AdminTask.exportWasprofile('[-archive c:/myCell.car]')
AdminTask.exportWasprofile(['-archive', 'c:/myCell.car'])

全部return语法错误 com.ibm.bsf.BSFException:评估 Jacl 表达式时出错:

如何导出配置文件? (Websphere 8.5.5.14)

您给出的第一个示例对于在 jacl 语言模式下与 wsadmin 一起使用是正确的,第三个示例对于 jython lang 模式是正确的。您发布的错误消息表明 wsadmin 正在以 jacl 语言模式运行。

你几乎是对的,这个应该有用。

AdminTask.exportWasprofile(['-archive c:\myCell.car'])