-4

请提供一个示例自动化脚本 (jython) 来帮助我,该脚本使用在 maximo/tivoli 7.5 中运行的自动化脚本从数据库表中检索数据

我是新来了解这些细节的。

4

3 回答 3

0

希望这会有所帮助...关于如何通过 rmi 将数据库信息加载到 maximo 中的示例

https://www.ibm.com/developerworks/community/blogs/a9ba1efe-b731-4317-9724-a181d6155e3a/entry/import_data_from_db_into_maximo_by_using_rmi_with_jython?lang=en

于 2015-04-06T20:13:02.097 回答
0

您可以查看 IBM Wiki 上的自动化脚本示例:

https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/IBM%20Maximo%20Asset%20Management/page/Customizing%20with%20automation%20scripts

于 2015-04-06T20:13:10.127 回答
0

此代码直接从表中获取数据

from psdi.security import UserInfo
from psdi.server import MXServer

maximo = MXServer.getMXServer()
ui = maximo.getSystemUserInfo()

sessionSet = maximo.getMboSet("MAXSESSION", ui)
sessionSet.setWhere ("issystem = '1'")

s = sessionSet.getMbo(0)
servername = s.getString("SERVERNAME")
print servername
于 2015-10-21T04:02:53.137 回答