public Node DiscoveryByNode(Node node)
        {
            SnmpExpect expect = new SnmpExpect();
            List<OidKey> list = BuildOidList(node);

            foreach (var oid in list)
            {
                Detail detail = new Detail
                {
                    OidKey = oid,
                    Node = node,
                    Properties = expect.SnmpGet(node.RoCommunity, node.Address, oid.Key)
                };
                node.AddDetail(detail);
            }
            return node;
        }
Beispiel #2
0
        public Node DiscoveryByNode(Node node)
        {
            SnmpExpect    expect = new SnmpExpect();
            List <OidKey> list   = BuildOidList(node);

            foreach (var oid in list)
            {
                Detail detail = new Detail
                {
                    OidKey     = oid,
                    Node       = node,
                    Properties = expect.SnmpGet(node.RoCommunity, node.Address, oid.Key)
                };
                node.AddDetail(detail);
            }
            return(node);
        }