Disable DCI in script?

Started by zshnet, May 20, 2016, 09:29:06 PM

Previous topic - Next topic

zshnet

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!

Borgso

#1
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..

Victor Kirhenshtein

Hi,

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

Best regards,
Victor

zshnet

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!

sarangtc

can you share this nxshell script?
I could not find the method for disabling DCI