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) Disks() (disks []*devices.Disk, err error)
- func (i *IDrac8) IsBlade() (isBlade bool, err error)
- func (i *IDrac8) License() (name string, licType string, err error)
- func (i *IDrac8) Login() (err error)
- func (i *IDrac8) Logout() (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) PowerKw() (power float64, err error)
- func (i *IDrac8) PowerState() (state string, err error)
- func (i *IDrac8) Psus() (psus []*devices.Psu, 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
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) PowerState ¶
PowerState returns the current power state of the machine
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 ntp servers 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 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 {"iDRAC.Users":{"UserName":"@066@06f@06f@062@061@072", "Password":"@066@06f@06f@062@061@072", "Enable":"Enabled", "Privilege":"511", "IpmiLanPrivilege":"Administrator", "SolEnable":"Enabled"}}