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?