The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

store_node( $ip, $vlan, $port, $mac, $now? )

Writes a fresh entry to the Netdisco node database table. Will mark old entries for this data as no longer active.

All four fields in the tuple are required. If you don't know the VLAN ID, Netdisco supports using ID "0".

Optionally, a fifth argument can be the literal string passed to the time_last field of the database record. If not provided, it defaults to LOCALTIMESTAMP.