func (m *M1000e) PowerOff() (bool, error) {
	output, err := m.sshClient.Run("chassisaction powerdown")
	if err != nil {
		return false, fmt.Errorf("output: %q: %w", output, err)
	}
	if strings.Contains(output, "successful") {
		return true, nil
	}
	return false, fmt.Errorf(output)
}
PowerOff power off the chassis
package m1000e
import (
	"fmt"
	"net/url"
	"strconv"
	"strings"
	"github.com/bmc-toolbox/bmclib/errors"
	"github.com/bmc-toolbox/bmclib/internal"
)
func (m *M1000e) PowerCycle() (bool, error) {
	output, err := m.sshClient.Run("racadm racreset")
	if err != nil {
		return false, fmt.Errorf("output: %q: %w", output, err)
	}
	if strings.Contains(output, "successful") {
		return true, nil
	}
	return false, fmt.Errorf(output)
}
func (m *M1000e) PowerOn() (bool, error) {
	output, err := m.sshClient.Run("chassisaction powerup")
	if err != nil {
		return false, fmt.Errorf("output: %q: %w", output, err)
	}
	if strings.Contains(output, "successful") {
		return true, nil
	}
	return false, fmt.Errorf(output)
}