public static void StartSnmp(string ip, string toIp) { _IpTo = toIp; SnmpAgent.Init(ip); SnmpAgent.Start(); }
public void SendTrap(string value) { OctetString data = new OctetString(value); if ((_trapsEps != null) && (_trapsEps.Length > 0)) { SnmpAgent.Trap(Variable.Id, data, _trapsEps); } }
public static void EndSnmp() { SnmpAgent.Close(); }