NetXMS Support Forum

English Support => General Support => Topic started by: gkaudewitz on January 15, 2013, 10:40:57 PM

Title: Starting Script for Interface from Managementconsole
Post by: gkaudewitz on January 15, 2013, 10:40:57 PM
hello together,

is there a way to start a netxms script at the management console for a specific interface of a node where node and Interfacedata are passed to.
Somthing like Your builtin DCI-Creation for an interface a little bit more flexible and expandable e.g. generating a set set of DCIs for that interface or node controlled by a self written script.

Best regards

Georg

B.T.W.: Is there just a possibility to create a DCI with it's parameters via script?
Title: Re: Starting Script for Interface from Managementconsole
Post by: Victor Kirhenshtein on January 16, 2013, 06:20:32 PM
Hi!

Both is not possible - you cannot run script on node, and you cannot create DCI from script. Idea is good, I'll add feature request for that (#219, #220).

Best regards,
Victor
Title: Re: Starting Script for Interface from Managementconsole
Post by: SKYnv on January 17, 2013, 05:30:35 AM
Quote from: Victor Kirhenshtein on January 16, 2013, 06:20:32 PM
Hi!

Both is not possible - you cannot run script on node, and you cannot create DCI from script. Idea is good, I'll add feature request for that (#219, #220).

Best regards,
Victor

Victor it possible with templates and autobind scripts for them.
Title: Re: Starting Script for Interface from Managementconsole
Post by: Victor Kirhenshtein on January 17, 2013, 03:53:07 PM
It's not exactly the same - using templates you cannot create DCIs depending on node capabilities (for example, enumerate all interfaces and create DCI for each interface).

Best regards,
Victor
Title: Re: Starting Script for Interface from Managementconsole
Post by: gkaudewitz on August 06, 2013, 12:57:12 PM
Implementing this feature for interfaces DCI-Class should be expanded by several DCI-Properties you can access by GUI like defining delta calculation, transformscript, performance Tab Attributes, thresholds and custom sceduled polls.
Best regards
Georg
Title: Re: Starting Script for Interface from Managementconsole
Post by: sperlm on August 15, 2013, 11:58:40 AM
Not sure if I understood the OP post well so I will just comment on what I achieved with automated creation of DCIs.

I have got a script that scans all possible ports for a node and then creates DCIs with predefined OIDs. Not a script I am proud of but it works somehow...
Basically I can mass-create DCIs if I manually state what sort of base OIDs to use and what types to include. Could expand this to automatically select base OIDs based on device OID.

If I add this to automatic applied scripts it should be possible to create DCIs based on device type.

I mean - creating DCI from script with CreateDCI function is working... so I am just wondering what was the request in the OP and why the statement "you cannot create DCI from script" ?

With regards,

Milan Sperl