Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ledmon(8) [debian man page]

ledmon(8)					      Intel(R) Enclosure LED Monitor Service						 ledmon(8)

NAME
ledmon - Intel(R) LED monitor service for storage enclosures. SYNOPSIS
ledmon [OPTIONS] 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. OPTIONS
-c or --config=path Sets a path to local configuration file. If this option is specified the global configuration file and user configuration file has no effect. -l or --log=path Sets a path to local log file. If this option is specified the global log file /var/log/ledmon.log is not used. -t or --interval=seconds Sets time interval between scans of sysfs. The value is given in seconds. The minimum is 5 seconds the maximum is not specified. --quiet or --error or --warning or --info or --debug or --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. -h or --help Prints this text out and exits. -v or --version Displays version of ledmon and information about the license and exits. FILES
/var/log/ledmon.log Global log file, used by ledmon application. To force logging to user defined file use -l option switch. ~/.ledctl User configuration file, shared between ledmon and all ledctl application instances. /etc/ledcfg.conf Global configuration file, shared between ledmon and all ledctl application instances. 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. BUGS
The ledmon application does not recognize PFA state (Predicted Failure Analysis), hence the PFA pattern from SFF-8489 specification is not visualized. SEE ALSO
ledctl(8), ledctl.conf(5) AUTHOR
This manual page was written by Artur Wojcik <artur.wojcik@intel.com>. It may be used by others. LEDMON Version 0.32 February 2012 ledmon(8)

Check Out this Related Man Page

XkbAddDeviceLedInfo(3)						   XKB FUNCTIONS					    XkbAddDeviceLedInfo(3)

NAME
XkbAddDeviceLedInfo - Initialize an XkbDeviceLedInfoRec structure SYNOPSIS
XkbDeviceLedInfoPtr XkbAddDeviceLedInfo (XkbDeviceInfoPtr device_info, unsigned int led_class, unsigned int led_id); ARGUMENTS
- device_info structure in which to add LED info - led_class input extension class for LED device of interest - led_id input extension ID for LED device of interest DESCRIPTION
XkbAddDeviceLedInfo first checks to see whether an entry matching led_class and led_id already exists in the device_info->leds array. If it finds a matching entry, it returns a pointer to that entry. Otherwise, it checks to be sure there is at least one empty entry in device_info->leds and extends it if there is not enough room. It then increments device_info->num_leds and fills in the next available entry in device_info->leds with led_class and led_id. If successful, XkbAddDeviceLedInfo returns a pointer to the XkbDeviceLedInfoRec structure that was initialized. If unable to allocate suf- ficient storage, or if device_info points to an invalid XkbDeviceInfoRec structure, or if led_class or led_id are inappropriate, XkbAddDe- viceLedInfo returns NULL. To allocate additional space for button actions in an XkbDeviceInfoRec structure, use XkbResizeDeviceButtonActions. STRUCTURES
Information about X Input Extension devices is transferred between a client program and the Xkb extension in an XkbDeviceInfoRec structure: typedef struct { char * name; /* name for device */ Atom type; /* name for class of devices */ unsigned short device_spec; /* device of interest */ Bool has_own_state; /* True=>this device has its own state */ unsigned short supported; /* bits indicating supported capabilities */ unsigned short unsupported; /* bits indicating unsupported capabilities */ unsigned short num_btns; /* number of entries in btn_acts */ XkbAction * btn_acts; /* button actions */ unsigned short sz_leds; /* total number of entries in LEDs vector */ unsigned short num_leds; /* number of valid entries in LEDs vector */ unsigned short dflt_kbd_fb; /* input extension ID of default (core kbd) indicator */ unsigned short dflt_led_fb; /* input extension ID of default indicator feedback */ XkbDeviceLedInfoPtr leds; /* LED descriptions */ } XkbDeviceInfoRec, *XkbDeviceInfoPtr; typedef struct { unsigned short led_class; /* class for this LED device*/ unsigned short led_id; /* ID for this LED device */ unsigned int phys_indicators; /* bits for which LEDs physically present */ unsigned int maps_present; /* bits for which LEDs have maps in maps */ unsigned int names_present; /* bits for which LEDs are in names */ unsigned int state; /* 1 bit => corresponding LED is on */ Atom names[XkbNumIndicators]; /* names for LEDs */ XkbIndicatorMapRec maps; /* indicator maps for each LED */ } XkbDeviceLedInfoRec, *XkbDeviceLedInfoPtr; SEE ALSO
XkbResizeDeviceButtonActions(3) X Version 11 libX11 1.3.2 XkbAddDeviceLedInfo(3)
Man Page