The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

DBD::Sys::Plugin::Any::NetInterface - provides a table containing the known network interfaces

SYNOPSIS

  $netifs = $dbh->selectall_hashref("select * from netint", "interface");

$VERSION = "0.02"; =head1 ISA

  DBD::Sys::Plugin::Any::NetInterface
  ISA DBD::Sys::Table

DESCRIPTION

This module provides the table netint which contains the network interfaces configured on a host and it's assigned addresses.

COLUMNS

interface

Interface name (e.g. eth0, em0, ...)

address_family

Address family of following address

address

The address of the interface (addresses are unique, interfaces can have multiple addresses).

netmask

Netmask of the address above.

broadcast

Broadcast address for network address

hwaddress

Hardware address (MAC number) of the interface NIC.

flags_bin

Binary representation of the interface flags (at least up or down).

flags

Comma separated list of the flags.

mtu

MTU for this address in this interface.

metric

Metric for the interface/address.

METHODS

get_table_name

Returns 'netint'.

get_col_names

Returns the column names of the table as named in "Columns"

get_primary_key

Returns 'address'.

collect_data

Retrieves the data from Net::Interface and put it into fetchable rows.

PREREQUISITES

The module Net::Interface is required to provide data for the table.

AUTHOR

    Jens Rehsack                        Alexander Breibach
    CPAN ID: REHSACK
    rehsack@cpan.org                    alexander.breibach@googlemail.com
    http://www.rehsack.de/

COPYRIGHT

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.

SUPPORT

Free support can be requested via regular CPAN bug-tracking system. There is no guaranteed reaction time or solution time, but it's always tried to give accept or reject a reported ticket within a week. It depends on business load. That doesn't mean that ticket via rt aren't handles as soon as possible, that means that soon depends on how much I have to do.

Business and commercial support should be acquired from the authors via preferred freelancer agencies.