NetXMS Support Forum

English Support => General Support => Topic started by: jdl on November 06, 2014, 05:54:16 PM

Title: Any setDCIValue?
Post by: jdl on November 06, 2014, 05:54:16 PM
Hi,

Is there any function similar to setDCIValue?

That could be useful while executing a script attached to an event policy to define the next value of a DCI based on event parameters and/or last DCI value (or some other DCI values) for example. Unless this can be done differently.

Br,
Jdamien
Title: Re: Any setDCIValue?
Post by: jdl on November 06, 2014, 05:56:45 PM
Ok using nxpush as action within an external Perl script for example.
But what if you would need to perform this type of action from within a script?
Title: Re: Any setDCIValue?
Post by: Victor Kirhenshtein on November 18, 2014, 11:30:12 PM
Hi,

currently it's not possible in a straight way. In not very straight way, it could be like call PostEvent from script, put an external script action for this new event, and use nxpush from that internal script.
There is a feature request for push data function in NXSL. Most likely it will be implemented in 2.0-M1 or 2.0-M2.

Best regards,
Victor