1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
|
#
# Intel(R) Enclosure LED Utilities
# Copyright (C) 2009,2011, Intel Corporation.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2, as published by the Free Software Foundation.
#
# This program is distributed in the hope it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
#
=head1 NAME
ledmon - Intel(R) LED monitor service for storage enclosures.
=head1 SYNOPSIS
B<ledmon> [I<OPTIONS>]
=head1 DESCRIPTION
The ledmon application is a daemon process used to monitor a state of
software RAID devices (md only) or a state of block devices. The state
is visualizing on LEDs associated to each slot in an enclosure or a
drive bay. There are two types of system: 2-LEDs system (Activity LED,
Status LED) and 3-LEDs system (Activity LED, Locate LED, Fail
LED). This application has the highest priority when accessing the
LEDs.
The ledmon application uses SGPIO and SES-2 protocol to control
LEDs. The program implements IBPI patterns of SFF-8489 specification
for SGPIO. Please note some enclosures do not stick close to SFF-8489
specification. It might happen that enclosure processor will accept
IBPI pattern but it will blink LEDs not according to SFF-8489
specification or it has limited number of patterns supported.
LED management (AHCI) and SAF-TE protocols are not supported.
There's no method provided to specify which RAID volume should be monitored
and which not. The ledmon application monitors all RAID devices and visualizes
their state.
The ledmon application has been verified to work with Intel(R) storage
controllers (i.e. Intel(R) AHCI controller). The application might work with
storage controllers of other vendors (especially SAS/SCSI
controllers). However storage controllers of other vendors have not been
tested.
The ledmon application is part of Intel(R) Enclosure LED Utilities. Only
single instance of the application is allowed.
=head1 OPTIONS
=over 8
=item B<-c> or B<--config>=I<path>
Sets a path to local configuration file. If this option is specified the
global configuration file and user configuration file has no effect.
=item B<-l> or B<--log>=I<path>
Sets a path to local log file. If this option is specified the global log
file F</var/log/ledmon.log> is not used.
=item B<-t> or B<--interval>=I<seconds>
Sets time interval between scans of sysfs. The value is given in seconds.
The minimum is 5 seconds the maximum is not specified.
=item B<--quiet> or B<--error> or B<--warning> or B<--info> or B<--debug> or B<--all>
Verbose level - 'quiet' means no logging at all and 'all' means to log
everything. The levels are given in order. If user specifies more then one
verbose option the last option comes into effect.
=item B<-h> or B<--help>
Prints this text out and exits.
=item B<-v> or B<--version>
Displays version of ledmon and information about the license and exits.
=back
=head1 FILES
=over 8
=item F</var/log/ledmon.log>
Global log file, used by ledmon application. To force logging to user defined
file use I<-l> option switch.
=item F<~/.ledctl>
User configuration file, shared between ledmon and all ledctl application
instances.
=item F</etc/ledcfg.conf>
Global configuration file, shared between ledmon and all ledctl application
instances.
=back
=head1 LICENSE
Copyright (c) 2009 Intel Corporation.
This program is distributed under the terms of the GNU General Public License
as published by the Free Software Foundation. See the build-in help for details
on the License and the lack of warranty.
=head1 BUGS
The ledmon application does not recognize PFA state (Predicted Failure Analysis),
hence the PFA pattern from SFF-8489 specification is not visualized.
=head1 SEE ALSO
ledctl(8), ledctl.conf(5)
=head1 AUTHOR
This manual page was written by Artur Wojcik <artur.wojcik@intel.com>. It may
be used by others.
|