Control-m 批处理作业跨越单一实例 ActiveEx 服务器的多个版本



作为批处理作业的一部分,我通过 control-m 创建了 4 个命令行,这些命令行调用用 VB6 编写的旧版控制台应用程序。控制台应用程序调用 ActiveEx 服务器,该服务器执行一组计算输出的分析作业。ActiveEx 服务器被编码为单例,但当通过 control-m 调用时,我会运行 4 个实例。一旦作业完成并且命令行已自行关闭,ActiveEx 服务器就不会关闭。

我创建了 4 个.bat文件,这些文件曾经在服务器上手动启动,模拟通过 control-m 进行的调用,ActiveEx 服务器的行为符合预期,即只有 1 个实例在运行,一旦完成,它就会优雅地关闭。

我做错了什么?

Control-M 作业在服务帐户下运行,它与我们以用户身份登录并执行作业相同。您是如何测试的?您是逐个手动执行每个批处理作业,还是从不同的终端同时执行所有批处理作业?你可以做一件事。以时间间隔运行 control-M 作业,例如第一个在 09.00,第二个在 09.05,第三个在 09.10,第四个在 09.15,看看是否可以解决您的问题。

也许您的作业无法使用桌面环境。

检查您的代理服务设置:登录身份:

运行 Control-M 代理服务的用户帐户。

有效值:

Local System Account – Service logs on as the system account.
Allow Service to Interact with Desktop – This option is valid only if the service is running as a local system account. 

已选择 – 该服务在桌面上提供用户界面,该用户界面可以 由启动服务时登录的任何人使用。违约。

未选择 – 服务不提供用户界面。

This Account – User account under which Control‑M Agent service will run.
NOTE: If the owner of any Control-M/Server jobs has a "roaming profile" or if job output (OUTPUT) will be copied to or from other computers, the Log in mode must be set to This Account.

默认值:本地系统帐户

相关内容

最新更新