snmp 0.0.1 copy "snmp: ^0.0.1" to clipboard
snmp: ^0.0.1 copied to clipboard

outdated

A starting point for Dart SNMP protocol, for Using IP(network) to Easyly access snmp data.

example/example.dart

import 'package:snmp/snmp.dart';
import 'package:snmp/src/pdu.dart';

Future<void> main() async {
    //Bind your local SNMP client ip
    var pack = await SnmpPack.bind();
    //Request OID to some host
    await pack.get(PDU(OID('1.3.6.1.2.1.43.10.2.1.4.1.1')),to:'192.168.199.214:161').then(print);
    await pack.get(PDU(OID('1.3.6.1.2.1.43.10.2.1.4.1.1')),to:'192.168.8.2:161').then(print);
    //woking on ...
    await pack.get(PDU(OID('1.3.6.1.2.1.1.1.0')),to:'192.168.199.214:161').then(print);
    pack.close();
}
3
likes
0
pub points
22%
popularity

Publisher

unverified uploader

A starting point for Dart SNMP protocol, for Using IP(network) to Easyly access snmp data.

Homepage

License

unknown (LICENSE)

Dependencies

convert, logger

More

Packages that depend on snmp