public static List <ShowCDPEntryItem> ParseShowCDPEntries(string text)
        {
            try
            {
                var parser = new CiscoShowCDPEntry();
                return(parser.Parse(text));
            }
            catch (Exception e)
            {
                System.Diagnostics.Debug.WriteLine(e.Message);
            }

            return(null);
        }
示例#2
0
        public List <ShowCDPEntryItem> ShowCDPNeighbors()
        {
            var text = ExecuteSingleCommand("show cdp entry *");

            try
            {
                var parser = new CiscoShowCDPEntry();
                return(parser.Parse(text));
            }
            catch (Exception e)
            {
                System.Diagnostics.Debug.WriteLine(e.Message);
            }

            return(null);
        }