source: MondoRescue/devel/mr/lib/MondoRescue/Inventory.pm@ 2467

Last change on this file since 2467 was 2467, checked in by Bruno Cornec, 14 years ago

--Cette ligne, et les suivant- Prepare an inventory module to group all existing split functions and allo for call from other
-- es ci-dessous, seront ignorées--
A devel/mr/lib/MondoRescue/Inventory.pm

File size: 1.5 KB
Line 
1#!/usr/bin/perl -w
2#
3# Subroutines brought by the MondoRescue project to do HW/FW/SW inventory
4#
5# $Id$
6#
7# Copyright B. Cornec 2008
8# Provided under the GPL v2
9
10package MondoRescue::Inventory;
11
12use strict 'vars';
13use Data::Dumper;
14use English;
15use File::Basename;
16use File::Copy;
17use POSIX qw(strftime);
18use lib qw (lib);
19use ProjectBuilder::Base;
20use ProjectBuilder::Conf;
21
22# Inherit from the "Exporter" module which handles exporting functions.
23
24use Exporter;
25
26# Export, by default, all the functions into the namespace of
27# any code which uses this module.
28
29our @ISA = qw(Exporter);
30our @EXPORT = qw(mr_exit);
31
32=pod
33
34=head1 NAME
35
36MondoRescue::Inventory, part of the mondorescue.org
37
38=head1 DESCRIPTION
39
40This modules provides inventory functions for the Mondorescue project in order to report
41the precise context of the system to be archived (Hardware, Firmware and Software as much as possible)
42This module aims to be OS independent
43
44=head1 USAGE
45
46=over 4
47
48=item B<mr_inv_hw>
49
50This function reports Hardware inventory of the system to archive
51
52=cut
53
54sub mr_inv_hw {
55
56 # Keyboard
57 # Raid SW - DM
58 # Partitions
59 # FS/swaps
60 # LVM / ...
61 # messages/dmesg
62 # Kernel / Initrd
63 # Kernel Modules
64 # cmdline
65
66}
67
68=item B<mr_inv_fw>
69
70This function reports Firmware inventory of the system to archive
71
72=cut
73
74sub mr_inv_fw {
75
76 # Linked to bkphw
77 # On Proliant use hpacucli, conrep, hponcfg
78}
79
80=item B<mr_inv_sw>
81
82This function reports Software inventory of the system to archive
83
84=cut
85
86sub mr_inv_sw {
87
88 # Commands presence - use FindBin
89 # deplist
90 # mountlist
91}
Note: See TracBrowser for help on using the repository browser.