Disable Configuration Poll for All Nodes or Nodes in a container
-
-
Hi,
You can do this with nxshell script, like this:
for node in [o for o in session.getAllObjects() if isinstance(o, objects.Node)]: print 'Processing ', node.getObjectName() session.pollNode(node.getObjectId(), NodePollType.CONFIGURATION_NORMAL, None) md = NXCObjectModificationData(node.getObjectId()) md.setObjectFlags(node.getFlags() | Node.NF_DISABLE_CONF_POLL) session.modifyObject(md)You can do mass enable of configuration poll like this:
for node in [o for o in session.getAllObjects() if isinstance(o, objects.Node)]: print 'Processing ', node.getObjectName() md = NXCObjectModificationData(node.getObjectId()) md.setObjectFlags(node.getFlags() & ~Node.NF_DISABLE_CONF_POLL) session.modifyObject(md)Best regards,
Victor -
Thanks Victor
The code worked!
Could it be possible that the things that can be done with executing nxshell script be done via the management interface, it would be great for people like me who get dizzy when we see all that code, makes me wonder how you programmers can retain all that stuff in your heads.

This is you
and this is meÂ
:-[
when i see codes and scriptsThanks
Clifford
-
Hi!
Why doesn't it work?>>> md.setObjectFlags(node.getFlags() | Node.NF_DISABLE_CONF_POLL) Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: type object 'org.netxms.client.objects.Node' has no attribute 'NF_DISABLE_CONF_POLL'Or is any way to get 'Poll/Configuration full' via script?
-
Try DCF_DISABLE_CONF_POLLÂ instead
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login