//Vaquero IPMI stuff
package main
import ( "fmt"
"github.com/vmware/goipmi"
)
# Gawk version | |
# Remote | |
grep -v "rem_address" /proc/net/tcp | awk '{x=strtonum("0x"substr($3,index($3,":")-2,2)); for (i=5; i>0; i-=2) x = x"."strtonum("0x"substr($3,i,2))}{print x":"strtonum("0x"substr($3,index($3,":")+1,4))}' | |
# Local | |
grep -v "rem_address" /proc/net/tcp | awk '{x=strtonum("0x"substr($2,index($2,":")-2,2)); for (i=5; i>0; i-=2) x = x"."strtonum("0x"substr($2,i,2))}{print x":"strtonum("0x"substr($2,index($2,":")+1,4))}' | |
# No Gawk | |
# Local | |
grep -v "rem_address" /proc/net/tcp | awk 'function hextodec(str,ret,n,i,k,c){ |
package main | |
import ( | |
"bufio" | |
"io/ioutil" | |
"os/signal" | |
//"syscall" | |
"fmt" | |
"log" | |
"os" |
// https://gist.github.com/DavidWittman/b7a509632ed92fccf237 (SuperMicro) | |
package main | |
import ( | |
"fmt" | |
"net" | |
"github.com/vmware/goipmi" | |
) |
//Vaquero IPMI stuff
package main
import ( "fmt"
"github.com/vmware/goipmi"
)
package main | |
import ( | |
"github.com/AllenDang/w32" | |
"io" | |
"os" | |
"unsafe" | |
"errors" | |
"fmt" | |
"syscall" |
package httpclient | |
import ( | |
"net" | |
"net/http" | |
"time" | |
) | |
type Config struct { | |
ConnectTimeout time.Duration |
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
"time" | |
) | |
// Example SSE server in Golang. |
package main | |
import ( | |
"net" | |
"fmt" | |
"io" | |
"os" | |
) | |
func main() { |
package main | |
import ( | |
"bytes" | |
"encoding/hex" | |
"flag" | |
"fmt" | |
"io" | |
"log" | |
"net" |