NAME

App::Netdisco::Core::Nbtstat

DESCRIPTION

Helper subroutines to support parts of the Netdisco application.

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

EXPORT_OK

do_nbtstat( $node )

Connects to node and gets NetBIOS information. Then adds entries to node_nbt table.

Returns whether a node is answering netbios calls or not.

store_nbt($nb_hash_ref, $now?)

Stores entries in node_nbt table from the provided hash reference; MAC mac, IP ip, Unique NetBIOS Node Name nbname, NetBIOS Domain or Workgroup domain, whether the Server Service is running server, and the current NetBIOS user nbuser.

Adds new entry or time stamps matching one.

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