ipmi

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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
}

Data for an IPMI connection

func New

func New(username string, password string, host string) (ipmi *Ipmi, err error)

func (*Ipmi) BootDeviceSet added in v1.2.5

func (i *Ipmi) BootDeviceSet(bootDevice string, setPersistent, efiBoot bool) (ok bool, err error)

Set the next boot device with options

func (*Ipmi) Close

func (i *Ipmi) Close(context.Context) error

func (*Ipmi) IsOn

func (i *Ipmi) IsOn() (status bool, err error)

Is the machine currently powered on?

func (*Ipmi) PowerCycle

func (i *Ipmi) PowerCycle() (status bool, err error)

Reboot the machine via BMC

func (*Ipmi) PowerCycleBmc

func (i *Ipmi) PowerCycleBmc() (status bool, err error)

Reboot the BMC we are connected to

func (*Ipmi) PowerOff

func (i *Ipmi) PowerOff() (status bool, err error)

Power the machine off via BMC

func (*Ipmi) PowerOn

func (i *Ipmi) PowerOn() (status bool, err error)

Power the machine on via BMC

func (*Ipmi) PowerReset added in v1.2.5

func (i *Ipmi) PowerReset() (status bool, err error)

Reset the machine via BMC

func (*Ipmi) PowerResetBmc added in v1.2.5

func (i *Ipmi) PowerResetBmc(resetType string) (ok bool, err error)

Reset the BMC we are connected to

func (*Ipmi) PxeOnce

func (i *Ipmi) PxeOnce() (status bool, err error)

The default is to PXE-boot via MBR

func (*Ipmi) PxeOnceEfi

func (i *Ipmi) PxeOnceEfi() (status bool, err error)

Boot the machine via PXE once using EFI

func (*Ipmi) PxeOnceMbr

func (i *Ipmi) PxeOnceMbr() (status bool, err error)

Boot the machine via PXE once using MBR

func (*Ipmi) ReadUsers added in v1.2.5

func (i *Ipmi) ReadUsers() (users []map[string]string, err error)

List all BMC users

Jump to

Keyboard shortcuts

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