Oliver Gorwits > App-Netdisco-2.018000 > App::Netdisco::Core::Arpnip



Annotate this POD


View/Report Bugs
Source   Latest Release: App-Netdisco-2.033006




Helper subroutines to support parts of the Netdisco application.

There are no default exports, however the :all tag will export all subroutines.


do_arpnip( $device, $snmp )

Given a Device database object, and a working SNMP connection, connect to a device and discover its ARP cache for IPv4 and Neighbor cache for IPv6.

Will also discover subnets in use on the device and update the Subnets table.

store_arp( $mac, $ip, $now? )

Stores a new entry to the node_ip table with the given MAC, and IP (v4 or v6).

Will mark old entries for this IP as no longer active.

Optionally a literal string can be passed in the fourth argument for the time_last timestamp, otherwise the current timestamp (now()) is used.

resolve_node_names( $device )

Given a Device database object, resolve Node IP (ARP) entries belonging to this device into DNS names, and store them in the node_ip database table.

This action is usually queued following do_arpip so that it may run asynchronously, and/or on another daemon worker node.

syntax highlighting: