Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
I'm working on an indexed PHP script that will return WMI data. The issue at hand is that only the first call to the script from the PHP Script Server "works". The output below is what happens from CLI...does anyone have an idea what could be causing this?
PHP Script Server has Started - Parent is cmd
/var/www/html/scripts/wmi_query.php wmi_query 10.0.0.1 25 cactiwmi nictraffic get BytesReceivedPerSec 0
2078530862U
/var/www/html/scripts/wmi_query.php wmi_query 10.0.0.1 25 cactiwmi nictraffic get BytesSentPerSec 0
sh: -U: command not found
U
quit
PHP Script Server Shutdown request received, exiting
TIA
---------------
[Resolved]: "include_once('wmi_config.php');" was the problem. Changed to "include('wmi_config.php');" and the script works as desired.
3.) This is just a simple example. The final script will be for Exchange mailstores where there are N+_Total mailstores. NICs seem to be the common example for indexed queries, thus it would be easy to relate.