Add IPMI Power Commands, Soft And Reset

This commit is contained in:
Michael L. Young
2021-08-25 08:23:22 -04:00
parent 26fd9ed0aa
commit a9fcf5e749
7 changed files with 252 additions and 0 deletions

View File

@@ -95,6 +95,14 @@ func (ipmi *IPMI) PowerCycle() (string, error) {
return ipmi.IPMICommand("chassis", "power", "cycle")
}
func (ipmi *IPMI) PowerReset() (string, error) {
return ipmi.IPMICommand("chassis", "power", "reset")
}
func (ipmi *IPMI) PowerSoft() (string, error) {
return ipmi.IPMICommand("chassis", "power", "soft")
}
func (ipmi *IPMI) PowerStatus() (string, error) {
return ipmi.IPMICommand("chassis", "power", "status")
}