aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/sesutil
Commit message (Collapse)AuthorAgeFilesLines
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-07-101-1/+3
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=320882
* Add libxo(3) support to sesutil(8)Baptiste Daroussin2017-06-294-63/+100
| | | | | | | | | | | | This is useful to simplify parsing "sesutil map" Submitted by: nikita.kozlov@blade-group.com MFC after: 3 weeks Relnotes: yes Sponsored by: blade Notes: svn path=/head/; revision=320478
* sesutil no longer depends on libsbufBaptiste Daroussin2017-06-231-2/+1
| | | | | | | Sponsored by: Gandi.net Notes: svn path=/head/; revision=320271
* Directly print the extra status instead of filling a bufferBaptiste Daroussin2017-06-234-62/+68
| | | | | | | | | | | | | then printing it. This prepares the code to make it libxo friendly Reviewed by: manu, Nikita Kozlov (nikita elyzion.net) MFC after: 2 weeks Sponsored by: Gandi.net Notes: svn path=/head/; revision=320270
* Do not use sprintf(3) when not needed, while here,Baptiste Daroussin2017-06-232-80/+43
| | | | | | | prefer snprintf(3) over sprintf(3) Notes: svn path=/head/; revision=320267
* usr.sbin/sesutil: 'locate all off' does not deactivate empty slotsAllan Jude2017-06-061-5/+4
| | | | | | | | | | | | PR: 217409 Reported by: asomers Reviewed by: asomers, bapt MFC after: 1 week Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D10458 Notes: svn path=/head/; revision=319610
* Fix `sesutil fault` operation.Alexander Motin2016-09-301-3/+9
| | | | | | | | | | Fault and ident bits are located in different control bytes, so previous code was just doing nothing, writing into reserved bit. MFC after: 1 week Notes: svn path=/head/; revision=306528
* Plug memory leakBaptiste Daroussin2016-04-201-0/+2
| | | | | | | | Reported by: coverity CID: 1331664, 1331665 Notes: svn path=/head/; revision=298382
* Cleanup headersBaptiste Daroussin2016-03-262-5/+0
| | | | | | | Found by: include-what-you-use Notes: svn path=/head/; revision=297291
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2016-01-071-0/+1
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=293345
* Show the enclosure name and id in sesutil mapBaptiste Daroussin2015-12-151-0/+11
| | | | | | | Sponsored by: Gandi.net Notes: svn path=/head/; revision=292262
* Fix sesutil locate when a sesid is passed to locate commandBaptiste Daroussin2015-12-111-1/+1
| | | | Notes: svn path=/head/; revision=292122
* sesutil: Add extra information specific to some SES devices to sesutil mapBaptiste Daroussin2015-12-114-21/+76
| | | | | | | | | | | | | | | | | | | | | Rework stat2ascii preparing a buffer of what could be printed. This prevent the risk of overflowing a static buffer. Do not print those informations anymore in the "status" but into a new "extra status" only printed if there are actually extra things to print. Now add those extra informations: * Thermal sensor temperature * Cooling devices speed * Voltage sensors, current consumption Tested by: AllanJude Sponsored by: Gandi.net Differential Revision: https://reviews.freebsd.org/D4520 Notes: svn path=/head/; revision=292121
* sesutils, pass the correct element type when printing the status of a givenBaptiste Daroussin2015-12-111-1/+1
| | | | | | | | | element of the ses. Sponsored by: Gandi.net Notes: svn path=/head/; revision=292093
* sesutil: fix map not printing the status of the LED device in an arrayBaptiste Daroussin2015-12-111-4/+4
| | | | | | | Sponsored by: Gandi.net Notes: svn path=/head/; revision=292092
* Rename some functions and variables inside sesutil(8) to make gcc happyAllan Jude2015-09-191-10/+10
| | | | | | | | | Reported by: bz Approved by: bapt (implicit) Sponsored by: ScaleEngine Inc. Notes: svn path=/head/; revision=287992
* Connect sesutil(1) and numactl(1) for META_MODE.Bryan Drewery2015-09-191-0/+18
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=287989
* Improve and expand sesutil(8)Allan Jude2015-09-195-65/+667
| | | | | | | | | | | | | | | | | | | - Return an error if no matching device is found when the locate command is run - Enhance the locate command to be able to address drive bays with no disk, or where the SES controller has not made the mapping to the device name - Added the fault command, similar to locate, but a different SES property. On some of my controllers locate blinks the activity light, others the fault light. The fault command keeps the fault light on constant. - Improve the usage() output and use it everywhere - Added the map command, displays all elements connected to each (or the specified) ses(4) controller - Added the status command, returns the overall status of the ses(4) controller Reviewed by: wblock (man page, earlier version) Approved by: bapt (mentor) MFC after: 3 weeks Relnotes: yes Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D3580 Notes: svn path=/head/; revision=287988
* Yet another fix for gcc 4.2Baptiste Daroussin2015-09-051-5/+5
| | | | Notes: svn path=/head/; revision=287494
* Remove extra i++Baptiste Daroussin2015-09-051-1/+0
| | | | | | | Reported by: allanjude@ Notes: svn path=/head/; revision=287493
* Fix build with gcc 4.2Baptiste Daroussin2015-09-051-5/+5
| | | | | | | Reported by: kib Notes: svn path=/head/; revision=287485
* Add a new sesutil(8) utilityBaptiste Daroussin2015-09-053-0/+304
This is an utility for managing SCSI Enclosure Services (SES) device. For now only one command is supported "locate" which will change the test of the external LED associated to a given disk. Usage if the following: sesutil locate disk [on|off] Disk can be a device name: "da12" or a special keyword: "all". Reviewed by: mav MFC after: 1 month Relnotes: yes Sponsored by: gandi.net Differential Revision: https://reviews.freebsd.org/D3544 Notes: svn path=/head/; revision=287473