discovery.runCommand - Documentation for BMC Discovery 11.3
publisher_command := '%javacmd_path% -version';
// Run java -version and extract the publisher
ran_pub_cmd := discovery.runCommand(host, publisher_command);
...
...
if ran_pub_cmd then log.debug("Publisher command output: %ran_pub_cmd.result%"); cmd_publisher := regex.extract(ran_pub_cmd.result, regex'(?i)(hotspot|gnu|ibm|bea|sun)', raw'\1');
end if;