MMM::Host - MMM::Host documentation


mmm documentation  | view source Contained in the mmm distribution.

Index


NAME

Top

MMM::Host

DESCRIPTION

Top

An object to retain host information

METHODS

Top

new

Create a MMM::Host object from information found in hash passed as arguments.

    my $mirror MMM::Mirror->new( host => 'host.domain' );

hostname

Return the hostname of the host

revision

Return the revision of the entry. The revision is an id to identify if an entry is newer than another for same mirror.

refresh_revision

Reset revision to current timestamp

geo

Return the latitude and the longitude for this host

get_geo

Try to use various method to find latitude and longitude and return them

get_hostiploc

Get and set information from hostip.info website

get_dnsloc

Try to find geolocalisation from DNS LOC record

set_geo($latitude, $longitude)

Set the geolocalisation for this host

distance( $host )

Calcule the distance (angle in degrees) to another host

same_host($host)

Compare two host entry and return true if they identify the same computer

sync_host($host)

Get unknown values from $host if defined.

xml_output

Return a xml string describing this mirror.

See also <MMM::MirrorList::xml_output>

AUTHOR

Top

Olivier Thauvin <nanardon@nanardon.zarb.org>

COPYRIGHT AND LICENSE

Top


mmm documentation  | view source Contained in the mmm distribution.