Quick command line format question

I’m trying to use comment with the addition of a NAT rule and the format says comment (text).

I tried comment=‘something like this’ and comment=“something like this” and both failed.

What is the format for the comment?

comment=“blah” is right. Are you perhaps not missing a " somewhere else in the command?

I think it was that I was using a dollar sign $ in the comment and it didn’t like that. Although I can use a dollar sign from the Winbox GUI.

Try escaping it. Not sure if it will work, but it should on *nix... $ instead of just $

\

C

I think the comment searching is also exact (entire) match … not 100% sure but I think so.

Sam

For interest sakes…

[cknipe@MikroTik] ip address> add address=192.168.0.1/24 interface="Backbone Link" comment="blah $"
[cknipe@MikroTik] ip address> add address=192.168.0.2/24 interface="Backbone Link" comment="blah \$"
[cknipe@MikroTik] ip address> pr
Flags: X - disabled, I - invalid, D - dynamic
 #   ADDRESS            NETWORK         BROADCAST       INTERFACE
 1   ;;; blah $
     192.168.0.1/24     192.168.0.0     192.168.0.255   Backbone Link
 2   ;;; blah $
     192.168.0.2/24     192.168.0.0     192.168.0.255   Backbone Link
[cknipe@MikroTik] ip address>

Both works fine here…