Beispiel #1
0
func snmpOidString(host, community, oid string) (string, error) {
	var v []byte
	err := snmp.Get(host, community, oid, &v)
	return string(v), err
}
Beispiel #2
0
func snmp_oid(host, community, oid string) (*big.Int, error) {
	v := new(big.Int)
	err := snmp.Get(host, community, oid, &v)
	return v, err
}