LCFG::SysInfo - Perl module for accessing system information resources
This documentation refers to LCFG::SysInfo version 1.0.0
my $sysinfo = LCFG::SysInfo->new();
my $lcfgbin = $sysinfo->get_path('lcfgbin');
my $arch = $sysinfo->get_info('arch');
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.
Create the LCFG::SysInfo instance, optionally specifying the hostname for which you want system information.
Get the path for the specific path key name, e.g. lcfgbin or lcfgsbin.
Get the system information related to the specific key name, e.g. os_id or arch.
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.
This module is designed to work in an LCFG managed environment.
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.
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.
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.
Fedora3, Solaris9, Fedora5, Fedora6, ScientificLinux5
There are no known bugs in this application. Please report any problems to bugs@lcfg.org, feedback and patches are also always very welcome.
Stephen Quinney <squinney@inf.ed.ac.uk>
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.