Tapper Team > Tapper-Remote-4.1.1 > Tapper::Remote::Config

Download:
Tapper-Remote-4.1.1.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: 4.1.1   Source  

NAME ^

Tapper::Remote::Config

SYNOPSIS ^

 use Tapper::Remote::Config;

NAME ^

Tapper::Remote::Config - Get configuration from Tapper host

FUNCTIONS ^

get_tapper_host

Get hostname of tapper MCP host from kernel boot parameters.

@returnlist ($host,port) - string, int - hostname and port of MCP server

gethostname

This function returns the host name of the machine. When NFS root is used together with DHCP the hostname set in the kernel usually equals the IP address received from DHCP as a string. In this case the kernel hostname is set to the DNS hostname associated to this IP address.

@return hostname of the machine as set in the kernel

get_local_data

Get local data needed for all tools running locally on NFS. The function tries to get the MCP host and fetches the config from there. This reduces any need for configuration outside MCP host and thus allows to use unchanged NFS root file systems for both testing and production, with different MCP servers and so on.

@param string - state

@return success - hash reference containing the config @return error - error string

AUTHOR ^

AMD OSRC Tapper Team <tapper@amd64.org>

COPYRIGHT AND LICENSE ^

This software is Copyright (c) 2012 by Advanced Micro Devices, Inc..

This is free software, licensed under:

  The (two-clause) FreeBSD License
syntax highlighting: