Create containers, conditions, nodes, bind objects, etc. from filter script
-
No news, sorry. I keep this in mind, but there are always something to do. Now I'm trying to create to-do lists for each release and follow them. 1.1.8 is already scheduled, so I have added to 1.1.9 to-do.
Best regards,
Victor -
-
As a workaround, I am currently using a AutoIt script in the new java console. That script reads a external text file and create new containers, node, conditions, assigned to them several properties, transformation scripts, etc..
But I have real difficulties with interfaces list, for example to select all interfaces of a node or an interface with a certain IP, to define DCI's for one or more interfaces, etc..
Perhaps this would be easier showing all interfaces in a SysListView32 tab control in addition to deploy it in a SysTreeView32 control. -
I'm actually slowly moving towards ultimate goal - be able to do all this from NXSL scripts. Starting from 1.1.10 you already can run NXSL script as an action. Now I just need to add all necessary Create... functions.
Best regards,
Victor -
Hi Victor.
So all these limitations disappear?
Most notable one is very limited access to data outside script boundaries. For
example, from NXSL script you can neither access files on the server, nor call external programs,
nor even access data of any node object, other than the one the script is running for.Best regards
-
Hi!
Not all. I think that NXSL script should not access external files or programs. If you need that in actions, you can run external script as an actiopn. But access to other objects are possible now. There are few functions which allows you to search for nodes and other type of objects.
Best regards,
Victor -
Hi!
Since 1.2.0 version there are few NXSL functions for object manipulation:
CreateContainer
RemoveContainer
BindObject
UnbindObject
FindObjectI'll add descriptions for them in wiki (http://wiki.netxms.org/wiki/NXSL_Function_Reference).
Best regards,
Victor -
-
Yes, BindObject can bind all objects that can be bound from console - nodes, subnets, clusters, and another containers.
Best regards,
Victor -
-
Checked and corrected

Best regards,
Victor
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