DiscoveredNode
Represents NetXMS node found while performing network discovery. Is available as a $node in script that is set as DiscoveryFilter.
Instance attributes
- agentVersion: String
-
NetXMS agent version as
string.
- dnsName: String
-
Node’s DNS name, resolved by reverse lookup on first access (through the zone proxy if zoning is enabled), or
nullif the address cannot be resolved
- interfaces: Array
-
Array with node’s interfaces
- ipAddr: String
-
Node’s ip address. Deprecated and will be removed in a future version, use
ipAddressinstead.
- ipAddress ⇒ InetAddress
-
Added in version 5.1
Primary IP address.
- isAgent: bool
-
TRUEif NetXMS agent detected on node
- isBridge: bool
-
TRUEif node is a bridge
- isCDP: bool
-
TRUEif node supports CDP (Cisco Discovery Protocol)
- isLLDP: bool
-
TRUEif node supports LLDP (Link Layer Discovery Protocol)
- isPrinter: bool
-
TRUEif node is a printer
- isRouter: bool
-
TRUEif node is a router (has IP forwarding enabled)
- isSNMP: bool
-
TRUEif SNMP agent detected on node
- isSONMP: bool
-
TRUEif node supports SONMP/NDP (Synoptics/Nortel Discovery Protocol)
- isSSH: bool
-
TRUEif SSH connection is available for this node
- netMask: int
-
Network mask length (number of bits)
- platformName: String
-
Platform name reported by NetXMS agent
- snmpOID: String
-
SNMP object identifier (result of
1.3.6.1.2.1.1.2.0request)
- snmpVersion: int
-
SNMP version detected during discovery:
-
0: SNMP version 1 (also reported if SNMP was not detected, check
isSNMP) -
1: SNMP version 2c
-
3: SNMP version 3
-
- subnet: String
-
Subnet address
- zoneUIN: int
-
This node zone UIN
Instance methods
- readAgentList(name): Array
-
Requests list directly from NetXMS agent on discovered node. Returns array of strings or
nullif agent connection is not available or request failed.Table 1. Parameters name
String
List name.
- readAgentParameter(name): String
-
Requests metric directly from NetXMS agent on discovered node. Returns
nullif agent connection is not available or request failed.Table 2. Parameters name
String
Metric name.
// Discovery filter: accept only nodes running on Linux if ($node.isAgent) { osName = $node.readAgentParameter("System.Uname"); return osName != null && osName ~= "^Linux"; } return false;