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

CreateNode

5.0

createNode() of Container, Collector or ServiceRoot class

CreateSNMPTransport

3.0

method createSNMPTransport of class Node

DeleteCustomAttribute

3.0

deleteCustomAttribute() method of NetObj class

DeleteObject

3.0

delete() method of NetObj 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, Event or Alarm

floor

5.0

Math::Floor

format

5.0

FormatNumber

GetCustomAttribute

3.0

getCustomAttribute() method of NetObj 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

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

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() 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

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

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