Deprecated Functions

Functions listed here remain available for backward compatibility but should not be used in new scripts. Most were superseded in NXSL 5.0 by namespaced functions (Math::, Base64::) or by methods and attributes on the corresponding classes. Each function name links to its full description, including parameters and examples.

Function Deprecated in Use instead

abs

5.0

Math::Abs

AddrInRange

5.0

inRange() or contains() methods of InetAddress class

AddrInSubnet

5.0

sameSubnet() method of InetAddress class

AgentExecuteCommand

5.0

executeAgentCommand() method of NetObj class

AgentExecuteCommandWithOutput

5.0

executeAgentCommandWithOutput() method of NetObj class

AgentReadList

3.0

method readAgentList of class Node

AgentReadParameter

3.0

method readAgentParameter of class Node

AgentReadTable

3.0

method readAgentTable() of class Node

ArrayToString

3.0

join() method of Array

Base64Decode

5.0

Base64::Decode

Base64Encode

5.0

Base64::Encode

BindObject

3.0

bind() or bindTo() methods of NetObj class

ceil

5.0

Math::Ceil

cos

5.0

Math::Cos

CreateContainer

5.0

createContainer() method of Container, Collector or ServiceRoot class

CreateDCI

6.2

createDCI() method of DataCollectionTarget class

CreateNode

5.0

createNode() of Container, Collector or ServiceRoot class

CreateSNMPTransport

3.0

method createSNMPTransport of class Node

CreateUserAgentNotification

5.0

createUserAgentNotification() method of NetObj class

DeleteCustomAttribute

3.0

deleteCustomAttribute() method of NetObj class

DeleteObject

3.0

delete() method of NetObj class

DetectAnomalies

6.2

detectAnomalies() method of DCI class

DriverReadParameter

3.0

Node::readDriverParameter()

EnterMaintenance

3.0

enterMaintenance() method of NetObj class

EventCodeFromName

5.0

—

EventNameFromCode

5.0

—

ExpandString

—

expandString method of NetObj or Event

FindDCIByDescription

6.2

findDCIByDescription() method of DataCollectionTarget class (returns the DCI object instead of its ID)

FindDCIByName

6.2

findDCIByName() method of DataCollectionTarget class (returns the DCI object instead of its ID)

FindDCIByTag

6.2

findDCIByTag() method of DataCollectionTarget class (returns the DCI object instead of its ID)

FindDCIByTagPattern

6.2

findDCIByTagPattern() method of DataCollectionTarget class (returns the DCI object instead of its ID)

floor

5.0

Math::Floor

format

5.0

FormatNumber

GetAvgDCIValue

6.2

getAverageValue() method of DCI class

GetCustomAttribute

3.0

getCustomAttribute() method of NetObj class

GetDCIObject

6.2

findDCIById() method of DataCollectionTarget class

GetDCIRawValue

6.2

cachedRawValue attribute of DCI class, for example $node.findDCIById(id)?.cachedRawValue

GetDCIValue

6.2

cachedValue attribute of DCI class, for example $node.findDCIById(id)?.cachedValue

GetDCIValueByDescription

6.2

findDCIByDescription() and the cachedValue attribute, for example $node.findDCIByDescription(description)?.cachedValue

GetDCIValueByName

6.2

findDCIByName() and the cachedValue attribute, for example $node.findDCIByName(name)?.cachedValue

GetDCIValueByTag

6.2

findDCIByTag() and the cachedValue attribute, for example $node.findDCIByTag(tag)?.cachedValue

GetDCIValueByTagPattern

6.2

findDCIByTagPattern() and the cachedValue attribute, for example $node.findDCIByTagPattern(pattern)?.cachedValue

GetDCIValues

6.2

getValues() method of DCI class

GetDCIValuesEx

6.2

getValuesAsDataPoints() method of DCI class

GetEventParameter

5.0

getParameter method in Event

GetInterfaceName

3.4

getInterface(), getInterfaceByIndex(), getInterfaceByMACAddress() or getInterfaceByName() methods of Node class to get interface object and name attribute to get it’s name

GetInterfaceObject

3.4

getInterface(), getInterfaceByIndex(), getInterfaceByMACAddress() or getInterfaceByName() methods of Node class

GetMaxDCIValue

6.2

getMaxValue() method of DCI class

GetMinDCIValue

6.2

getMinValue() method of DCI class

GetNodeInterfaces

3.0

interfaces attribute in Node

GetNodeParents

3.0

parents attribute of NetObj class

GetNodeTemplates

3.0

templates attribute of DataCollectionTarget

GetObjectChildren

3.0

children attribute in NetObj

GetObjectParents

3.0

parents attribute in NetObj

GetSumDCIValue

6.2

getSumValue() method of DCI class

gmtime

5.0

DateTime class

index

5.0

indexOf() of the string instance

inList

5.0

split() of the string instance. Sample usage: "b" in "a,b,c".split(",")

Instance

5.0

Return an array of instance data from the instance discovery script instead (see the function page for details)

LeaveMaintenance

3.0

leaveMaintenance() method of NetObj class

left

5.0

left() of the string instance

length

5.0

length attribute of the string instance

localtime

5.0

DateTime class

lower

5.0

toLowerCase() of the string instance

ltrim

5.0

trimLeft() of the string instance

ManageObject

3.0

manage() method of NetObj class

max

5.0

Math::Max

min

5.0

Math::Min

mktime

5.0

DateTime class

pow

5.0

Math::Pow

PushDCIData

6.2

pushDCIData() method of DataCollectionTarget class

random

5.0

Math::Random

RenameObject

3.0

rename method in NetObj

replace

5.0

replace() of the string instance

right

5.0

right() of the string instance

rindex

5.0

lastIndexOf() of the string instance

round

5.0

Math::Round

rtrim

5.0

trimRight() of the string instance

SendMail

5.0

SendNotification() with an SMTP notification channel

SetCustomAttribute

3.0

setCustomAttribute method in NetObj

SetEventParameter

5.0

setNamedParameter method in Event

SetInterfaceExpectedState

3.0

setExpectedState() method of Interface class

sin

5.0

Math::Sin

SNMPGet

3.0

get method of SNMPTransport class

SNMPGetValue

3.0

getValue method of SNMPTransport class

SNMPSet

3.0

set method of SNMPTransport class

SNMPWalk

3.0

walk method of SNMPTransport class

SplitString

5.0

split() of the string instance

sqrt

5.0

Math::Sqrt

strftime

5.0

format() method of DateTime class

substr

5.0

substring() of the string instance

tan

5.0

Math::Tan

trim

5.0

trim() of the string instance

UnbindObject

3.0

unbind() and unbindFrom() methods of NetObj class

UnmanageObject

3.0

unmanage methods in NetObj

upper

5.0

toUpperCase() of the string instance