Exemple #1
0
        public static void StartSnmp(string ip, string toIp)
        {
            _IpTo = toIp;

            SnmpAgent.Init(ip);
            SnmpAgent.Start();
        }
Exemple #2
0
        public void SendTrap(string value)
        {
            OctetString data = new OctetString(value);

            if ((_trapsEps != null) && (_trapsEps.Length > 0))
            {
                SnmpAgent.Trap(Variable.Id, data, _trapsEps);
            }
        }
Exemple #3
0
 public static void EndSnmp()
 {
     SnmpAgent.Close();
 }