Class NetworkScanResult

java.lang.Object
org.netxms.client.NetworkScanResult

public class NetworkScanResult extends Object
One host's accumulated state from an interactive network range scan. Multiple updates may be delivered for the same address as additional probes detect more protocols; each update reflects the full cumulative state.
  • Field Details

  • Constructor Details

    • NetworkScanResult

      protected NetworkScanResult(NXCPMessage msg)
      Parse from CMD_RANGE_SCAN_RESULT message.
      Parameters:
      msg - incoming message
  • Method Details

    • getAddress

      public InetAddress getAddress()
      Returns:
      IP address of the scanned host
    • getRtt

      public long getRtt()
      Returns:
      ICMP round-trip time in milliseconds, or 0 if host did not respond to ICMP
    • getNodeId

      public long getNodeId()
      Returns:
      ID of existing node object with this IP address, or 0 if the address is not managed yet
    • getAgentPort

      public int getAgentPort()
      Returns:
      TCP port on which a NetXMS agent was detected, or 0 if no agent was detected
    • getSnmpVersion

      public SnmpVersion getSnmpVersion()
      Returns:
      SNMP version detected on the host, or null if no SNMP agent was detected
    • getOpenTcpPorts

      public int[] getOpenTcpPorts()
      Returns:
      list of open TCP ports detected on the host (from the user-supplied port list and the agent probe)
    • isIcmpReachable

      public boolean isIcmpReachable()
      Returns:
      true if the host responded to ICMP ping
    • isAgentDetected

      public boolean isAgentDetected()
      Returns:
      true if a NetXMS agent was detected on the host
    • isSnmpDetected

      public boolean isSnmpDetected()
      Returns:
      true if an SNMP agent was detected on the host
    • isModbusDetected

      public boolean isModbusDetected()
      Returns:
      true if a Modbus/TCP endpoint was detected on the host
    • isEtherNetIpDetected

      public boolean isEtherNetIpDetected()
      Returns:
      true if an EtherNet/IP endpoint was detected on the host
    • hasOpenTcpPorts

      public boolean hasOpenTcpPorts()
      Returns:
      true if at least one TCP port from the user-supplied list was found open
    • getFlags

      public int getFlags()
      Returns:
      raw result flags bitmask