Package org.netxms.client
Class NetworkScanResult
java.lang.Object
org.netxms.client.NetworkScanResult
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedParse from CMD_RANGE_SCAN_RESULT message. -
Method Summary
-
Field Details
-
PROBE_AGENT
public static final int PROBE_AGENT- See Also:
-
PROBE_SNMP
public static final int PROBE_SNMP- See Also:
-
REPORT_UNREACHABLE
public static final int REPORT_UNREACHABLE- See Also:
-
RESOLVE_HOSTNAMES
public static final int RESOLVE_HOSTNAMES- See Also:
-
PROBE_MODBUS
public static final int PROBE_MODBUS- See Also:
-
PROBE_ETHERNET_IP
public static final int PROBE_ETHERNET_IP- See Also:
-
HOST_REACHABLE
public static final int HOST_REACHABLE- See Also:
-
HAS_AGENT
public static final int HAS_AGENT- See Also:
-
HAS_SNMP
public static final int HAS_SNMP- See Also:
-
HAS_TCP_PORT_OPEN
public static final int HAS_TCP_PORT_OPEN- See Also:
-
HAS_MODBUS
public static final int HAS_MODBUS- See Also:
-
HAS_ETHERNET_IP
public static final int HAS_ETHERNET_IP- See Also:
-
-
Constructor Details
-
NetworkScanResult
Parse from CMD_RANGE_SCAN_RESULT message.- Parameters:
msg- incoming message
-
-
Method Details
-
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
- 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
-