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 |
|
---|
10 | package MondoRescue::Inventory;
|
---|
11 |
|
---|
12 | use strict 'vars';
|
---|
13 | use Data::Dumper;
|
---|
14 | use English;
|
---|
15 | use File::Basename;
|
---|
16 | use File::Copy;
|
---|
17 | use POSIX qw(strftime);
|
---|
18 | use lib qw (lib);
|
---|
19 | use ProjectBuilder::Base;
|
---|
20 | use ProjectBuilder::Conf;
|
---|
21 |
|
---|
22 | # Inherit from the "Exporter" module which handles exporting functions.
|
---|
23 |
|
---|
24 | use Exporter;
|
---|
25 |
|
---|
26 | # Export, by default, all the functions into the namespace of
|
---|
27 | # any code which uses this module.
|
---|
28 |
|
---|
29 | our @ISA = qw(Exporter);
|
---|
30 | our @EXPORT = qw(mr_exit);
|
---|
31 |
|
---|
32 | =pod
|
---|
33 |
|
---|
34 | =head1 NAME
|
---|
35 |
|
---|
36 | MondoRescue::Inventory, part of the mondorescue.org
|
---|
37 |
|
---|
38 | =head1 DESCRIPTION
|
---|
39 |
|
---|
40 | This modules provides inventory functions for the Mondorescue project in order to report
|
---|
41 | the precise context of the system to be archived (Hardware, Firmware and Software as much as possible)
|
---|
42 | This module aims to be OS independent
|
---|
43 |
|
---|
44 | =head1 USAGE
|
---|
45 |
|
---|
46 | =over 4
|
---|
47 |
|
---|
48 | =item B<mr_inv_hw>
|
---|
49 |
|
---|
50 | This function reports Hardware inventory of the system to archive
|
---|
51 |
|
---|
52 | =cut
|
---|
53 |
|
---|
54 | sub 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 |
|
---|
70 | This function reports Firmware inventory of the system to archive
|
---|
71 |
|
---|
72 | =cut
|
---|
73 |
|
---|
74 | sub mr_inv_fw {
|
---|
75 |
|
---|
76 | # Linked to bkphw
|
---|
77 | # On Proliant use hpacucli, conrep, hponcfg
|
---|
78 | }
|
---|
79 |
|
---|
80 | =item B<mr_inv_sw>
|
---|
81 |
|
---|
82 | This function reports Software inventory of the system to archive
|
---|
83 |
|
---|
84 | =cut
|
---|
85 |
|
---|
86 | sub mr_inv_sw {
|
---|
87 |
|
---|
88 | # Commands presence - use FindBin
|
---|
89 | # deplist
|
---|
90 | # mountlist
|
---|
91 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.