Skip to main content

1E 23.7 (SaaS)

Network.GetArpEntries

Method

GetArpEntries

Module

Network

Library

Core

Action

Get current list of known MAC address to IP address mappings from the network adapter table and the ARP cache.

Parameters

(None)

Return values

For each MAC Address:

  • AdapterType (string): One of "Ethernet", "Token ring", "PPP", "ATM", "Wireless" or "Unknown". For local addresses only; empty for non-local.

  • AssignedBy (string): The IP address of the DHCP server which assigned the address, if applicable. For local addresses only; empty for non-local.

  • IpAddress (string): The corresponding IP address

  • IsLocal (bool): true if the mapping is from the network adapter table, else false if from the ARP cache

  • MacAddress (string): The MAC address in IEEE 802 EUI-48 notation, eg. 88-a2-5e-cc-84-80

  • Subnet (string): The IP addresses subnet in CIDR format eg 192.168.11.0/24

Example

Network.GetArpEntries();

Platforms

  • Windows

Notes

The following are filtered out:

  • Loopback adapter(s)

  • Empty (00-00-00-00-00-00) and broadcast (FF-FF-FF-FF-FF-FF) MAC addresses

  • Multicast addresses (224.0.0.0 to 239.255.255.255)

The method name is misleading because not just the ARP cache is used.