NAME

LCFG::SysInfo - Perl module for accessing system information resources

VERSION

This documentation refers to LCFG::SysInfo version 1.2.1

SYNOPSIS

my $sysinfo = LCFG::SysInfo->new();

my $lcfgbin = $sysinfo->get_path('lcfgbin');

my $arch = $sysinfo->get_info('arch');

DESCRIPTION

This module provides an object-oriented interface to the resources contained within the 'sysinfo' component. That is a collection of data describing the system, such as os_id, arch and general path information for LCFG.

SUBROUTINES/METHODS

new($host)

Create the LCFG::SysInfo instance, optionally specifying the hostname for which you want system information.

get_path($path_name)

Get the path for the specific path key name, e.g. lcfgbin or lcfgsbin.

get_info($key_name)

Get the system information related to the specific key name, e.g. os_id or arch.

refresh()

Refresh the sysinfo cache, could be used if you want to keep the object around for a while and the client component might update the sysinfo resources in the meantime.

CONFIGURATION AND ENVIRONMENT

This module is designed to work in an LCFG managed environment.

DEPENDENCIES

This module needs the LCFG profile to be downloaded and processed and for the sysinfo component resources to be available. It requires the LCFG::Resources module to access the resources.

SEE ALSO

This module provides Perl access to the resources stored in the LCFG sysinfo component. For full details of the resources see lcfg-sysinfo(8). For access to the information within Perl-based LCFG components see LCFG::Component.

PLATFORMS

This is the list of platforms on which we have tested this software. We expect this software to work on any Unix-like platform which is supported by Perl.

Fedora13, ScientificLinux5, ScientificLinux6

BUGS AND LIMITATIONS

There are no known bugs in this application. Please report any problems to bugs@lcfg.org, feedback and patches are also always very welcome.

AUTHOR

Stephen Quinney <squinney@inf.ed.ac.uk>

LICENSE AND COPYRIGHT

Copyright (C) 2007,2008 University of Edinburgh. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the terms of the GPL, version 2 or later.