Documentation ¶
Index ¶
- Constants
- type IDrac8
- func (i *IDrac8) ApplyCfg(config *cfgresources.ResourcesConfig) (err error)
- func (i *IDrac8) BiosVersion() (version string, err error)
- func (i *IDrac8) BmcType() (bmcType string)
- func (i *IDrac8) BmcVersion() (bmcVersion string, err error)
- func (i *IDrac8) CPU() (cpu string, cpuCount int, coreCount int, hyperthreadCount int, err error)
- func (i *IDrac8) CheckCredentials() (err error)
- func (i *IDrac8) Close() (err error)
- func (i *IDrac8) Disks() (disks []*devices.Disk, err error)
- func (i *IDrac8) IsBlade() (isBlade bool, err error)
- func (i *IDrac8) IsOn() (status bool, err error)
- func (i *IDrac8) License() (name string, licType string, err error)
- func (i *IDrac8) Memory() (mem int, err error)
- func (i *IDrac8) Model() (model string, err error)
- func (i *IDrac8) Name() (name string, err error)
- func (i *IDrac8) Nics() (nics []*devices.Nic, err error)
- func (i *IDrac8) PowerCycle() (status bool, err error)
- func (i *IDrac8) PowerCycleBmc() (status bool, err error)
- func (i *IDrac8) PowerKw() (power float64, err error)
- func (i *IDrac8) PowerOff() (status bool, err error)
- func (i *IDrac8) PowerOn() (status bool, err error)
- func (i *IDrac8) PowerState() (state string, err error)
- func (i *IDrac8) Psus() (psus []*devices.Psu, err error)
- func (i *IDrac8) PxeOnce() (status bool, err error)
- func (i *IDrac8) Screenshot() (response []byte, extension string, err error)
- func (i *IDrac8) Serial() (serial string, err error)
- func (i *IDrac8) ServerSnapshot() (server interface{}, err error)
- func (i *IDrac8) Status() (status string, err error)
- func (i *IDrac8) TempC() (temp int, err error)
- func (i *IDrac8) UpdateCredentials(username string, password string)
- func (i *IDrac8) Vendor() (vendor string)
- type NtpServer
- type Syslog
- type User
- type UserInfo
- type XmlRoot
- type XmlUserAccount
Constants ¶
const (
// BMCType defines the bmc model that is supported by this package
BMCType = "idrac8"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDrac8 ¶
type IDrac8 struct {
// contains filtered or unexported fields
}
IDrac8 holds the status and properties of a connection to an iDrac device
func (*IDrac8) ApplyCfg ¶
func (i *IDrac8) ApplyCfg(config *cfgresources.ResourcesConfig) (err error)
func (*IDrac8) BiosVersion ¶
BiosVersion returns the current version of the bios
func (*IDrac8) BmcVersion ¶
BmcVersion returns the version of the bmc we are running
func (*IDrac8) CheckCredentials ¶ added in v0.1.5
CheckCredentials verify whether the credentials are valid or not
func (*IDrac8) PowerCycle ¶ added in v0.1.5
PowerCycle reboots the machine via bmc
func (*IDrac8) PowerCycleBmc ¶ added in v0.1.5
PowerCycleBmc reboots the bmc we are connected to
func (*IDrac8) PowerState ¶
PowerState returns the current power state of the machine
func (*IDrac8) Screenshot ¶ added in v0.2.2
Grab screen preview.
func (*IDrac8) ServerSnapshot ¶
ServerSnapshot do best effort to populate the server data and returns a blade or discrete
func (*IDrac8) UpdateCredentials ¶
UpdateCredentials updates login credentials
type NtpServer ¶
type NtpServer struct { Enable bool `url:"tm_ntp_int_opmode,int"` Server1 string `url:"tm_ntp_str_server1"` Server2 string `url:"tm_ntp_str_server2"` Server3 string `url:"tm_ntp_str_server3"` }
GET - params as query string https://10.193.251.10/data?set=tm_ntp_int_opmode:1,tm_ntp_str_server1:ntp0.lhr4.example.com,tm_ntp_str_server2:ntp0.ams4.example.com,tm_ntp_str_server3:ntp0.fra4.example.com
type Syslog ¶
type Syslog struct { Port string `json:"Port"` Enable string `json:"SysLogEnable"` Server1 string `json:"Server1"` Server2 string `json:"Server2"` Server3 string `json:"Server3"` }
https://10.193.251.5/sysmgmt/2012/server/configgroup/iDRAC.SysLog
type User ¶
type User struct { UserName string `json:"UserName"` Password string `json:"Password"` Enable string `json:"Enable"` Privilege string `json:"Privilege"` IpmiLanPrivilege string `json:"IpmiLanPrivilege"` SolEnable string `json:"SolEnable"` }
https://10.193.251.5/sysmgmt/2012/server/configgroup/iDRAC.Users.3
type XmlRoot ¶ added in v0.2.2
type XmlRoot struct { XMLName xml.Name `xml:"root"` Text string `xml:",chardata"` XmlUserAccount []XmlUserAccount `xml:"user"` Status string `xml:"status"` }
type XmlUserAccount ¶ added in v0.2.2
type XmlUserAccount struct { Name string `xml:"name"` Id int `xml:"id"` Privileges int `xml:"privileges"` //511 = Administrator, 0 = None, Enabled int `xml:"enabled"` LanPriv int `xml:"lanPriv"` //4 = Administrator, 3 = Operator, 2 = User, 15 = None SerialPriv int `xml:"serialPriv"` //4 = Administrator, 3 = Operator, 2 = User, 15 = None SolEnabled int `xml:"solEnabled"` SnmpV3Enabled int `xml:"SNMPV3Enabled"` SnmpPrivType int `xml:"snmpPrivType"` }