Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Scripting 使用WebSpherePortal脚本接口需要什么? 我的问题_Scripting_Administration_Websphere Portal - Fatal编程技术网

Scripting 使用WebSpherePortal脚本接口需要什么? 我的问题

Scripting 使用WebSpherePortal脚本接口需要什么? 我的问题,scripting,administration,websphere-portal,Scripting,Administration,Websphere Portal,在过去几周中,我不得不多次更改WebSpherePortal中的一些配置设置。现在很无聊,我想用一个小剧本来代替我自己 我需要访问“管理页面”部分和“在/激活某些内容节点” 登录 导航到管理页面 搜索唯一的名称 单击激活/*停用*链接 确认对话框 注销 我想为这个任务编写脚本 我为此创建了一个Selenium脚本,但这仍然需要打开Firefox,将Selenium脚本加载到Selenium IDE中,提供密码(因为我在将其保存到脚本中时感觉脏了),并在所有3个集群上运行它 我读过关于门户脚本

在过去几周中,我不得不多次更改WebSpherePortal中的一些配置设置。现在很无聊,我想用一个小剧本来代替我自己

我需要访问“管理页面”部分和“在/激活某些内容节点”

  • 登录
  • 导航到管理页面
  • 搜索唯一的名称
  • 单击激活/*停用*链接
  • 确认对话框
  • 注销
我想为这个任务编写脚本 我为此创建了一个Selenium脚本,但这仍然需要打开Firefox,将Selenium脚本加载到Selenium IDE中,提供密码(因为我在将其保存到脚本中时感觉脏了),并在所有3个集群上运行它

我读过关于门户脚本的文章,我想尝试一下。但不幸的是,我的机器上只安装了WebSphereApplicationServer,因此我只能使用wsadmin.bat/sh

运行WebSpherePortal脚本需要什么?
我需要使用一个脚本wpscript.bat/sh
。我必须在本地计算机上安装WebSpherePortal吗?是否有我可以使用的最小设置?我可以复制一些JAR并继续吗?

您正在寻找XMLAccess。XMLAccess是Portal Server附带的命令行工具。它允许您连接到本地或远程门户服务器,并执行诸如部署portlet、添加/删除页面、设置参数、激活/停用页面等任务

XMLAccess使用基于XML的文件来管理任务

它在哪里?

./xmlaccess.sh -in your_xmlaccess_file.xml -url http://localhost:10040/wps/config -out message_log.txt ...
查看“PORTAL\u INSTALL\u DIR/PORTAL Server/bin目录”

如何启动XMLAccess?

./xmlaccess.sh -in your_xmlaccess_file.xml -url http://localhost:10040/wps/config -out message_log.txt ...
有关详细说明,请参阅

XMLAccess XML文件的外观如何?

./xmlaccess.sh -in your_xmlaccess_file.xml -url http://localhost:10040/wps/config -out message_log.txt ...
门户安装中有一些示例。查看
PORTAL\u INSTALL\u DIR/PORTAL Server/doc/xml示例