Difference between revisions of "NXSL:Node"

From NetXMS Wiki
Jump to navigation Jump to search
Line 65: Line 65:
|-
|-
| status || int32 || Object status
| status || int32 || Object status
|-
| sysContact || string || SNMP system contact (value of .1.3.6.1.2.1.1.4.0)
|-
|-
| sysDescription || string || SNMP system description (value of .1.3.6.1.2.1.1.1.0)
| sysDescription || string || SNMP system description (value of .1.3.6.1.2.1.1.1.0)
|-
| sysLocation || string || SNMP system location (value of .1.3.6.1.2.1.1.6.0)
|-
|-
| zone || object ([[NXSL:Zone|Zone]]) || Zone object ('''null''' if zoning is disabled)
| zone || object ([[NXSL:Zone|Zone]]) || Zone object ('''null''' if zoning is disabled)

Revision as of 12:56, 13 September 2015

Represents NetXMS node object.

Class Name

Node


Attributes

Name Type Description
agentVersion string NetXMS agent's version
bootTime int64 Node boot time or 0 if not known (in seconds since epoch)
bridgeBaseAddress string Bridge base address (will return "000000000000" if not known or node is not a bridge/switch)
comments string Object's comments
driver string Driver name
flags uint32 Node flags (bit mask)
guid string Object's GUID
id uint32 Object's identifier
ipAddr string Primary IP address
is802_1x boolean TRUE if node supports 802.1x
isAgent boolean TRUE if NetXMS agent detected on node
isBridge boolean TRUE if node is a bridge
isCDP boolean TRUE if node supports CDP (Cisco Discovery Protocol)
isLLDP boolean TRUE if node supports LLDP (Link Layer Discovery Protocol)
isLocalMgmt boolean TRUE if node is a local management server (NetXMS server)
isPAE boolean TRUE if node supports 802.1x
isPrinter boolean TRUE if node is a printer
isRouter boolean TRUE if node is a router (has IP forwarding enabled)
isSNMP boolean TRUE if SNMP agent detected on node
isSONMP boolean TRUE if node supports SONMP/NDP (Synoptics/Nortel Discovery Protocol)
name string Object name
platformName string Platform name reported by NetXMS agent
runtimeFlags uint32 Node runtime flags (bit mask)
snmpOID string SNMP object identifier (value of .1.3.6.1.2.1.1.2.0)
snmpSysName string SNMP system name (value of .1.3.6.1.2.1.1.5.0)
snmpVersion int32 Configured SNMP version (0 for SNMP version 1, 1 for SNMP version 2c, 2 for SNMP version 3)
status int32 Object status
sysContact string SNMP system contact (value of .1.3.6.1.2.1.1.4.0)
sysDescription string SNMP system description (value of .1.3.6.1.2.1.1.1.0)
sysLocation string SNMP system location (value of .1.3.6.1.2.1.1.6.0)
zone object (Zone) Zone object (null if zoning is disabled)
zoneId int32 Zone ID (0 if zoning is disabled)

Methods

Name Description
enableAgent(boolean) Enable or disable usage of NetXMS agent for all polls
enableConfigurationPolling(boolean) Enable or disable configuration polling for a node
enableIcmp(boolean) Enable or disable usage of ICMP pings for status polls
enableSnmp(boolean) Enable or disable usage of SNMP for all polls
enableStatusPolling(boolean) Enable or disable status polling for a node
enableTopologyPolling(boolean) Enable or disable topology polling

Example (disable usage of NetXMS agent for all polls):

$node->enableAgent(false);