}//end Execute private void snmpmgr_OnResponse(object sender, SnmpmgrResponseEventArgs e) { if (snmpMgr.Objects.Count >= 1) { dt.Rows.Add(snmpMgr.Objects[0].Value); } }
}//end Execute private void SNMPmgr_OnResponse(object sender, SnmpmgrResponseEventArgs e) { if (SNMPMgr.Objects.Count >= 1 && SNMPMgr.Objects[0].Oid == objID) { dt.Rows.Add(SNMPMgr.Objects[0].Value); } }
private void snmpmgr1_OnResponse(object sender, SnmpmgrResponseEventArgs e) { Console.WriteLine(DateTime.Now + "\t" + "Response"); //this handles the "Find" broadcasts if (e.RequestId == broadcastId && snmpmgr1.ObjCount >= 1 && snmpmgr1.ObjId[1] == "1.3.6.1.2.1.1.5.0") {//sysName Console.WriteLine(e.SourceAddress); Console.WriteLine(snmpmgr1.ObjValue[1]); } }