Recent posts

#1
General Support / Re: Standard NetXML modules ar...
Last post by lroytman - Today at 10:45:39 PM
Hi Victor,

Please, see here: https://netxms.org/documentation/nxsl-latest/#func-right
It says:  [color=rgba(0, 0, 0, 0.6)]This function is deprecated starting from version 5.0.[/color][color=rgba(0, 0, 0, 0.6)] Please use [/color]String::right()

Regards,

Leo
#2
Hi,

is this:
String::right("Test", 2);
really in documentation somewhere? Or some text/example that suggests this is the correct way? Because it is incorrect and never was.
Module::function syntax is supported since 4.x, and some functions were indeed moved to system packages in version 5, but there never been module "String".

Best regards,
Victor
#3
General Support / Re: Standard NetXML modules ar...
Last post by lroytman - Today at 09:46:12 PM
Thank you, Filipp, for your quick reply. After another turn of script corrections they seem to be working now.
It is unfortunate that documentation has not been updated. And compilation diagnostics has not been updated too. We wasted quite a few hours because of that. And, as compilation does not catch deprecated code, we cannot be sure we have not missed some places which can fail on execution.

Regards,

Leo
#4
General Support / Re: Standard NetXML modules ar...
Last post by Filipp Sudanov - Today at 08:21:26 PM
String functions were deprecated, now string methods should be used:

a = "abc";
b = a.right(2);
println(b);

Documentation should be up to date: https://www.netxms.org/documentation/nxsl-latest/#class-string
#5
General Support / Standard NetXML modules are no...
Last post by lroytman - Today at 07:53:53 PM
Hi,

We've upgraded our NetXMS installation from 4.5.0 to 5.0.2. Then we had to replace all deprecated functions in our EPP scripts. Now EPP scripts are being compiled successfully.
However, actual execution generates an error - Script (EPP::1) execution error: Script load failed
When we try to Execute Script on a node, even simple
String::right("Test", 2);
gives the following error: 
Cannot execute script: Script compilation error (Error 16 in line 1:Requested module not found or cannot be loaded)

Any recommendations on how to fix the issue?

Thank you,

Leo

#6
Announcements / NetXMS 5.0 patch release 3
Last post by Victor Kirhenshtein - May 16, 2024, 06:21:45 PM
We have published patch release 3 for version 5.0. It fixes yet another (hopefully last one!) bug in database upgrade procedure, as well as few other less important issues. Full change log is following:

- Notification channel driver "Shell" escapes single quote character during exec-type command line expansion
- Priority inclusion rules in UI element filter
- Macro expansion in API call executeLibraryScript works for all object classes
- Improved handling of large number of simultaneous ICMP ping requests
- Fixed bug in database upgrade procedure
- Fixed deadlock in web UI
- Fixed issues:
   - NX-2521 (ICMP.PacketLoss internal DCI collects 0 after server restart)
   - NX-2529 (Option to enable/disable Version Number on Web interface)
#7
General Support / Re: Server not starting after ...
Last post by Victor Kirhenshtein - May 16, 2024, 08:23:36 AM
Windows server binaries for version 5.0.3 already in archive, we will update web site and publish deb packages during the day.

Best regards,
Victor
#8
General Support / Re: Database upgrade after Net...
Last post by Victor Kirhenshtein - May 16, 2024, 08:23:25 AM
Windows server binaries for version 5.0.3 already in archive, we will update web site and publish deb packages during the day.

Best regards,
Victor
#9
General Support / Re: Database upgrade after Net...
Last post by maredcz - May 15, 2024, 03:12:17 PM
Perfect. Thank You very much.

Martin
#10
General Support / Re: Database upgrade after Net...
Last post by Victor Kirhenshtein - May 15, 2024, 02:55:58 PM
We just fixed bug in database upgrade, we will start packing release 5.0.3 soon.

Best regards,
Victor