Difference between revisions of "NXSL Function Reference"

3,157 bytes added ,  16:13, 13 September 2022
m
Text replacement - "^" to "{{deprecated}}"
m (Text replacement - "^" to "{{deprecated}}")
 
(52 intermediate revisions by 9 users not shown)
Line 1: Line 1:
= Generic Functions =
{{deprecated}}
{| style="border-spacing: 20px; border: 20px solid red;"
|
'''WARNING''': This page is no longer updated. Please visit '''[https://www.netxms.org/documentation/nxsl-latest/#_function_reference NXSL Function Reference] for current version of the documentation.
|}


[[NXSL:abs|abs]]


[[NXSL:AddrInRange|AddrInRange]]


[[NXSL:AddrInSubnet|AddrInSubnet]]


[[NXSL:classof|classof]]
= Function tables =
{| {border="1" cellpadding="4" cellspacing="2" style="border:\#c9c9c9 1px solid; margin: 1em 1em 1em 0; border-collapse: collapse;"}
| align="center" style="background:#f0f0f0;"|'''Generic'''
| align="center" style="background:#f0f0f0;"|'''Math'''
| align="center" style="background:#f0f0f0;"|'''String-related'''
| align="center" style="background:#f0f0f0;"|'''Data Collection'''
| align="center" style="background:#f0f0f0;"|'''Object search'''
| align="center" style="background:#f0f0f0;"|'''Object management'''
| align="center" style="background:#f0f0f0;"|'''Network'''
|-
| [[NXSL:CountScheduledTasksByKey|CountScheduledTasksByKey]]||[[NXSL:abs|abs]]||[[NXSL:ArrayToString|ArrayToString]]||[[NXSL:CreateDCI|CreateDCI]]||[[NXSL:FindNodeObject|FindNodeObject]]||[[NXSL:BindObject|BindObject]]||[[NXSL:AddrInRange|AddrInRange]]
|-
| [[NXSL:classof|classof]]||[[NXSL:ceil|ceil]]||[[NXSL:chr|chr]]||[[NXSL:FindAllDCIs|FindAllDCIs]]||[[NXSL:FindObject|FindObject]]||[[NXSL:CreateContainer|CreateContainer]]||[[NXSL:AddrInSubnet|AddrInSubnet]]
|-
| [[NXSL:d2x|d2x]]||[[NXSL:exp|exp]]||[[NXSL:format|format]]||[[NXSL:FindDCIByDescription|FindDCIByDescription]]||[[NXSL:GetInterfaceName|GetInterfaceName]]||[[NXSL:CreateNode|CreateNode]]||[[NXSL:gethostbyaddr|gethostbyaddr]]
|-
| [[NXSL:exit|exit]]||[[NXSL:floor|floor]]||[[NXSL:index|index]]||[[NXSL:FindDCIByName|FindDCIByName]]||[[NXSL:GetInterfaceObject|GetInterfaceObject]]||[[NXSL:DeleteCustomAttribute|DeleteCustomAttribute]]||[[NXSL:gethostbyname|gethostbyname]]
|-
| [[NXSL:GetConfigurationVariable|GetConfigurationVariable]]||[[NXSL:log|log]]||[[NXSL:left|left]]||[[NXSL:GetAvgDCIValue|GetAvgDCIValue]]||[[NXSL:GetNodeInterfaces|GetNodeInterfaces]]||[[NXSL:DeleteObject|DeleteObject]]||
|-
| [[NXSL:inList|inList]]||[[NXSL:log10|log10]]||[[NXSL:length|length]]||[[NXSL:GetDCIObject|GetDCIObject]]||[[NXSL:GetNodeParents|GetNodeParents]]||[[NXSL:EnterMaintenance|EnterMaintenance]]||
|-
| [[NXSL:map|map]]||[[NXSL:pow|pow]]||[[NXSL:lower|lower]]||[[NXSL:GetDCIRawValue|GetDCIRawValue]]||[[NXSL:GetNodeTemplates|GetNodeTemplates]]||[[NXSL:GetCustomAttribute|GetCustomAttribute]]||
|-
| [[NXSL:mapList|mapList]]||[[NXSL:round|round]]||[[NXSL:ltrim|ltrim]]||[[NXSL:GetDCIValue|GetDCIValue]]||[[NXSL:GetObjectChildren|GetObjectChildren]]||[[NXSL:LeaveMaintenance|LeaveMaintenance]]||
|-
| [[NXSL:max|max]]||||[[NXSL:ord|ord]]||[[NXSL:GetDCIValues|GetDCIValues]]||[[NXSL:GetObjectParents|GetObjectParents]]||[[NXSL:ManageObject|ManageObject]]||
|-
| [[NXSL:min|min]]||||[[NXSL:right|right]]||[[NXSL:GetDCIValueByDescription|GetDCIValueByDescription]]||[[NXSL:GetAllNodes|GetAllNodes]]||[[NXSL:RenameObject|RenameObject]]||
|-
| [[NXSL:random|random]]||||[[NXSL:rindex|rindex]]||[[NXSL:GetDCIValueByName|GetDCIValueByName]]||||[[NXSL:SetCustomAttribute|SetCustomAttribute]]||
|-
| [[NXSL:sleep|sleep]]||||[[NXSL:rtrim|rtrim]]||[[NXSL:GetMaxDCIValue|GetMaxDCIValue]]||||[[NXSL:SetInterfaceExpectedState|SetInterfaceExpectedState]]||
|-
| [[NXSL:trace|trace]]||||[[NXSL:SplitString|SplitString]]||[[NXSL:GetMinDCIValue|GetMinDCIValue]]||||[[NXSL:UnbindObject|UnbindObject]]||
|-
| [[NXSL:typeof|typeof]]||||[[NXSL:substr|substr]]||[[NXSL:GetSumDCIValue|GetSumDCIValue]]||||[[NXSL:UnmanageObject|UnmanageObject]]||
|-
| [[NXSL:x2d|x2d]]||||[[NXSL:trim|trim]]||[[NXSL:PushDCIData|PushDCIData]]||||||
|-
| ||||[[NXSL:upper|upper]]||||||||
|}
<hr>


[[NXSL:d2x|d2x]]
{| {border="1" cellpadding="4" cellspacing="2" style="border:\#c9c9c9 1px solid; margin: 1em 1em 1em 0; border-collapse: collapse;"}
 
| align="center" style="background:#f0f0f0;"|'''Time-related'''
[[NXSL:exp|exp]]
| align="center" style="background:#f0f0f0;"|'''Cryptography'''
 
| align="center" style="background:#f0f0f0;"|'''SNMP'''
[[NXSL:gmtime|gmtime]]
| align="center" style="background:#f0f0f0;"|'''Agent'''
 
| align="center" style="background:#f0f0f0;"|'''Event Processing'''
[[NXSL:index|index]]
| align="center" style="background:#f0f0f0;"|'''Persistent Storage'''
 
| align="center" style="background:#f0f0f0;"|'''File I/O'''
[[NXSL:left|left]]
|-
 
| [[NXSL:gmtime|gmtime]]||[[NXSL:md5|md5]]||[[NXSL:CreateSNMPTransport|CreateSNMPTransport]]||[[NXSL:AgentReadList|AgentReadList]]||[[NXSL:FindAlarmById|FindAlarmById]]||[[NXSL:ReadPersistentStorage|ReadPersistentStorage]]||[[NXSL:CopyFile|CopyFile]]||
[[NXSL:length|length]]
|-
 
| [[NXSL:localtime|localtime]]||[[NXSL:sha1|sha1]]||[[NXSL:SNMPGet|SNMPGet]]||[[NXSL:AgentReadParameter|AgentReadParameter]]||[[NXSL:FindAlarmByKey|FindAlarmByKey]]||[[NXSL:WritePersistentStorage|WritePersistentStorage]]||[[NXSL:CreateDirectory|CreateDirectory]]||
[[NXSL:localtime|localtime]]
|-
 
| [[NXSL:SecondsToUptime|SecondsToUptime]]||[[NXSL:sha256|sha256]]||[[NXSL:SNMPGetValue|SNMPGetValue]]||[[NXSL:AgentReadTable|AgentReadTable]]||[[NXSL:FindAlarmByKeyRegex|FindAlarmByKeyRegex]]||||[[NXSL:DeleteFile|DeleteFile]]||
[[NXSL:log|log]]
|-
 
| [[NXSL:strftime|strftime]]||||[[NXSL:SNMPSet|SNMPSet]]||||[[NXSL:GetEventParameter|GetEventParameter]]||||[[NXSL:FileAccess|FileAccess]]
[[NXSL:log10|log10]]
|-
 
| [[NXSL:time|time]]||||[[NXSL:SNMPWalk|SNMPWalk]]||||[[NXSL:PostEvent|PostEvent]]||||[[NXSL:OpenFile|OpenFile]]
[[NXSL:lower|lower]]
|-
 
| [[NXSL:mktime|mktime]]||||||||[[NXSL:SetEventParameter|SetEventParameter]]||||[[NXSL:RemoveDirectory|RemoveDirectory]]||
[[NXSL:ltrim|ltrim]]
|-
 
| ||||||||||||[[NXSL:RenameFile|RenameFile]]||
[[NXSL:max|max]]
|}
 
[[NXSL:min|min]]
 
[[NXSL:pow|pow]]
 
[[NXSL:right|right]]
 
[[NXSL:rindex|rindex]]
 
[[NXSL:rtrim|rtrim]]
 
[[NXSL:sleep|sleep]]
 
[[NXSL:SecondsToUptime|SecondsToUptime]]
 
[[NXSL:strftime|strftime]]
 
[[NXSL:substr|substr]]
 
[[NXSL:time|time]]
 
[[NXSL:trace|trace]]
 
[[NXSL:trim|trim]]
 
[[NXSL:typeof|typeof]]
 
[[NXSL:upper|upper]]
 
 
= Data Collection =
 
[[NXSL:FindDCIByDescription|FindDCIByDescription]]
 
[[NXSL:FindDCIByName|FindDCIByName]]
 
[[NXSL:GetDCIObject|GetDCIObject]]
 
[[NXSL:GetDCIValue|GetDCIValue]]
 
[[NXSL:GetDCIValueByDescription|GetDCIValueByDescription]]
 
[[NXSL:GetDCIValueByName|GetDCIValueByName]]
 
[[NXSL:SNMPGet|SNMPGet]]
 
[[NXSL:SNMPGetValue|SNMPGetValue]]
 
[[NXSL:SNMPWalk|SNMPWalk]]
 
[[NXSL:GetMinDCIValue|GetMinDCIValue]]
 
[[NXSL:GetMaxDCIValue|GetMaxDCIValue]]
 
[[NXSL:GetAvgDCIValue|GetAvgDCIValue]]
 
 
= Event Processing =
 
[[NXSL:GetEventParameter|GetEventParameter]]
 
[[NXSL:PostEvent|PostEvent]]
 
[[NXSL:SetEventParameter|SetEventParameter]]
 
 
= Object Management =
 
[[NXSL:BindObject|BindObject]]
 
[[NXSL:CreateContainer|CreateContainer]]
 
[[NXSL:FindNodeObject|FindNodeObject]]
 
[[NXSL:FindObject|FindObject]]
 
[[NXSL:GetCustomAttribute|GetCustomAttribute]]
 
[[NXSL:GetInterfaceName|GetInterfaceName]]
 
[[NXSL:GetInterfaceObject|GetInterfaceObject]]
 
[[NXSL:GetNodeParents|GetNodeParents]]
 
[[NXSL:GetObjectChildren|GetObjectChildren]]
 
[[NXSL:GetObjectParents|GetObjectParents]]
 
[[NXSL:RemoveContainer|RemoveContainer]]
 
[[NXSL:SetCustomAttribute|SetCustomAttribute]]
 
[[NXSL:UnbindObject|UnbindObject]]
 
 
= Server Configuration =
 
[[NXSL:GetConfigurationVariable|GetConfigurationVariable]]
 
 
= Situations =
 
[[NXSL:FindSituation|FindSituation]]
 
[[NXSL:GetSituationAttribute|GetSituationAttribute]]
 
 
= SNMP =
 
[[NXSL:CreateSNMPTransport|CreateSNMPTransport]]
 
[[NXSL:SNMPGet|SNMPGet]]
 
[[NXSL:SNMPGetValue|SNMPGetValue]]
 
[[NXSL:SNMPSet|SNMPSet]]
 
[[NXSL:SNMPWalk|SNMPWalk]]