Надо создать через консоль обьект "mobile device" (в любом контейнере под "Infrastructure Services"), в поле "Device ID" вписать 353966050600936. По device ID сервер определяет, к какому именно обьекту относится подключившийся агент.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
C:\Source\NetXMS\x64\debug>cat test13.nxsl
if ($1 == null)
$1 = 1.234567;
println "floor(" . $1 . ") = " . floor($1);
println "ceil(" . $1 . ") = " . ceil($1);
println "round(" . $1 . ") = " . round($1);
println "round(" . $1 . ", 2) = " . round($1, 2);
C:\Source\NetXMS\x64\debug>nxscript test13.nxsl
NetXMS Scripting Host Version 1.2.6
Copyright (c) 2005-2012 Victor Kirhenshtein
floor(1.234567) = 1.000000
ceil(1.234567) = 2.000000
round(1.234567) = 1.000000
round(1.234567, 2) = 1.230000
C:\Source\NetXMS\x64\debug>nxscript test13.nxsl 2.378
NetXMS Scripting Host Version 1.2.6
Copyright (c) 2005-2012 Victor Kirhenshtein
floor(2.378) = 2.000000
ceil(2.378) = 3.000000
round(2.378) = 2.000000
round(2.378, 2) = 2.380000
C:\Source\NetXMS\x64\debug>nxscript test13.nxsl 2.98
NetXMS Scripting Host Version 1.2.6
Copyright (c) 2005-2012 Victor Kirhenshtein
floor(2.98) = 2.000000
ceil(2.98) = 3.000000
round(2.98) = 3.000000
round(2.98, 2) = 2.980000
C:\Source\NetXMS\x64\debug>
C:\Source\NetXMS\x64\debug>cat test14.nxsl
if ($1 == null)
$1 = 1.234567;
println "format(" . $1 . ", 1, 2) = " . format($1, 1, 2);
println "format(floor(" . $1 . "), 1, 0) = " . format(floor($1), 1, 0);
C:\Source\NetXMS\x64\debug>
C:\Source\NetXMS\x64\debug>nxscript test14.nxsl
NetXMS Scripting Host Version 1.2.6
Copyright (c) 2005-2012 Victor Kirhenshtein
format(1.234567, 1, 2) = 1.23
format(floor(1.234567), 1, 0) = 1
C:\Source\NetXMS\x64\debug>nxscript test14.nxsl 17.5672334
NetXMS Scripting Host Version 1.2.6
Copyright (c) 2005-2012 Victor Kirhenshtein
format(17.5672334, 1, 2) = 17.57
format(floor(17.5672334), 1, 0) = 17
C:\Source\NetXMS\x64\debug>
