https://github.com/9elements/ipmigo
ipmigo is a golang implementation for IPMI client
https://github.com/9elements/ipmigo
Last synced: 3 months ago
JSON representation
ipmigo is a golang implementation for IPMI client
- Host: GitHub
- URL: https://github.com/9elements/ipmigo
- Owner: 9elements
- License: mit
- Fork: true (siro20/ipmigo)
- Created: 2021-06-28T11:18:04.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-28T11:29:47.000Z (almost 5 years ago)
- Last Synced: 2025-12-09T22:31:50.132Z (5 months ago)
- Homepage:
- Size: 48.8 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
ipmigo
======
**Work In Progress**
ipmigo is a golang implementation for IPMI client.
Supported Version
-----------------
* IPMI v2.0(lanplus)
Examples
--------
```go
package main
import (
"fmt"
"github.com/k-sone/ipmigo"
)
func main() {
c, err := ipmigo.NewClient(ipmigo.Arguments{
Version: ipmigo.V2_0,
Address: "192.168.1.1:623",
Username: "myuser",
Password: "mypass",
CipherSuiteID: 3,
})
if err != nil {
fmt.Println(err)
return
}
if err := c.Open(); err != nil {
fmt.Println(err)
return
}
defer c.Close()
cmd := &ipmigo.GetPOHCounterCommand{}
if err := c.Execute(cmd); err != nil {
fmt.Println(err)
return
}
fmt.Println("Power On Hours", cmd.PowerOnHours())
}
```
License
-------
MIT