Unexpected output from command via ssh

Hello.
I’m trying get some information via ssh. And command output it’s almost ok when I trying in interactive session:

/interface print stats
 #     NAME                                        RX-BYTE           TX-BYTE     RX-PACKET     TX-PACKET RX-DROP TX-DROP RX-ERROR TX-ERROR
 0     ether1                                            0                 0             0             0       0       0        0        0     
 1     ether2                                            0                 0             0             0       0       0        0        0     
 2     ether3                                            0                 0             0             0       0       0        0        0     
 3     ether4                                            0                 0             0             0       0       0        0        0     
 4     ether5                                            0                 0             0             0       0       0        0        0     
 5     ether6                                            0                 0             0             0       0       0        0        0     
 6     ether7                                            0                 0             0             0       0       0        0        0     
 7     ether8                                      752 234        11 290 817        10 175         9 830       0       0        0        0
 8  R  sfp-sfpplus1                      62 549 807 247... 9 654 153 426 940 52 352 265... 31 533 587...       0       0        0        0
 9  R  sfp-sfpplus2                      10 704 190 431... 62 776 618 656... 34 838 024... 52 577 219...       0       0        0        0
10 DR  <pppoe-abfranke>                         80 431 459       698 463 281       396 611       592 478       0       0        0        0

But when I trying do the same with non interactive terminal, some important data are trimmed:

ssh manager@192.168.1.1 '/interface print stats'
Flags: D - dynamic, X - disabled, R - running, S - slave 
 #     NAME               RX-BYTE           TX-BYTE     RX-PACKET     TX-PACKET
 0     ether1                   0                 0             0             0
 1     ether2                   0                 0             0             0
 2     ether3                   0                 0             0             0
 3     ether4                   0                 0             0             0
 4     ether5                   0                 0             0             0
 5     ether6                   0                 0             0             0
 6     ether7                   0                 0             0             0
 7     ether8             752 234        11 290 817        10 175         9 830
 8  R  sfp-s... 62 555 656 097... 9 655 029 338 498 52 357 361... 31 536 780...
 9  R  sfp-s... 10 705 116 804... 62 782 411 526... 34 841 291... 52 582 281...
10 DR  <pppo...        80 432 995       698 464 817       396 627       592 494

It’s possible to get full output line from this command? I’ve already tried set local terminal rows, assing terminal parameters with login http://wiki.mikrotik.com/wiki/Manual:Console_login_process#Console_login_options - without success.

I know about other print options but this command output has best format to parse.

Any ideas?

If anybody looking for answer this line do the job:

ssh manager@192.168.1.1 '/interface print stats-detail' | tr -d '\r' | sed -e 's/^\s\{7\}//' | tr '\n' '#' | sed -e 's/##/\n/g;s/#\{1\}//g'

I think what affects you here is the “screen size” negotiated over ssh (and also telnet) which allows the
router to know what the line length is. When doing a scripted connection there will be some default
value which in your case apparently is less. You may be able to specify a fake screen size to your ssh
client when making a scripted connection.

Thx for reply, but I didn’t find this option in ssh manual :frowning:. Only -t looks good, but this option disable non interactive connection.