sosreport / sos

A unified tool for collecting system logs and other debug information
http://sos.rtfd.org
GNU General Public License v2.0
512 stars 542 forks source link

[targetcli] add plugin #487

Closed bmr-cymru closed 9 years ago

bmr-cymru commented 9 years ago
On Tue, Feb 03, 2015 at 09:10:10AM +1100, Mark Goodwin wrote:
> Just a basic "targetcli ls" would probably suffice, or we could
> grab the raw json config data out of /etc/target.
>
> Here's an example with one fileio target configured:
>
> >[root@rhel70] targetcli ls
> >o- / ...................................................................... [...]
> >  o- backstores ........................................................... [...]
> >  | o- block ............................................... [Storage Objects: 0]
> >  | o- fileio .............................................. [Storage Objects: 1]
> >  | | o- test ..... [/dev/mapper/testvg-testlv (100.0MiB) write-back deactivated]
> >  | o- pscsi ............................................... [Storage Objects: 0]
> >  | o- ramdisk ............................................. [Storage Objects: 0]
> >  o- iscsi ......................................................... [Targets: 0]
> >  o- loopback ...................................................... [Targets: 0]
bmr-cymru commented 9 years ago

Fixed in commit ed50f49e1292b428b3eb63eabb31689aebf70591