func (i *Ilo) PowerCycleBmc() (bool, error) {
	output, err := i.sshClient.Run("reset /map1")
	if err != nil {
		return false, fmt.Errorf("output: %q: %w", output, err)
	}
	if strings.Contains(output, "Resetting iLO") {
		return true, nil
	}
	return false, fmt.Errorf(output)
}
PowerCycleBmc reboots the bmc we are connected to
package ilo
import (
	"context"
	"fmt"
	"regexp"
	"strings"
	"github.com/bmc-toolbox/bmclib/internal/ipmi"
)
func (i *Ilo) PowerCycle() (bool, error) {
	output, err := i.sshClient.Run("power reset")
	if err != nil {
		return false, fmt.Errorf("output: %q: %w", output, err)
	}
	if strings.Contains(output, "Server power off") {
		return i.PowerOn()
	}
	if strings.Contains(output, "Server resetting") {
		return true, nil
	}
	return false, fmt.Errorf(output)
}