I noticed that a set of network devices has some weird ASCII in the results I pull from the socket that I am not familiar with using other network devices.
Any ideas?
this is the method that retrieves my data:
Dim i as integer
do
Dim ReceiveBufferArray() as String
app.SleepCurrentThread ms
ReceiveBuffer = ConvertEncoding(SSHChannel.Read, Encodings.ASCII) // Have tried no encoding and UTF-8 all the same
IF LogModule.LogLevel = 1 Then
for i = 0 to UBound(ReceiveBufferArray)
LogModule.mLiveLog(ReceiveBufferArray(i))
next i
END IF
loop until SSHChannel.Read = ""
This screen shot is live directly after it receives data from the ssh.read:
It is possible that they are control codes for doing things like clearing the screen. If you use a regular ssh client to connect, and you issue the same command, does it do a screen clear, or use any other “visual goodies”?