hp

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: 0

Documentation

Overview

Package hp extracts useful info, using the hpaucli program, about all hp disk controllers on a linux system

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_String2PtrHpdata

func Keys_String2PtrHpdata(_mp *map[string]*Hpdata) []string

Keys_String2PtrHpdata is generic

func SortedKeys_String2PtrHpdata

func SortedKeys_String2PtrHpdata(_mp *map[string]*Hpdata) []string

SortedKeys_String2PtrHpdata is generic

Types

type Hpctrl

type Hpctrl struct {
	Type_          string
	Slotnum_       string
	Ctrlserial_    string
	Ctrlstatus_    string
	Cachestatus_   string
	Batterystatus_ string
	Ldlist         []Hpld // list of all logical drives
	Pdlist_        []Hppd // list of all physical drives
}

Hpctrl holds hp controller data

func (*Hpctrl) Csv

func (self *Hpctrl) Csv() string

Csv is generic

type Hpdata

type Hpdata struct {
	Ctrls_ []*Hpctrl
	Pdmap_ map[string]*Hppd
	Ldmap_ map[string]*Hpld
}

Hpdata holds all HPacucli data

func Hp

func Hp(_verbose bool) *Hpdata

Hp extracts HPacucli data

func Nil

func Nil() *Hpdata

Nil is generic

func (*Hpdata) SprintAll

func (self *Hpdata) SprintAll(_box string) string

SprintAll is generic

type Hpld

type Hpld struct {
	Pdas_     string // list of physical drives
	Ldnum_    string // logical drive number
	Ldstatus_ string
	Ldsize_   string
	Raid_     string
	Lddev_    string // Os device name
	Mountpts_ string
	Ctrl_     *Hpctrl
}

Hpld holds Hp logical disk data

func (*Hpld) Csv

func (self *Hpld) Csv() string

Csv is generic

type Hppd

type Hppd struct {
	Pdaddress_  string // physical disk address
	Pdstatus_   string
	Pdldnum_    string
	Pdsize_     string
	Pdspeed_    string
	Pdfirmware_ string
	Pdserial_   string
	Pdmodel_    string
	PdtempC_    string
	PdtempmaxC_ string
	Pdrate_     string
	Ld_         *Hpld
	Ctrl_       *Hpctrl
}

Hppd holds Hp physical disk data

func (*Hppd) Csv

func (self *Hppd) Csv() string

Csv is generic

Jump to

Keyboard shortcuts

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