Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ses(7d) [sunos man page]

ses(7D) 							      Devices								   ses(7D)

NAME
ses - SCSI enclosure services device driver SYNOPSIS
ses@target,lun DESCRIPTION
The ses device driver is an interface to SCSI enclosure services devices. These devices sense and monitor the physical conditions within an enclosure as well as allow access to the status reporting and configuration features of the enclosure (such as indicator LEDs on the enclosure.) ioctl(9E) calls may be issued to ses to determine the state of the enclosure and to set parameters on the enclosure services device. No ses driver properties are defined. Use the ses.conf file to configure the ses driver. EXAMPLES
Example 1: ses.conf File Format The following is an example of the ses.conf file format: # # Copyright (c) 1996, by Sun Microsystems, Inc. # All rights reserved. # # #ident "@(#)ses.conf 1.1 97/02/10 SMI" # name="ses" parent="sf" target=15; name="ses" parent="SUNW,pln" port=0 target=15; name="ses" parent="SUNW,pln" port=1 target=15; name="ses" parent="SUNW,pln" port=2 target=15; name="ses" parent="SUNW,pln" port=3 target=15; name="ses" parent="SUNW,pln" port=4 target=15; name="ses" parent="SUNW,pln" port=5 target=15; name="ses" class="scsi" target=15 lun=0; IOCTLS
The SES driver currently supports the SES, SAFTE and SEN enclosure service chipsets. SEN and SAFTE protocols are translated internally in the driver into SES compliant data structures. This enables the SES driver to work seamlessly with different protocols and eliminates the need to enhance user applications. SESIOC_GETNOBJ Returns an unsigned integer that represents the number of SES data structures in the enclosure services chip. SESIOC_GETOBJMAP Returns a size array containing ses_object elements communicated through SESIOC_GETNOBJ(). ses_object is defined in sesio.h. SESIOC_INIT Instructs the device to perform a self-diagnostic test. Currently SES & SEN devices always return success. SESIOC_GETENCSTAT Returns an unsigned character that represents status enclosure as defined by Table 25 in Section 7.1.2 of the SES specification NCITS 305-199x. SESIOC_GETOBJSTAT This ioctl is passed an ses_objarg containing the obj_id you want to set, then fills in the remaining fields according to element sta- tus page of the SES specification. SESIOC_SETOBJSTAT Sets options in the control field. You set control field options by filling out all fields in ses_objarg. Field definitions are pre- sented in Section 7.2.2 of the SES specification. FILES
/kernel/drv/ses.conf Driver configuration file ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Architecture |SPARC | +-----------------------------+-----------------------------+ SEE ALSO
driver.conf(4), attributes(5), esp(7D), isp(7D), ioctl(9E) SunOS 5.10 9 Jun 2003 ses(7D)

Check Out this Related Man Page

SES(4)							   BSD Kernel Interfaces Manual 						    SES(4)

NAME
ses -- SCSI Environmental Services Driver SYNOPSIS
ses* at scsibus? target? lun? DESCRIPTION
The ses driver provides support for all SCSI devices of the environmental services class that are attached to the system through a supported SCSI Host Adapter, as well as emulated support for SAF-TE (SCSI Accessible Fault Tolerant Enclosures). The environmental services class gen- erally are enclosure devices that provide environmental information such as number of power supplies (and state), temperature, device slots, and so on. A SCSI Host adapter must also be separately configured into the system before a SCSI Environmental Services device can be configured. IOCTLS
The following ioctl(2) calls apply to SES devices. They are defined in the header file <scsipi/ses.h> (q.v.). SESIOC_GETNOBJ Used to find out how many SES objects are driven by this particular device instance. SESIOC_GETOBJMAP Read, from the kernel, an array of SES objects which contains the object identifier, which sub-enclosure it is in, and the SES type of the object. SESIOC_GETENCSTAT Get the overall enclosure status. SESIOC_SETENCSTAT Set the overall enclosure status. SESIOC_GETOBJSTAT Get the status of a particular object. SESIOC_SETOBJSTAT Set the status of a particular object. SESIOC_GETTEXT Get the associated help text for an object (not yet implemented). SES devices often have descriptive text for an object which can tell you things like location (e.g, "left power supply"). SESIOC_INIT Initialize the enclosure. FILES
/dev/sesN The Nth ses device. DIAGNOSTICS
When the kernel is configured with DEBUG enabled, the first open to an SES device will spit out overall enclosure parameters to the console. SEE ALSO
getencstat(8), sesd(8), setencstat(8), setobjstat(8) HISTORY
The ses driver was written for the SCSI subsystem by Matthew Jacob. This is the functional equivalent of a similar driver available in Solaris, Release 7. BSD
May 24, 2007 BSD
Man Page