NetXMS Support Forum

English Support => General Support => Topic started by: zshnet on May 20, 2016, 09:29:06 PM

Title: Disable DCI in script?
Post by: zshnet on May 20, 2016, 09:29:06 PM
Hi all,

I may have missed this somewhere, but I can't set the status of a DCI to disabled from a script. Is there a specific way to do this? I'd like to disable certain interface DCIs after the configuration poll. Just trying to assign a number to the DCI->status variable results in an error.

Thanks!
Title: Re: Disable DCI in script?
Post by: Borgso on May 23, 2016, 11:42:07 AM
I have same question, managed to break different DCI on 1000 no-agent nodes when upgrading nxagent i use as Proxy (Specific request against inhouse webservice/http on equipment..)
The DCI's was auto disabled due to unsupported, and i would love to bulk enable all.. I have list of all DCI IDs..

EDIT: nevermind, autoactivated on next poll..
Title: Re: Disable DCI in script?
Post by: Victor Kirhenshtein on May 24, 2016, 06:09:38 PM
Hi,

currently it's not possible. You only can bulk enable/disable DCIs using nxshell scripts.

Best regards,
Victor
Title: Re: Disable DCI in script?
Post by: zshnet on May 27, 2016, 06:37:31 PM
Great! That was exactly what I needed. I wrote an nxshell script to enable/disable the DCIs. It's unfortunate that I can't do it in NXSL but at least it works.

Thanks!
Title: Re: Disable DCI in script?
Post by: sarangtc on January 07, 2024, 03:11:40 AM
can you share this nxshell script?
I could not find the method for disabling DCI