免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4159 | 回复: 3

没有和我一样的遇到过用telnet->cmd,一次不能将一条命令返回的,多次才能返回 [复制链接]

论坛徽章:
0
发表于 2014-08-15 16:37 |显示全部楼层
本帖最后由 hwcomcn 于 2014-08-15 16:38 编辑

telnet是这样设置的:
  1. $conn = new Net::Telnet(Timeout => 1800, Max_buffer_length => 120_000_000, Prompt => '/[#>]\s*$/');
  2. $conn->open($HOST);
  3. $conn->login($USERNAME,$PASSWORD);
  4. my @contents_telnet = $conn->cmd(String=>$cmd, Timeout=>999999);
  5. $conn->close;
复制代码
但是在执行一条命令(投入到思科路由的一条命令)“show mpls ldp neighbor”,尽然投了多次命令后才能把这条命令该返回的内容收集全,为何会出现这样的问题,想不通(timeout, Max_buffer_length都设置了足够大了)
  1. --------------------
  2. show mpls ldp neighbor
  3. --------------------

  4. Tue Aug 12 16:38:29.199 JST

  5. Peer LDP Identifier: 172.16.0.8:0
  6.   TCP connection: 172.16.0.8:29771 - 172.16.0.1:646
  7.   Graceful Restart: Yes (Reconnect Timeout: 180 sec, Recovery: 360 sec)
  8.   Session Holdtime: 180 sec
  9.   State: Oper; Msgs sent/rcvd: 83920/85200; Downstream-Unsolicited
  10.   Up time: 1w0d
  11.   LDP Discovery Sources:
  12.     Targeted Hello (172.16.0.1 -> 172.16.0.8, active)
  13.   Addresses bound to this peer:
  14.     10.2.64.2        10.2.128.2       10.102.64.1      172.16.0.8      
  15.     192.168.1.8      192.168.1.108   

  16. Peer LDP Identifier: 172.16.0.29:0
  17.   TCP connection: 172.16.0.29:40217 - 172.16.0.1:646
  18.   Graceful Restart: Yes (Reconnect Timeout: 180 sec, Recovery: 0 sec)
  19.   Session Holdtime: 180 sec
  20.   State: Oper; Msgs sent/rcvd: 36774/36865; Downstream-Unsolicited
  21.   Up time: 1w0d
  22.   LDP Discovery Sources:
  23.     Bundle-Ether10199
  24.     Targeted Hello (172.16.0.1 -> 172.16.0.29, active)
  25.   Addresses bound to this peer:
  26.     10.1.64.1        10.1.128.2       10.101.64.2      22.1.39.29      
  27.     22.1.162.29      22.1.164.29      22.1.165.29      22.2.39.29      
  28.     22.2.162.29      22.2.164.29      22.2.165.29      22.3.39.29      
  29.     22.3.162.29      22.3.164.29      22.3.165.29      22.4.39.29      
  30.     22.4.162.29      22.4.164.29      22.4.165.29      22.5.39.29      
  31.     22.5.162.29      22.5.164.29      22.5.165.29      22.6.39.29      
  32.     22.6.162.29      22.6.164.29      22.6.165.29      22.7.39.29      
  33.     22.7.162.29      22.7.164.29      22.7.165.29      22.8.39.29      
  34.     22.8.162.29      22.8.164.29      22.8.165.29      22.9.39.29      
  35.     22.9.162.29      22.9.164.29      22.9.165.29      22.10.39.29      
  36.     22.10.162.29     22.10.164.29     22.10.165.29     22.11.39.29      
  37.     22.11.162.29     22.11.164.29     22.11.165.29     22.12.39.29      
  38.     22.12.162.29     22.12.164.29     22.12.165.29     22.13.39.29      
  39.     22.13.162.29     22.13.164.29     22.13.165.29     22.14.39.29      
  40.     22.14.162.29     22.14.164.29     22.14.165.29     22.15.39.29      
  41.     22.15.162.29     22.15.164.29     22.15.165.29     22.16.39.29      
  42.     22.16.162.29     22.16.164.29     22.16.165.29     22.17.39.29      
  43.     22.17.162.29     22.17.164.29     22.17.165.29     22.18.39.29      
  44.     22.18.162.29     22.18.164.29     22.18.165.29     22.19.39.29      
  45.     22.19.162.29     22.19.164.29     22.19.165.29     22.20.39.29      
  46.     22.20.162.29     22.20.164.29     22.20.165.29     22.21.39.29      
  47.     22.21.162.29     22.21.164.29     22.21.165.29     22.22.39.29      
  48.     22.22.162.29     22.22.164.29     22.22.165.29     22.23.39.29      
  49.     22.23.162.29     22.23.164.29     22.23.165.29     22.24.39.29      
  50.     22.24.162.29     22.24.164.29     22.24.165.29     22.25.39.29      
  51.     22.25.162.29     22.25.164.29     22.25.165.29     22.26.39.29      
  52.     22.26.162.29     22.26.164.29     22.26.165.29     22.27.39.29      
  53.     22.27.162.29     22.27.164.29     22.27.165.29     22.28.39.29      
  54.     22.28.162.29     22.28.164.29     22.28.165.29     22.29.39.29      
  55.     22.29.162.29     22.29.164.29     22.29.165.29     22.30.39.29      
  56.     22.30.162.29     22.30.164.29     22.30.165.29     22.31.39.29      
  57.     22.31.162.29     22.31.164.29     22.31.165.29     22.32.39.29      
  58.     22.32.162.29     22.32.164.29     22.32.165.29     22.33.39.29      
  59.     22.33.162.29     22.33.164.29     22.33.165.29     22.34.39.29      
  60.     22.34.162.29     22.34.164.29     22.34.165.29     22.35.39.29      
  61.     22.35.162.29     22.35.164.29     22.35.165.29     22.36.39.29      
  62.     22.36.162.29     22.36.164.29     22.36.165.29     22.37.39.29      
  63.     22.37.162.29     22.37.164.29     22.37.165.29     22.38.39.29      
  64.     22.38.162.29     22.38.164.29     22.38.165.29     22.39.39.29      
  65.     22.39.162.29     22.39.164.29     22.39.165.29     22.40.39.29      
  66.     22.40.162.29     22.40.164.29     22.40.165.29     22.41.39.29      
  67.     22.41.164.29     22.41.165.29     22.42.39.29      22.42.164.29     
  68.     22.42.165.29     22.43.39.29      22.43.164.29     22.43.165.29     
  69.     22.44.39.29      22.44.164.29     22.44.165.29     22.45.39.29      
  70.     22.45.164.29     22.45.165.29     22.46.39.29      22.46.164.29     
  71.     22.46.165.29     22.47.39.29      22.47.164.29     22.47.165.29     
  72.     22.48.39.29      22.48.164.29     22.48.165.29     22.49.39.29      
  73.     22.49.164.29     22.49.165.29     22.50.39.29      22.50.164.29     
  74.     22.50.165.29     22.51.39.29      22.51.164.29     22.51.165.29     
  75.     22.52.39.29      22.52.164.29     22.52.165.29     22.53.39.29      
  76.     22.53.164.29     22.53.165.29     22.54.39.29      22.54.164.29     
  77.     22.54.165.29     22.55.39.29      22.55.164.29     22.55.165.29     
  78.     22.56.39.29      22.56.164.29     22.56.165.29     22.57.39.29      
  79.     22.57.164.29     22.57.165.29     22.58.39.29      22.58.164.29     
  80.     22.58.165.29     22.59.39.29      22.59.164.29     22.59.165.29     
  81.     22.60.3.29       22.60.39.29      22.60.164.29     22.60.165.29     
  82.     22.61.39.29      22.61.164.29     22.61.165.29     22.62.39.29      
  83.     22.62.164.29     22.62.165.29     22.63.39.29      22.63.164.29     
  84.     22.63.165.29     22.64.39.29      22.64.164.29     22.64.165.29     
  85.     22.65.39.29      22.65.164.29     22.65.165.29     22.66.39.29      
  86.     22.66.164.29     22.66.165.29     22.67.39.29      22.67.164.29     
  87.     22.67.165.29     22.68.39.29      22.68.164.29     22.68.165.29     
  88.     22.69.39.29      22.69.164.29     22.69.165.29     22.70.39.29      
  89.     22.70.164.29     22.70.165.29     22.71.39.29      22.71.164.29     
  90.     22.71.165.29     22.72.39.29      22.72.164.29     22.72.165.29     
  91.     22.73.39.29      22.73.164.29     22.73.165.29     22.74.39.29      
  92.     22.74.164.29     22.74.165.29     22.75.39.29      22.75.164.29     
  93.     22.75.165.29     22.76.39.29      22.76.164.29     22.76.165.29     
  94.     22.77.39.29      22.77.164.29     22.77.165.29     22.78.39.29      
  95.     22.78.164.29     22.78.165.29     22.79.39.29      22.79.164.29     
  96.     22.79.165.29     22.80.39.29      22.80.164.29     22.80.165.29     
  97.     22.81.39.29      22.81.164.29     22.81.165.29     22.82.39.29      
  98.     22.82.164.29     22.82.165.29     22.83.39.29      22.83.164.29     
  99.     22.83.165.29     22.84.39.29      22.84.164.29     22.84.165.29     
  100.     22.85.39.29      22.85.164.29     22.85.165.29     22.86.39.29      
  101.     22.86.164.29     22.86.165.29     22.87.39.29      22.87.164.29     
  102.     22.87.165.29     22.88.39.29      22.88.164.29     22.88.165.29     
  103.     22.89.39.29      22.89.164.29     22.89.165.29     22.90.39.29      
  104.     22.90.164.29     22.90.165.29     22.91.39.29      22.91.164.29     
  105.     22.91.165.29     22.92.39.29      22.92.164.29     22.92.165.29     
  106.     22.93.39.29      22.93.164.29     22.93.165.29     22.94.39.29      
  107.     22.94.164.29     22.94.165.29     22.95.39.29      22.95.164.29     
  108.     22.95.165.29     22.96.39.29      22.96.164.29     22.96.165.29     
  109.     22.97.39.29      22.97.164.29     22.97.165.29     22.98.39.29      
  110.     22.98.164.29     22.98.165.29     22.99.39.29      22.99.164.29     
  111.     22.99.165.29     22.100.39.29     22.100.164.29    22.100.165.29   
  112.     22.101.32.29     22.101.39.29     22.101.164.29    22.101.165.29   
  113.     22.102.32.29     22.102.39.29     22.102.164.29    22.102.165.29   
  114.     22.103.32.29     22.103.39.29     22.103.164.29    22.103.165.29   
  115.     22.104.32.29     22.104.39.29     22.104.164.29    22.104.165.29   
  116.     22.105.32.29     22.105.39.29     22.105.164.29    22.105.165.29   
  117.     22.106.32.29     22.106.39.29     22.106.164.29    22.106.165.29   
  118.     22.107.32.29     22.107.39.29     22.107.164.29    22.107.165.29   
  119.     22.108.32.29     22.108.39.29     22.108.164.29    22.108.165.29   
  120.     22.109.32.29     22.109.39.29     22.109.164.29    22.109.165.29   
  121.     22.110.32.29     22.110.39.29     22.110.164.29    22.110.165.29   
  122.     22.111.32.29     22.111.39.29     22.111.164.29    22.111.165.29   
  123.     22.112.32.29     22.112.39.29     22.112.164.29    22.112.165.29   
  124.     22.113.32.29     22.113.39.29     22.113.164.29    22.113.165.29   
  125.     22.114.32.29     22.114.39.29     22.114.164.29    22.114.165.29   
  126.     22.115.32.29     22.115.39.29     22.115.164.29    22.115.165.29   
  127.     22.116.32.29     22.116.39.29     22.116.164.29    22.116.165.29   
  128.     22.117.32.29     22.117.39.29     22.117.164.29    22.117.165.29   
  129.     22.118.32.29     22.118.39.29     22.118.164.29    22.118.165.29   
  130.     22.119.32.29     22.119.39.29     22.119.164.29    22.119.165.29   
  131.     22.120.32.29     22.120.39.29     22.120.164.29    22.120.165.29   
  132.     22.121.32.29     22.121.39.29     22.121.164.29    22.121.165.29   
  133.     22.122.32.29     22.122.39.29     22.122.164.29    22.122.165.29   
  134.     22.123.32.29     22.123.39.29     22.123.164.29    22.123.165.29   
  135.     22.124.32.29     22.124.39.29     22.124.164.29    22.124.165.29   
  136.     22.125.32.29     22.125.39.29     22.125.164.29    22.125.165.29   
  137.     22.126.32.29     22.126.39.29     22.126.164.29    22.126.165.29   
  138.     22.127.32.29     22.127.39.29     22.127.164.29    22.127.165.29   
  139.     22.128.32.29     22.128.39.29     22.128.164.29    22.128.165.29   
  140.     22.129.32.29     22.129.39.29     22.129.164.29    22.129.165.29   
  141.     22.130.32.29     22.130.39.29     22.130.164.29    22.130.165.29   
  142.     22.131.32.29     22.131.39.29     22.131.164.29    22.131.165.29   
  143.     22.132.32.29     22.132.39.29     22.132.164.29    22.132.165.29   
  144.     22.133.32.29     22.133.39.29     22.133.164.29    22.133.165.29   
  145.     22.134.32.29     22.134.39.29     22.134.164.29    22.134.165.29   
  146.     22.135.32.29     22.135.39.29     22.135.164.29    22.135.165.29   
  147.     22.136.32.29     22.136.39.29     22.136.164.29    22.136.165.29   
  148.     22.137.32.29     22.137.39.29     22.137.164.29    22.137.165.29   
  149.     22.138.32.29     22.138.39.29     22.138.164.29    22.138.165.29   
  150.     22.139.32.29     22.139.39.29     22.139.164.29    22.139.165.29   
  151.     22.140.32.29     22.140.39.29     22.140.164.29    22.140.165.29   
  152.     22.141.32.29     22.141.39.29     22.141.164.29    22.141.165.29   
  153.     22.142.32.29     22.142.39.29     22.142.164.29    22.142.165.29   
  154.     22.143.32.29     22.143.39.29     22.143.164.29    22.143.165.29   
  155.     22.144.32.29     22.144.39.29     22.144.164.29    22.144.165.29   
  156.     22.145.32.29     22.145.39.29     22.145.164.29    22.145.165.29   
  157.     22.146.32.29     22.146.39.29     22.146.164.29    22.146.165.29   
  158.     22.147.32.29     22.147.39.29     22.147.164.29    22.147.165.29   
  159.     22.148.32.29     22.148.39.29     22.148.164.29    22.148.165.29   
  160.     22.149.32.29     22.149.39.29     22.149.164.29    22.149.165.29   
  161.     22.150.32.29     22.150.39.29     22.150.164.29    22.150.165.29   
  162.     22.151.32.29     22.151.39.29     22.151.164.29    22.151.165.29   
  163.     22.152.32.29     22.152.39.29     22.152.164.29    22.152.165.29   
  164.     22.153.32.29     22.153.39.29     22.153.164.29    22.153.165.29   
  165.     22.154.32.29     22.154.39.29     22.154.164.29    22.154.165.29   
  166.     22.155.32.29     22.155.39.29     22.155.164.29    22.155.165.29   
  167.     22.156.32.29     22.156.39.29     22.156.164.29    22.156.165.29   
  168.     22.157.32.29     22.157.39.29     22.157.164.29    22.157.165.29   
  169.     22.158.32.29     22.158.39.29     22.158.164.29    22.158.165.29   
  170.     22.159.32.29     22.159.39.29     22.159.164.29    22.159.165.29   
  171.     22.160.32.29     22.160.39.29     22.160.164.29    22.160.165.29   
  172.     22.161.32.29     22.161.39.29     22.161.164.29    22.161.165.29   
  173.     22.162.32.29     22.162.39.29     22.162.164.29    22.162.165.29   
  174.     22.163.32.29     22.163.39.29     22.163.164.29    22.163.165.29   
  175.     22.164.32.29     22.164.39.29     22.164.164.29    22.164.165.29   
  176.     22.165.32.29     22.165.39.29     22.165.164.29    22.165.165.29   
  177.     22.166.32.29     22.166.39.29     22.166.164.29    22.166.165.29   
  178.     22.167.32.29     22.167.39.29     22.167.164.29    22.167.165.29   
  179.     22.168.32.29     22.168.39.29     22.168.164.29    22.168.165.29   
  180.     22.169.32.29     22.169.39.29     22.169.164.29    22.169.165.29   
  181.     22.170.32.29     22.170.39.29     22.170.164.29    22.170.165.29   
  182.     22.171.32.29     22.171.38.29     22.171.39.29     22.171.164.29   
  183.     22.171.165.29    22.172.32.29     22.172.38.29     22.172.39.29     
  184.     22.172.164.29    22.172.165.29    22.173.32.29     22.173.38.29     
  185.     22.173.39.29     22.173.164.29    22.173.165.29    22.174.32.29     
  186.     22.174.38.29     22.174.39.29     22.174.164.29    22.174.165.29   
  187.     22.175.32.29     22.175.38.29     22.175.39.29     22.175.164.29   
  188.     22.175.165.29    22.176.32.29     22.176.38.29     22.176.39.29     
  189.     22.176.164.29    22.176.165.29    22.177.32.29     22.177.38.29     
  190.     22.177.39.29     22.177.164.29    22.177.165.29    22.178.32.29     
  191.     22.178.38.29     22.178.39.29     22.178.164.29    22.178.165.29   
  192.     22.179.32.29     22.179.38.29     22.179.39.29     22.179.164.29   
  193.     22.179.165.29    22.180.32.29     22.180.38.29     22.180.39.29     
  194.     22.180.164.29    22.180.165.29    22.181.32.29     22.181.38.29     
  195.     22.181.39.29     22.181.164.29    22.181.165.29    22.182.32.29     
  196.     22.182.38.29     22.182.39.29     22.182.164.29    22.182.165.29   
  197.     22.183.32.29     22.183.38.29     22.183.39.29     22.183.164.29   
  198.     22.183.165.29    22.184.32.29     22.184.38.29     22.184.39.29     
  199.     22.184.164.29    22.184.165.29    22.185.32.29     22.185.38.29     
  200.     22.185.39.29     22.185.164.29    22.185.165.29    22.186.32.29     
  201.     22.186.38.29     22.186.39.29     22.186.164.29    22.186.165.29   
  202.     22.187.32.29     22.187.38.29     22.187.39.29     22.187.164.29   
  203.     22.187.165.29    22.188.32.29     22.188.38.29     22.188.39.29     
  204.     22.188.164.29    22.188.165.29    22.189.32.29     22.189.38.29     
  205.     22.189.39.29     22.189.164.29    22.189.165.29    22.190.32.29     
  206.     22.190.38.29     22.190.39.29     22.190.164.29    22.190.165.29   
  207.     22.191.32.29     22.191.38.29     22.191.39.29     22.191.164.29   
  208.     22.191.165.29    22.192.32.29     22.192.38.29     22.192.39.29     
  209.     22.192.164.29    22.192.165.29    22.193.32.29     22.193.38.29     
  210.     22.193.39.29     22.193.164.29    22.193.165.29    22.194.32.29     
  211.     22.194.38.29     22.194.39.29     22.194.164.29    22.194.165.29   
  212.     22.195.32.29     22.195.38.29     22.195.39.29     22.195.164.29   
  213.     22.195.165.29    22.196.32.29     22.196.38.29     22.196.39.29     
  214.     22.196.164.29    22.196.165.29    22.197.32.29     22.197.38.29     
  215.     22.197.39.29     22.197.164.29    22.197.165.29    22.198.32.29     
  216.     22.198.38.29     22.198.39.29     22.198.164.29    22.198.165.29   
  217.     22.199.32.29     22.199.38.29     22.199.39.29     22.199.164.29   
  218.     22.199.165.29    22.200.32.29     22.200.38.29     22.200.39.29     
  219.     22.200.164.29    22.200.165.29    22.201.38.29     22.201.39.29     
  220.     22.201.164.29    22.202.38.29     22.202.39.29     22.202.164.29   
  221.     22.203.38.29     22.203.39.29     22.203.164.29    22.204.38.29     
  222.     22.204.39.29     22.204.164.29    22.205.38.29     22.205.39.29     
  223.     22.205.164.29    22.206.38.29     22.206.39.29     22.206.164.29   
  224.     22.207.38.29     22.207.39.29     22.207.164.29    22.208.38.29     
  225.     22.208.39.29     22.208.164.29    22.209.38.29     22.209.39.29     
  226.     22.209.164.29    22.210.38.29     22.210.39.29     22.210.164.29   
  227.     22.211.38.29     22.211.39.29     22.211.164.29    22.212.38.29     
  228.     22.212.39.29     22.212.164.29    22.213.38.29     22.213.39.29     
  229.     22.213.164.29    22.214.38.29     22.214.39.29     22.214.164.29   
  230.     22.215.38.29     22.215.39.29     22.215.164.29    22.216.38.29     
  231.     22.216.39.29     22.216.164.29    22.217.38.29     22.217.39.29     
  232.     22.217.164.29    22.218.38.29     22.218.39.29     22.218.164.29   
  233.     22.219.38.29     22.219.39.29     22.219.164.29    22.220.38.29     
  234.     22.220.39.29     22.220.164.29    22.221.38.29     22.221.39.29     
  235.     22.221.164.29    22.222.38.29     22.222.39.29     22.222.164.29   
  236.     22.223.38.29     22.223.39.29     22.223.164.29    22.224.38.29     
  237.     22.224.39.29     22.224.164.29    22.225.38.29     22.225.39.29     
  238.     22.225.164.29    22.226.38.29     22.226.39.29     22.226.164.29   
  239.     22.227.38.29     22.227.39.29     22.227.164.29    22.228.38.29     
  240.     22.228.39.29     22.228.164.29    22.229.38.29     22.229.39.29     
  241.     22.229.164.29    22.230.38.29     22.230.39.29     22.230.164.29   
  242.     22.231.38.29     22.231.39.29     22.231.164.29    22.232.38.29     
  243.     22.232.39.29     22.232.164.29    22.233.38.29     22.233.39.29     
  244.     22.233.164.29    22.234.38.29     22.234.39.29     22.234.164.29   
  245.     22.235.38.29     22.235.39.29     22.235.164.29    22.236.38.29     
  246.     22.236.39.29     22.236.164.29    22.237.38.29     22.237.39.29     
  247.     22.237.164.29    22.238.38.29     22.238.39.29     22.238.164.29   
  248.     22.239.38.29     22.239.39.29     22.239.164.29    22.240.38.29     
  249.     22.240.39.29     22.240.164.29    22.241.38.29     22.241.39.29     
  250.     22.241.164.29    22.242.38.29     22.242.39.29     22.242.164.29   
  251.     22.243.38.29     22.243.39.29     22.243.164.29    22.244.38.29     
  252.     22.244.39.29     22.244.164.29    22.245.38.29     22.245.39.29     
  253.     22.245.164.29    22.246.38.29     22.246.39.29     22.246.164.29   
  254.     22.247.38.29     22.247.39.29     22.247.164.29    22.248.38.29     
  255.     22.248.39.29     22.248.164.29    22.249.38.29     22.249.39.29     
  256.     22.249.164.29    22.250.39.29     22.250.164.29    130.100.0.1      
  257.     130.100.1.1      130.100.2.1      130.100.3.1      130.100.4.1      
  258.     130.100.5.1      130.100.6.1      130.100.7.1      130.100.8.1      
  259.     130.100.9.1      130.100.10.1     130.100.11.1     130.100.12.1     
  260.     130.100.13.1     130.100.14.1     130.100.15.1     130.100.16.1     
  261.     130.100.17.1     172.16.0.29      192.168.1.29     192.168.1.129   

  262. Peer LDP Identifier: 172.16.0.20:0
  263.   TCP connection: 172.16.0.20:32166 - 172.16.0.1:646
  264.   Graceful Restart: Yes (Reconnect Timeout: 180 sec, Recovery: 0 sec)
  265.   Session Holdtime: 180 sec
  266.   State: Oper; Msgs sent/rcvd: 38704/37756; Downstream-Unsolicited
  267.   Up time: 1w0d
  268.   LDP Discovery Sources:
  269.     Targeted Hello (172.16.0.1 -> 172.16.0.20, active)
  270.   Addresses bound to this peer:
  271.     10.2.0.2         10.2.128.1       10.103.0.1       172.16.0.20      
  272.     192.168.1.20     192.168.1.120   

  273. Peer LDP Identifier: 172.16.0.12:0
  274.   TCP connection: 172.16.0.12:37139 - 172.16.0.1:646
  275.   Graceful Restart: Yes (Reconnect Timeout: 180 sec, Recovery: 0 sec)
  276.   Session Holdtime: 180 sec
  277.   State: Oper; Msgs sent/rcvd: 37112/36641; Downstream-Unsolicited
  278.   Up time: 1w0d
  279.   LDP Discovery Sources:
  280.     Targeted Hello (172.16.0.1 -> 172.16.0.12, active)
  281.   Addresses bound to this peer:
  282.     10.0.64.1        10.0.128.2       10.0.192.9       10.1.64.2        
  283.     10.3.64.21       10.4.128.2       172.16.0.12      192.168.1.12     
  284.     192.168.1.112   

  285. Peer LDP Identifier: 172.16.0.6:0
  286.   TCP connection: 172.16.0.6:40169 - 172.16.0.1:646
  287.   Graceful Restart: Yes (Reconnect Timeout: 180 sec, Recovery: 0 sec)
  288.   Session Holdtime: 180 sec
  289.   State: Oper; Msgs sent/rcvd: 36779/35819; Downstream-Unsolicited
  290.   Up time: 1w0d
  291.   LDP Discovery Sources:
  292.     Targeted Hello (172.16.0.1 -> 172.16.0.6, active)
  293.   Addresses bound to this peer:
  294.     10.3.64.22       10.3.128.22      172.16.0.6       192.168.1.6      
  295.     192.168.1.106    192.168.20.1     

  296. Peer LDP Identifier: 120.100.5.2:0
  297.   TCP connection: 120.100.5.2:646 - 172.16.0.1:59778
  298.   Graceful Restart: No
  299.   Session Holdtime: 180 sec
  300.   State: Oper; Msgs sent/rcvd: 16249/75; Downstream-Unsolicited
  301.   Up time: 01:09:36
  302.   LDP Discovery Sources:
  303.     Targeted Hello (172.16.0.1 -> 120.100.5.2, active)
  304.   Addresses bound to this peer:
  305.     120.100.5.2      

  306. Peer LDP Identifier: 120.100.1.2:0
  307.   TCP connection: 120.100.1.2:646 - 172.16.0.1:23435
  308.   Graceful Restart: No
  309.   Session Holdtime: 180 sec
  310.   State: Oper; Msgs sent/rcvd: 16251/75; Downstream-Unsolicited
  311.   Up time: 01:09:34
  312.   LDP Discovery Sources:
  313.     Targeted Hello (172.16.0.1 -> 120.100.1.2, active)
  314.   Addresses bound to this peer:
  315.     120.100.1.2      

  316. Peer LDP Identifier: 120.100.0.2:0
  317.   TCP connection: 120.100.0.2:646 - 172.16.0.1:63327
  318.   Graceful Restart: No
  319.   Session Holdtime: 180 sec
  320.   State: Oper; Msgs sent/rcvd: 16250/75; Downstream-Unsolicited
  321.   Up time: 01:09:34
  322.   LDP Discovery Sources:
  323.     Targeted Hello (172.16.0.1 -> 120.100.0.2, active)
  324.   Addresses bound to this peer:
  325.     120.100.0.2      

  326. Peer LDP Identifier: 120.100.7.2:0
  327.   TCP connection: 120.100.7.2:646 - 172.16.0.1:13349
  328.   Graceful Restart: No
  329.   Session Holdtime: 180 sec
  330.   State: Oper; Msgs sent/rcvd: 16249/75; Downstream-Unsolicited
  331.   Up time: 01:09:33
  332.   LDP Discovery Sources:
  333.     Targeted Hello (172.16.0.1 -> 120.100.7.2, active)
  334.   Addresses bound to this peer:
  335.     120.100.7.2      

  336. Peer LDP Identifier: 120.100.4.2:0
  337.   TCP connection: 120.100.4.2:646 - 172.16.0.1:36287
  338.   Graceful Restart: No
  339.   Session Holdtime: 180 sec
  340.   State: Oper; Msgs sent/rcvd: 16249/75; Downstream-Unsolicited
  341.   Up time: 01:09:33
  342.   LDP Discovery Sources:
  343.     Targeted Hello (172.16.0.1 -> 120.100.4.2, active)
  344.   Addresses bound to this peer:
  345.     120.100.4.2      

  346. Peer LDP Identifier: 120.100.8.2:0
  347.   TCP connection: 120.100.8.2:646 - 172.16.0.1:59014
  348.   Graceful Restart: No
  349.   Session Holdtime: 180 sec
  350.   State: Oper; Msgs sent/rcvd: 16251/75; Downstream-Unsolicited
  351.   Up time: 01:09:33
  352.   LDP Discovery Sources:
  353.     Targeted Hello (172.16.0.1 -> 120.100.8.2, active)
  354.   Addresses bound to this peer:
  355.     120.100.8.2      

  356. Peer LDP Identifier: 120.100.6.2:0
  357.   TCP connection: 120.100.6.2:646 - 172.16.0.1:15462
  358.   Graceful Restart: No
  359.   Session Holdtime: 180 sec
  360.   State: Oper; Msgs sent/rcvd: 16250/75; Downstream-Unsolicited
  361.   Up time: 01:09:33
  362.   LDP Discovery Sources:
  363.     Targeted Hello (172.16.0.1 -
复制代码

论坛徽章:
33
荣誉会员
日期:2011-11-23 16:44:17天秤座
日期:2014-08-26 16:18:20天秤座
日期:2014-08-29 10:12:18丑牛
日期:2014-08-29 16:06:45丑牛
日期:2014-09-03 10:28:58射手座
日期:2014-09-03 16:01:17寅虎
日期:2014-09-11 14:24:21天蝎座
日期:2014-09-17 08:33:55IT运维版块每日发帖之星
日期:2016-04-17 06:23:27操作系统版块每日发帖之星
日期:2016-04-18 06:20:00IT运维版块每日发帖之星
日期:2016-04-24 06:20:0015-16赛季CBA联赛之天津
日期:2016-05-06 12:46:59
发表于 2014-08-15 17:39 |显示全部楼层
我好象记得我发过空格过去.

用的好象是  telnet lib

论坛徽章:
42
19周年集字徽章-周
日期:2019-10-14 14:35:31平安夜徽章
日期:2015-12-26 00:06:30数据库技术版块每日发帖之星
日期:2015-12-01 06:20:002015亚冠之首尔
日期:2015-11-04 22:25:43IT运维版块每日发帖之星
日期:2015-08-17 06:20:00寅虎
日期:2014-06-04 16:25:27狮子座
日期:2014-05-12 11:00:00辰龙
日期:2013-12-20 17:07:19射手座
日期:2013-10-24 21:01:23CU十二周年纪念徽章
日期:2013-10-24 15:41:34IT运维版块每日发帖之星
日期:2016-01-27 06:20:0015-16赛季CBA联赛之新疆
日期:2016-06-07 14:10:01
发表于 2014-08-16 08:41 |显示全部楼层
中间出现默认提示符,认为结束了.
放弃cmd命令,改为print和waitfor
或者修改cmd的默认提示符,设一个最末行的提示

论坛徽章:
0
发表于 2014-08-16 13:40 |显示全部楼层
回复 3# laputa73


    有道理,提示符没有权限改,外包过来的一个项目,我改用print和waitfor试一试

   
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP