Documentation ¶
Index ¶
- type Ipmi
- func (i *Ipmi) BootDeviceSet(ctx context.Context, bootDevice string, setPersistent, efiBoot bool) (ok bool, err error)
- func (i *Ipmi) ClearSystemEventLog(ctx context.Context) (err error)
- func (i *Ipmi) DeactivateSOL(ctx context.Context) (err error)
- func (i *Ipmi) ForceRestart(ctx context.Context) (status bool, err error)
- func (i *Ipmi) GetSystemEventLog(ctx context.Context) (entries [][]string, err error)
- func (i *Ipmi) GetSystemEventLogRaw(ctx context.Context) (eventlog string, err error)
- func (i *Ipmi) IsOn(ctx context.Context) (status bool, err error)
- func (i *Ipmi) PowerCycle(ctx context.Context) (status bool, err error)
- func (i *Ipmi) PowerCycleBmc(ctx context.Context) (status bool, err error)
- func (i *Ipmi) PowerOff(ctx context.Context) (status bool, err error)
- func (i *Ipmi) PowerOn(ctx context.Context) (status bool, err error)
- func (i *Ipmi) PowerOnForce(ctx context.Context) (status bool, err error)
- func (i *Ipmi) PowerReset(ctx context.Context) (status bool, err error)
- func (i *Ipmi) PowerResetBmc(ctx context.Context, resetType string) (ok bool, err error)
- func (i *Ipmi) PowerSoft(ctx context.Context) (status bool, err error)
- func (i *Ipmi) PowerState(ctx context.Context) (state string, err error)
- func (i *Ipmi) PxeOnce(ctx context.Context) (status bool, err error)
- func (i *Ipmi) PxeOnceEfi(ctx context.Context) (status bool, err error)
- func (i *Ipmi) PxeOnceMbr(ctx context.Context) (status bool, err error)
- func (i *Ipmi) ReadUsers(ctx context.Context) (users []map[string]string, err error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ipmi ¶
type Ipmi struct { Username string Password string Host string // contains filtered or unexported fields }
Ipmi holds the date for an ipmi connection
func (*Ipmi) BootDeviceSet ¶
func (i *Ipmi) BootDeviceSet(ctx context.Context, bootDevice string, setPersistent, efiBoot bool) (ok bool, err error)
BootDeviceSet sets the next boot device with options
func (*Ipmi) ClearSystemEventLog ¶
ClearSystemEventLog clears the system event log
func (*Ipmi) DeactivateSOL ¶ added in v2.2.1
func (*Ipmi) ForceRestart ¶
ForceRestart does the chassis power cycle even if the chassis is turned off. From the RedFish spec (https://www.dmtf.org/sites/default/files/standards/documents/DSP2046_2018.1.pdf):
Perform an immediate (non-graceful) shutdown, followed by a restart.
func (*Ipmi) GetSystemEventLog ¶ added in v2.2.0
GetSystemEventLog returns the system event log entries in ID, Timestamp, Description, Message format
func (*Ipmi) GetSystemEventLogRaw ¶ added in v2.2.0
GetSystemEventLogRaw returns the raw SEL output
func (*Ipmi) PowerCycle ¶
PowerCycle reboots the machine via bmc
func (*Ipmi) PowerCycleBmc ¶
PowerCycleBmc reboots the bmc we are connected to
func (*Ipmi) PowerOnForce ¶
PowerOnForce power on the machine via bmc even when the machine is already on (Thanks HP!)
func (*Ipmi) PowerReset ¶
PowerReset reboots the machine via bmc
func (*Ipmi) PowerResetBmc ¶
PowerResetBmc reboots the bmc we are connected to
func (*Ipmi) PowerState ¶
PowerState returns the current power state of the machine
func (*Ipmi) PxeOnceEfi ¶
PxeOnceEfi makes the machine to boot via pxe once using EFI
func (*Ipmi) PxeOnceMbr ¶
PxeOnceMbr makes the machine to boot via pxe once using MBR