NetXMS Support Forum

English Support => General Support => Topic started by: ascendo on March 27, 2008, 05:58:20 PM

Title: DCI via VBScript through Agent
Post by: ascendo on March 27, 2008, 05:58:20 PM
Hi everyone

Is there a way to collect data and generate events through VBscript code run by the agent? If this is possible, is there an easy way to send the code to be run to multiple agents at once?

Thanks
Title: Re: DCI via VBScript through Agent
Post by: Victor Kirhenshtein on April 03, 2008, 08:47:57 AM
Hello!

You can call external commands from agent by creating new parameters with ExternalParameter configuration option. As an external command you can use cscript to run your vbscripts. Agent will return first line of script output as a value of parameter.
You can also look at this topic for some examples of ExternalParameter usage:
https://www.netxms.org/forum/index.php/topic,255.0.html (https://www.netxms.org/forum/index.php/topic,255.0.html)

Best regards,
Victor