Sometimes you need to pick several items from a list or enter several items and to apply them to an entry, or both. i.e; 1:many, many:1, many:many; e.g;
We’d like to set the winbox service available on VRF red, green, and blue;
/ip/service/set winbox vrf= ?
I tried:
/ip/service/set winbox vrf=R,G,B
/ip/service/set winbox vrf=R;G;B
/ip/service/set winbox vrf="R G B"
/ip/service/set winbox vrf="R,G,B"
/ip/service/set winbox vrf="R;G;B"
/ip/service/set winbox vrf={R,G,B}
/ip/service/set winbox vrf={R;G;B}
/ip/service/set winbox vrf={R;G;B;}
/ip/service/set winbox vrf={R G B}
/ip/service/set winbox vrf=(R,G,B)
/ip/service/set winbox vrf=(R;G;B)
/ip/service/set winbox vrf=(R;G;B;)
/ip/service/set winbox vrf=(R G B)
(Obviously, none worked.)
Now, if I were setting a the same parameters to several items, for instance, still using services as an example:
[user@impossiblecli] /ip/service> print
Flags: X, I - INVALID
Columns: NAME, PORT, ADDRESS, CERTIFICATE, VRF
# NAME PORT ADDRESS CERTIFICATE VRF
0 X telnet 23 main
1 X ftp 21
2 www 80 main
3 ssh 22 0.0.0.0/0 main
4 www-ssl 443 premlinkv50rsa main
5 X api 8728 main
6 winbox 8291 main
7 api-ssl 8729 premlinkv50rsa main
I could use “number=” to target them directly, which I believe does allow using commas to list them, but it is tedious if the list is large. Another option is if I remember correctly an in-line search function, but that’s not as precise as mixing ranges and individual entries in the line e.g; “number=1-12,15,16,20-26,28”, not to mention mastering of the required more syntax. I assume this is possible but I cannot find documentation about it or I’m just too dumb to interpret it, furthermore, in the old wiki there used to be a connection with winbox’s menu system, allegedly the same as the CLI, so one could kind of loosely put things together from that, but the new wiki seems structured topic-basic; it’s harder to pinpoint a winbox menu that (loosely) translates to the CLI and go from there.
There are multi-valued items about everywhere in winbox, but these are listed in their own little box so there’s no string that could be copied to the CLI. I’ve found no reference about how to list things in-line in the CLI yet, but I’m still hopeful one must have be given somewhere.
Thanks.