Community discussions

MikroTik App
 
IntraLink
Member Candidate
Member Candidate
Topic Author
Posts: 113
Joined: Fri May 28, 2004 5:44 pm
Location: Utah Valley
Contact:

Quick command line format question

Wed May 17, 2006 9:10 pm

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?
 
savage
Forum Guru
Forum Guru
Posts: 1265
Joined: Mon Oct 18, 2004 12:07 am
Location: Cape Town, South Africa
Contact:

Wed May 17, 2006 9:26 pm

comment="blah" is right. Are you perhaps not missing a " somewhere else in the command?
 
IntraLink
Member Candidate
Member Candidate
Topic Author
Posts: 113
Joined: Fri May 28, 2004 5:44 pm
Location: Utah Valley
Contact:

Wed May 17, 2006 10:07 pm

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.
 
savage
Forum Guru
Forum Guru
Posts: 1265
Joined: Mon Oct 18, 2004 12:07 am
Location: Cape Town, South Africa
Contact:

Wed May 17, 2006 10:09 pm

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


--
C
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Wed May 17, 2006 10:49 pm

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

Sam
 
savage
Forum Guru
Forum Guru
Posts: 1265
Joined: Mon Oct 18, 2004 12:07 am
Location: Cape Town, South Africa
Contact:

Wed May 17, 2006 10:52 pm

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...

Who is online

Users browsing this forum: faxxe, Mosmos and 22 guests