Skip Menu |
 

This queue is for tickets about the Net-Telnet CPAN distribution.

Report information
The Basics
Id: 102255
Status: new
Priority: 0/
Queue: Net-Telnet

People
Owner: Nobody in particular
Requestors: apfeiffe [...] Brocade.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



CC: "jay [...] rgrs.com" <jay [...] rgrs.com>, Don Dettke <ddettke [...] Brocade.com>, "Adam Pfeiffer" <apfeiffe [...] Brocade.com>
Subject: Net::Telnet->getlines() not returning any data
Date: Fri, 20 Feb 2015 18:11:18 +0000
To: "bug-Net-Telnet [...] rt.cpan.org" <bug-Net-Telnet [...] rt.cpan.org>
From: Adam Pfeiffer <apfeiffe [...] Brocade.com>
Download (untitled) / with headers
text/plain 11.2k
Hi, Based on the documentation, getlines gets all data currently in the buffer. This isn't working in my environment which is the following: Net::Telnet->Terminal Concentrator->Serial console of fibre channel switch In order to test this functionality, I am logged into the same console from Net::Telnet and from my laptop. I can run commands on the console from my laptop which Net::Telnet should read with getlines(). The test steps to reproduce the issue are as follows: 1. Open up a connection to the terminal concentrator from my laptop 2. Open up a connection to the terminal concentrator via Net::Telnet and join the same session used by the laptop 3. Run a script to produce output on the console (see output below): 4. Run $session->getline() to prove there is data in the buffer: DB<11> x $session->getline() 0 "B5300_044_141:FID128:root> counter=0\cH\cH\cH\cH\cH\cH\cH\cH\cHwhile true; do echo \"iteration \$counter - testing line\cMe length of 60 characters........\"; let counter=counter+1; done\cJ" 5. Run $session->getlines() and nothing is returned: DB<12> x $session->getlines() empty array 6. Furthermore, now the buffer is empty as getline doesn't return anything: DB<13> x $session->getline() empty array If I run the same steps 1-4, but at step 5 I do this: while (my $line = $session->getline()) { print "$line" } I do get back all the data as you can see here (only partial data, but you can see it works): DB<15> x while (my $line = $session->getline()) { print "$line" } iteration 0 - testing line length of 60 characters........ iteration 1 - testing line length of 60 characters........ iteration 2 - testing line length of 60 characters........ iteration 3 - testing line length of 60 characters........ iteration 4 - testing line length of 60 characters........ Thanks much for your time! Adam Output generated on the console: B5300_044_141:FID128:root> while true; do echo "iteration $counter - testing line length of 60 characters........"; let counter=counter+1; done iteration 0 - testing line length of 60 characters........ iteration 1 - testing line length of 60 characters........ iteration 2 - testing line length of 60 characters........ iteration 3 - testing line length of 60 characters........ iteration 4 - testing line length of 60 characters........ iteration 5 - testing line length of 60 characters........ iteration 6 - testing line length of 60 characters........ iteration 7 - testing line length of 60 characters........ iteration 8 - testing line length of 60 characters........ iteration 9 - testing line length of 60 characters........ iteration 10 - testing line length of 60 characters........ iteration 11 - testing line length of 60 characters........ iteration 12 - testing line length of 60 characters........ iteration 13 - testing line length of 60 characters........ iteration 14 - testing line length of 60 characters........ iteration 15 - testing line length of 60 characters........ iteration 16 - testing line length of 60 characters........ iteration 17 - testing line length of 60 characters........ iteration 18 - testing line length of 60 characters........ iteration 19 - testing line length of 60 characters........ iteration 20 - testing line length of 60 characters........ iteration 21 - testing line length of 60 characters........ iteration 22 - testing line length of 60 characters........ iteration 23 - testing line length of 60 characters........ iteration 24 - testing line length of 60 characters........ iteration 25 - testing line length of 60 characters........ iteration 26 - testing line length of 60 characters........ iteration 27 - testing line length of 60 characters........ iteration 28 - testing line length of 60 characters........ iteration 29 - testing line length of 60 characters........ iteration 30 - testing line length of 60 characters........ iteration 31 - testing line length of 60 characters........ iteration 32 - testing line length of 60 characters........ iteration 33 - testing line length of 60 characters........ iteration 34 - testing line length of 60 characters........ iteration 35 - testing line length of 60 characters........ iteration 36 - testing line length of 60 characters........ iteration 37 - testing line length of 60 characters........ iteration 38 - testing line length of 60 characters........ iteration 39 - testing line length of 60 characters........ iteration 40 - testing line length of 60 characters........ iteration 41 - testing line length of 60 characters........ iteration 42 - testing line length of 60 characters........ iteration 43 - testing line length of 60 characters........ iteration 44 - testing line length of 60 characters........ iteration 45 - testing line length of 60 characters........ iteration 46 - testing line length of 60 characters........ iteration 47 - testing line length of 60 characters........ iteration 48 - testing line length of 60 characters........ iteration 49 - testing line length of 60 characters........ iteration 50 - testing line length of 60 characters........ iteration 51 - testing line length of 60 characters........ iteration 52 - testing line length of 60 characters........ iteration 53 - testing line length of 60 characters........ iteration 54 - testing line length of 60 characters........ iteration 55 - testing line length of 60 characters........ iteration 56 - testing line length of 60 characters........ iteration 57 - testing line length of 60 characters........ iteration 58 - testing line length of 60 characters........ iteration 59 - testing line length of 60 characters........ iteration 60 - testing line length of 60 characters........ iteration 61 - testing line length of 60 characters........ iteration 62 - testing line length of 60 characters........ iteration 63 - testing line length of 60 characters........ iteration 64 - testing line length of 60 characters........ iteration 65 - testing line length of 60 characters........ iteration 66 - testing line length of 60 characters........ iteration 67 - testing line length of 60 characters........ iteration 68 - testing line length of 60 characters........ iteration 69 - testing line length of 60 characters........ iteration 70 - testing line length of 60 characters........ iteration 71 - testing line length of 60 characters........ iteration 72 - testing line length of 60 characters........ iteration 73 - testing line length of 60 characters........ iteration 74 - testing line length of 60 characters........ iteration 75 - testing line length of 60 characters........ iteration 76 - testing line length of 60 characters........ iteration 77 - testing line length of 60 characters........ iteration 78 - testing line length of 60 characters........ iteration 79 - testing line length of 60 characters........ iteration 80 - testing line length of 60 characters........ iteration 81 - testing line length of 60 characters........ iteration 82 - testing line length of 60 characters........ iteration 83 - testing line length of 60 characters........ iteration 84 - testing line length of 60 characters........ iteration 85 - testing line length of 60 characters........ iteration 86 - testing line length of 60 characters........ iteration 87 - testing line length of 60 characters........ iteration 88 - testing line length of 60 characters........ iteration 89 - testing line length of 60 characters........ iteration 90 - testing line length of 60 characters........ iteration 91 - testing line length of 60 characters........ iteration 92 - testing line length of 60 characters........ iteration 93 - testing line length of 60 characters........ iteration 94 - testing line length of 60 characters........ iteration 95 - testing line length of 60 characters........ iteration 96 - testing line length of 60 characters........ iteration 97 - testing line length of 60 characters........ iteration 98 - testing line length of 60 characters........ iteration 99 - testing line length of 60 characters........ iteration 100 - testing line length of 60 characters........ iteration 101 - testing line length of 60 characters........ iteration 102 - testing line length of 60 characters........ iteration 103 - testing line length of 60 characters........ iteration 104 - testing line length of 60 characters........ iteration 105 - testing line length of 60 characters........ iteration 106 - testing line length of 60 characters........ iteration 107 - testing line length of 60 characters........ iteration 108 - testing line length of 60 characters........ iteration 109 - testing line length of 60 characters........ iteration 110 - testing line length of 60 characters........ iteration 111 - testing line length of 60 characters........ iteration 112 - testing line length of 60 characters........ iteration 113 - testing line length of 60 characters........ iteration 114 - testing line length of 60 characters........ iteration 115 - testing line length of 60 characters........ iteration 116 - testing line length of 60 characters........ iteration 117 - testing line length of 60 characters........ iteration 118 - testing line length of 60 characters........ iteration 119 - testing line length of 60 characters........ iteration 120 - testing line length of 60 characters........ iteration 121 - testing line length of 60 characters........ iteration 122 - testing line length of 60 characters........ iteration 123 - testing line length of 60 characters........ iteration 124 - testing line length of 60 characters........ iteration 125 - testing line length of 60 characters........ iteration 126 - testing line length of 60 characters........ iteration 127 - testing line length of 60 characters........ iteration 128 - testing line length of 60 characters........ iteration 129 - testing line length of 60 characters........ iteration 130 - testing line length of 60 characters........ iteration 131 - testing line length of 60 characters........ iteration 132 - testing line length of 60 characters........ iteration 133 - testing line length of 60 characters........ iteration 134 - testing line length of 60 characters........ iteration 135 - testing line length of 60 characters........ iteration 136 - testing line length of 60 characters........ iteration 137 - testing line length of 60 characters........ iteration 138 - testing line length of 60 characters........ iteration 139 - testing line length of 60 characters........ iteration 140 - testing line length of 60 characters........ iteration 141 - testing line length of 60 characters........ iteration 142 - testing line length of 60 characters........ iteration 143 - testing line length of 60 characters........ iteration 144 - testing line length of 60 characters........ iteration 145 - testing line length of 60 characters........ iteration 146 - testing line length of 60 characters........ iteration 147 - testing line length of 60 characters........ iteration 148 - testing line length of 60 characters........ iteration 149 - testing line length of 60 characters........ iteration 150 - testing line length of 60 characters....... Adam Pfeiffer SQA Team Brocade 4 Brocade Parkway, Broomfield, CO 80021 (720) 558-3681 www.brocade.com<http://www.brocade.com/> [Brocade Logo]
Download (untitled) / with headers
text/html 28.4k

Message body is not shown because it is too large.

Download image001.gif
image/gif 2.8k
image001.gif


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.