Skip to content
/ ipmigo Public

ipmigo is a golang implementation for IPMI client

License

Notifications You must be signed in to change notification settings

k-sone/ipmigo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b22c7a7 · Sep 22, 2019

History

17 Commits
Sep 22, 2019
Jan 26, 2019
Jan 26, 2019
Jan 26, 2019
May 17, 2019
Jan 26, 2019
Jan 26, 2019
Jan 26, 2019
Jan 26, 2019
Apr 5, 2019
Jul 26, 2019
Apr 5, 2019
Jan 26, 2019
May 17, 2019
Sep 22, 2019
Jan 26, 2019
Jan 26, 2019
Jan 26, 2019
Jan 26, 2019
Jan 26, 2019
Jan 26, 2019
Jan 26, 2019
Jul 7, 2019
Sep 22, 2019
Apr 5, 2019
Jan 26, 2019
Jul 26, 2019
Jan 26, 2019

Repository files navigation

ipmigo

Work In Progress

ipmigo is a golang implementation for IPMI client.

Supported Version

  • IPMI v2.0(lanplus)

Examples

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

About

ipmigo is a golang implementation for IPMI client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages