Esempio n. 1
0
File: snmp.go Progetto: eswdd/bosun
func snmpOidString(host, community, oid string) (string, error) {
	var v []byte
	err := snmp.Get(host, community, oid, &v)
	return string(v), err
}
Esempio n. 2
0
File: snmp.go Progetto: eswdd/bosun
func snmp_oid(host, community, oid string) (*big.Int, error) {
	v := new(big.Int)
	err := snmp.Get(host, community, oid, &v)
	return v, err
}