Community discussions

MikroTik App
 
retaheri
just joined
Topic Author
Posts: 24
Joined: Thu Oct 17, 2019 12:22 pm

How to use "Print" command to show the related contents line-by-line?

Sun Feb 02, 2020 6:13 am

Hello dears
I could not find any solution for this problem (viewtopic.php?f=2&t=153057)! So is there any way to use "print" command to show contents one-by-one; means it shows one line then stops till I press - for example - space key then shows another line...?
 
User avatar
SiB
Forum Guru
Forum Guru
Posts: 1891
Joined: Sun Jan 06, 2013 11:19 pm
Location: Poland

Re: How to use "Print" command to show the related contents line-by-line?

Sun Feb 02, 2020 6:31 pm

retaheri
Hello dears
there any way to use "print" command to show contents one-by-one; means it shows one line then stops till I press - for example - space key then shows another line...?
Try do a command like "/ping 1.1.1.1" and you see that ROS in CLI results do displays in some n-lines like 20 who are devided in pages (for every 20 results).
When you try print from command who display many results you can select optional "without-paging" means without the summary every x entry.
When you change size of winbox terminal to few lines then print from firewall filters you discover the dynamic print of result who can be scrool by up/down arrow and the bottom:
-- [Q quit|D dump|up|down]

You NOT have a settings like pages_lines=1 to do a print line by line etc.

I not understand why you interested in it. To what you want this displays? Maybe are other workaroung but to what purpose this?
Maybe I still not understand your question, provide some screenshot etc. or write it by other words.
 
retaheri
just joined
Topic Author
Posts: 24
Joined: Thu Oct 17, 2019 12:22 pm

Re: How to use "Print" command to show the related contents line-by-line?

Tue Feb 04, 2020 10:33 am

retaheri
Hello dears
there any way to use "print" command to show contents one-by-one; means it shows one line then stops till I press - for example - space key then shows another line...?
Try do a command like "/ping 1.1.1.1" and you see that ROS in CLI results do displays in some n-lines like 20 who are devided in pages (for every 20 results).
When you try print from command who display many results you can select optional "without-paging" means without the summary every x entry.
When you change size of winbox terminal to few lines then print from firewall filters you discover the dynamic print of result who can be scrool by up/down arrow and the bottom:
-- [Q quit|D dump|up|down]

You NOT have a settings like pages_lines=1 to do a print line by line etc.

I not understand why you interested in it. To what you want this displays? Maybe are other workaroung but to what purpose this?
Maybe I still not understand your question, provide some screenshot etc. or write it by other words.
Thank you Sib for your answer
As I said in the link inserted in the question, when contents of some commands eg. ip route print or ip fire address print... , are more than for example 5 lines, Telnet stops working!!! So I asked that question to print commands line-by-line to prevent telnet from stopping!
 
User avatar
SiB
Forum Guru
Forum Guru
Posts: 1891
Joined: Sun Jan 06, 2013 11:19 pm
Location: Poland

Re: How to use "Print" command to show the related contents line-by-line?

Tue Feb 04, 2020 11:03 am

retaheri
eg. ip route print or ip fire address print... , are more than for example 5 lines, Telnet stops working!!! So I asked that question to print commands line-by-line to prevent telnet from stopping!
It's not solution.
Maybe you not connect by IPv4/IPv6 but via MAC-Address?
Even do I can do listing 1000 firewall rules and all works me fine via later2.
Please try upgrade ROS with boot-firmware and connect via IP.

P.S. Layer2 can disconnect when you have big transfer at interface with this connection but relative is stable for management with multi-line. And should be.
 
retaheri
just joined
Topic Author
Posts: 24
Joined: Thu Oct 17, 2019 12:22 pm

Re: How to use "Print" command to show the related contents line-by-line?

Tue Feb 04, 2020 12:34 pm

retaheri
eg. ip route print or ip fire address print... , are more than for example 5 lines, Telnet stops working!!! So I asked that question to print commands line-by-line to prevent telnet from stopping!
It's not solution.
Maybe you not connect by IPv4/IPv6 but via MAC-Address?
Even do I can do listing 1000 firewall rules and all works me fine via later2.
Please try upgrade ROS with boot-firmware and connect via IP.

