scsi

package
v0.0.0-...-a234189 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 29, 2016 License: GPL-3.0 Imports: 4 Imported by: 1

Documentation

Overview

Package parted extracts useful info from the lsscsi on linux

Csv output is particularly supported, so that a csvfile-based enterprise's ETL tools can also monitor its servers and desktops

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Header() string

Header is generic

func Keys_String2PtrScsidata

func Keys_String2PtrScsidata(_mp *map[string]*Scsidata) []string

Keys_String2PtrScsidata is generic

func Scsi

func Scsi(_verbose bool) (smap map[string]*Scsidata)

Scsi extracts lsscsi data

func SortedKeys_String2PtrScsidata

func SortedKeys_String2PtrScsidata(_mp *map[string]*Scsidata) []string

SortedKeys_String2PtrScsidata is generic

Types

type Scsidata

type Scsidata struct {
	Device_         string // e.g. /dev/sda
	Generic_        string // e.g. /dev/sg0
	Host_           string // e.g. scsi0
	Channel_        string // e.g. 0
	Target_         string // e.g. 01
	LUN_            string // e.g. 0
	Devicetype_     string // e.g. disk
	Vendor_         string // e.g. ATA
	Model_          string // e.g. ST4000DM000-1F21
	Revision_       string // e.g. CC52
	Device_blocked_ string // e.g. 0
	Iocounterbits_  string // e.g. 32
	Iodone_cnt_     string // e.g. 0x2816e7
	Ioerr_cnt_      string // e.g. 0x13a74
	Iorequest_cnt_  string // e.g. 0x284812
	Queue_depth_    string // e.g. 31
	Queue_type_     string // e.g. simple
	Scsi_level_     string // e.g. 6
	State_          string // e.g. running
	Timeout_        string // e.g. 30
	Type_           string // e.g. 0
	Transport_      string // e.g. ISCSI or sata
	Targetname_     string
}

Scsdidata holds scsi data

func (*Scsidata) Csv

func (self *Scsidata) Csv() string

Csv is generic

func (*Scsidata) Print

func (self *Scsidata) Print()

Print is generic

func (*Scsidata) Sprint

func (self *Scsidata) Sprint() string

Sprint is generic

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL