Community discussions

MikroTik App
 
mr.incredible
just joined
Topic Author
Posts: 6
Joined: Thu Apr 24, 2008 2:03 pm

Consistency of command shortcuts

Thu Aug 19, 2021 2:02 pm

Something frustrating that has been happening on RouterOS is that the shortcut commands change when new commands are added.

For example - RouterOS 6.47:

[user@router] > /int br po pr
Flags: X - disabled, I - inactive, D - dynamic, H - hw-offload 
 #     INTERFACE     BRIDGE        HW  PVID PR  PATH-COST INTERNA...    HORIZON
 0 I   ;;; defconf
       ether3        br-lan        yes    1 0x         10         10       none
 1 I   ;;; defconf
       ether4        br-lan        yes    1 0x         10         10       none
 2 I   ;;; defconf
       ether5        br-lan        yes    1 0x         10         10       none
 3 I   ;;; defconf
       sfp1          br-lan        yes    1 0x         10         10       none
[user@router] > 
Here is the output of the exact same command on RouterOS 6.48:
[user@router] > /int br po pr
              ;;; disabled
          switch: none
   control-ports: 
  excluded-ports: 
[user@router] > 
Can you please pay attention to these issues as it really messes with the workflow of anyone using the CLI.

Where is the correct place to report these issues? (and where is it mentioned?)

I have picked up many many issues like this, with some items not being able to be set, or some indexes writing over wrong things - I have always been afraid to run new commands on Mikrotik for this reason from version 1, and I still am today because new commands still contain bugs just like in the old days... and also because I don't know how to report issues, and whether it will be ignored or acknowledged.

I have searched main page, docs, web page, web, forums, nowhere can I find any official place to report bugs without an account. I don't want to register and account and engage with support and have back and forth, I just want to tell you bugs and then you make sure they get on your list of bugs to fix. Sure I can just email support, but I never hear anything back and nothing gets fixed, which is no surprise because how many duplicate bugs do you receive via email and how would you know if it is a duplicate? Why not give your users a way to check before submitting? If you are concerned about security you can do like other companies and have a checkbox for security issue.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Consistency of command shortcuts

Thu Aug 19, 2021 3:03 pm

Something frustrating that has been happening on RouterOS is that the shortcut commands change when new commands are added.

Can you please pay attention to these issues as it really messes with the workflow of anyone using the CLI.
But do you realize what you write?
The problem is yours, it is not from mikrotik,
if you are used to writing two letters on command,
now sometimes you write three.
The abbreviation is a convenience

So what do they do, when they add the commands I have to do like
/int br p2rt-extender
/int br p3rt-controller
just because "po" is already used and someone is too lazy to print another 2 chars?
Or if someone use only one letter like
/i f a p
This post seems like a big bullshit and that's it, and I'm surprised that there is someone who wrote it !!!
Last edited by rextended on Thu Aug 19, 2021 5:33 pm, edited 1 time in total.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7053
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Consistency of command shortcuts

Thu Aug 19, 2021 3:08 pm

I do not see an issue with shortcuts here. You could expect to use the exact name of the menu/command only if there is only one match.

int br po matches more than one menu. to get expected results, add more symbols to narrow the match.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Consistency of command shortcuts

Thu Aug 19, 2021 3:19 pm

Syntax changes from 6.34 (2016) to 6.47.10 (2021) without report on what specific version the change happen:

/ip settings
from max-arp-entries
to   max-neighbor-entries

/system leds
from setting
to   settings

/tool sms
from interface
to   port

/tool mac-server
from interface
to   allowed-interface-list

/tool mac-server mac-winbox
from interface
to   allowed-interface-list

/ip ipsec
from peer profile
to   profile

/ip ipsec
from user settings
to   settings

/system watchdog
from no-ping-delay
to   ping-start-after-boot
8 changes on 5 years... really problematic!!!

I do not see any issue, like all the software on the world, something can change over time.
Last edited by rextended on Sun Sep 05, 2021 10:43 am, edited 1 time in total.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19323
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Consistency of command shortcuts

Thu Aug 19, 2021 3:35 pm

To be sure there are different ways of entering terminal commands between 6 and 7, that were not clear to me if they were beta commands that would revert back to v6 commands for a 'release' version or if the new syntax is from this point forward approach. In any case upon 'release' MT will update all the literature accordingly (assuming).
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11593
Joined: Thu Mar 03, 2016 10:23 pm

Re: Consistency of command shortcuts

Thu Aug 19, 2021 3:43 pm

Something frustrating that has been happening on RouterOS is that the shortcut commands change when new commands are added.

As @rextended and others already wrote: using abbreviated commands is a (handy) shortcut ... either learn to press [TAB] instead of [space] to see if your shortcut expands to proper full command or (better yet) start typing commands in full. The later specially applies when writing scripts or forum posts.
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3297
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: Consistency of command shortcuts

Thu Aug 19, 2021 4:53 pm

I would never used command shourtcuts when program scripts.
Makes ut much harder to read and see what is going on.
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11593
Joined: Thu Mar 03, 2016 10:23 pm

Re: Consistency of command shortcuts

Thu Aug 19, 2021 5:18 pm

@Jotne: yep, most of us do write full commands in many cases (myself I'm writing full commands all the time, if I don't know exact spelling, I press [TAB] either to get it expanded or to show alternatives). But there are a handful of forum users who like to write shortcuts even in forum posts. I don't understand what's their motivation for doing that, my guess is they are simply showing off.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Consistency of command shortcuts

Thu Aug 19, 2021 5:30 pm

In everyday use on terminal, is rare than I digit all "/system routerboard print",
for do fast I write "/sys rou pri", and is rare that I use only 2 letters.

When I create a script for my own use, it can happen that I sometimes shorten it as "/ sys routerboard", but it remains clear.
It is illegible all abbreviated ...
On the forum the complete syntax is better,
nobody wants it be too short and do something like that alone
/i f a p
or
/i f a a a=1.2.3.4 l=t

Who is online

Users browsing this forum: No registered users and 25 guests