P.S. Layer2 can disconnect when you have big transfer at interface with this connection but relative is stable for management with multi-line. And should be.
we are using a VPN server (pptp tunnel) that our branches connect to. Then we can telnet them by private ip address eg. 172.21.x.246. So what I said before happens! The OS is up-to-date!
 
User avatar
SiB
Forum Guru
Forum Guru
Posts: 1891
Joined: Sun Jan 06, 2013 11:19 pm
Location: Poland

Re: How to use "Print" command to show the related contents line-by-line?

Tue Feb 04, 2020 12:54 pm

retaheri
we are using a VPN server (pptp tunnel) that our branches connect to. Then we can telnet them by private ip address eg. 172.21.x.246. So what I said before happens! The OS is up-to-date!
I not say it's not happens. I write at Layer2 because this way is most not stable connection.
I test my mac-telnet via l2tp (via 1100km distance) and works with my address-list and firewall rules. Yes, some times disconnect but still ping 50-120ms. I can be connected and do 8x print.
I cannot reproduce your case in my scenario.

Maybe you should contact with your supout.rif to suport@mikrotik.com or try the same with local connection or with other vpn server.
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 13240
Joined: Thu Mar 03, 2016 10:23 pm

Re: How to use "Print" command to show the related contents line-by-line?

Tue Feb 04, 2020 2:48 pm

we are using a VPN server (pptp tunnel) that our branches connect to. Then we can telnet them by private ip address eg. 172.21.x.246. So what I said before happens!

This smells like problem with MTU size on VPN tunnel to me ... tunnel dropping all packets with size above certain level. Usually PMTUD mechanizm should kick in, but seems that sometimes it doesn't probably because router doesn't respond with "ICMP Fragmentation Needed" ... or that ICMP message is dropped by a too-eager firewall.

So try to lower MTU on VPN interface and see if it helps.
 
retaheri
just joined
Topic Author
Posts: 24
Joined: Thu Oct 17, 2019 12:22 pm

Re: How to use "Print" command to show the related contents line-by-line?

Wed Feb 05, 2020 5:51 am

we are using a VPN server (pptp tunnel) that our branches connect to. Then we can telnet them by private ip address eg. 172.21.x.246. So what I said before happens!

This smells like problem with MTU size on VPN tunnel to me ... tunnel dropping all packets with size above certain level. Usually PMTUD mechanizm should kick in, but seems that sometimes it doesn't probably because router doesn't respond with "ICMP Fragmentation Needed" ... or that ICMP message is dropped by a too-eager firewall.

So try to lower MTU on VPN interface and see if it helps.
Thank you mkx
MTU on client side or server side?
 
retaheri
just joined
Topic Author
Posts: 24
Joined: Thu Oct 17, 2019 12:22 pm

Re: How to use "Print" command to show the related contents line-by-line?

Wed Feb 05, 2020 7:37 am

we are using a VPN server (pptp tunnel) that our branches connect to. Then we can telnet them by private ip address eg. 172.21.x.246. So what I said before happens!

This smells like problem with MTU size on VPN tunnel to me ... tunnel dropping all packets with size above certain level. Usually PMTUD mechanizm should kick in, but seems that sometimes it doesn't probably because router doesn't respond with "ICMP Fragmentation Needed" ... or that ICMP message is dropped by a too-eager firewall.

So try to lower MTU on VPN interface and see if it helps.
I think it also depends on ISP and internet speed! Because we have no problem with almost all of branches but some!
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 13240
Joined: Thu Mar 03, 2016 10:23 pm

Re: How to use "Print" command to show the related contents line-by-line?  [SOLVED]

Wed Feb 05, 2020 9:07 am

So try to lower MTU on VPN interface and see if it helps.
MTU on client side or server side?
[/quote]

Probably on the remote side (the one that doesn't return full config listing), that's the side which tries to use large packets.

My personal preference is that MTU should be symmetrical ... but this doesn't mean it's wrong to have MTU different in different directions.

And yes, max MTU can vary from link to link ... it mainly depends on MTU allowed on "bare" ISP connection. I.e. if ISP uses PPPoE, then MTU on that connection is likely lower than 1500 (could be as low as 1480), OTOH if ISP allows normal IP (either static of using DHCP), then MTU is likely standard 1500. Doesn't really depend on link speed though.
All of this assuming that ISP backbone and interchanges operate with standard (or large) MTUs ... which might not be always the case.