Jan Henning Thorsen > SNMP-Effective-1.1101 > SNMP::Effective::HostList

Download:
SNMP-Effective-1.1101.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

NAME ^

SNMP::Effective::HostList - Helper module for SNMP::Effective

DESCRIPTION ^

An object from this class holds an hash-ref where the keys are hostnames and the values are SNMP::Effective::Host objects.

METHODS ^

new

Object constructor.

length

    $int = $self->length;

Returns the number of hosts in this hostlist.

get_host

    $host_obj = $self->get_host($address);

add_host

    $self->add_host(address => $str, ...);
    $self->add_host($host_obj);

shift

    $host = $self->shift;

Remove a host object from this hostlist, and return it.

AUTHOR ^

ACKNOWLEDGEMENTS ^

COPYRIGHT & LICENSE ^

See SNMP::Effective

syntax highlighting: