简体   繁体   English

使用PHP显示HTCondor状态

[英]Displaying HTCondor status using PHP

I am currently trying to display the output of the HTCondor command "condor_q" in a browser as part of a front-end I am developing. 我目前正在尝试在浏览器中显示HTCondor命令“ condor_q”的输出,作为我正在开发的前端的一部分。 I am working with PHP and have tried echo exec("condor_q"), echo shell_exec() and echo system() with nothing being displayed. 我正在使用PHP,并且尝试了echo exec(“ condor_q”),echo shell_exec()和echo system()而未显示任何内容。

The front-end is running on a single machine using the web server Xampp on Ubuntu 16.04. 前端使用Ubuntu 16.04上的Web服务器Xampp在单台计算机上运行。

I would appreciate it if any has suggestion on how I can resolve this issue 如果有人对如何解决此问题提出建议,我将不胜感激

Thanks 谢谢

You could enable HTCondor SOAP Feature: 您可以启用HTCondor SOAP功能:

Add this to your config file (/etc/condor/config.d/condor_config.local ) 将此添加到您的配置文件(/etc/condor/config.d/condor_config.local)

ENABLE_SOAP = TRUE
ALLOW_SOAP = *
SCHEDD_ARGS = -p 8080
ENABLE_WEB_SERVER = TRUE
WEB_ROOT_DIR=/usr/share/condor/webservice/

Then generate the SOAP Php client stub () 然后生成 SOAP Php客户端存根()


Another option is simply parser the condor_q command 另一个选择是简单地解析condor_q命令

% condor_q -submitter jdoe -format "%s" Owner -format " %s " Args -format "ProcId = %d\n" ProcId

Also be aware that the built-in SOAP API support in HTCondor is expected to go away in the v8.7 release series sometime later this year, as times and tastes have changed. 还应注意,随着时间和口味的变化,HTCondor的内置SOAP API支持预计将在今年晚些时候的v8.7版本系列中消失。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM