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


Back to Top


NAME

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

Back to Top


SYNOPSIS

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

$VERSION = "0.02"; =head1 ISA

  DBD::Sys::Plugin::Any::NetIfconfigWrapper
  ISA DBD::Sys::Table

Back to Top


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.

Back to Top


METHODS

getTableName

Returns 'netint'.

getColNames

Returns the column names of the table as named in Columns

getPrimaryKey

Returns 'address'.

getPriority

Returns 200 to let the DBD::Sys::Plugin::Any::NetInterface manpage dominate.

collectData

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

Back to Top


PREREQUISITES

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

Back to Top


AUTHOR

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

Back to Top


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.

Back to Top


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.

Back to Top

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