Community discussions

MikroTik App
 
David1234
Forum Guru
Forum Guru
Topic Author
Posts: 1424
Joined: Sun Sep 18, 2011 7:00 pm

search with "~" on C# API?

Thu Dec 15, 2022 4:34 pm

Hello,
up until now I have used this commands to find device on my router
 mikrotik.Send("/ppp/secret/print");
 mikrotik.Send("?name=" + device);
 mikrotik.Send("=.proplist=name,remote-address,last-logged-out", true);
I know from the cli I can use the "~" operator to search part of a name
for example
/ppp secret print where name ~"5808"
can I make the same command in the API?

I have try to change the "=" to "~" - but I got empty result

did I miss something ? or it's not doable ?

Thanks ,
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7052
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: search with "~" on C# API?

Thu Dec 15, 2022 4:41 pm

you can't
 
David1234
Forum Guru
Forum Guru
Topic Author
Posts: 1424
Joined: Sun Sep 18, 2011 7:00 pm

Re: search with "~" on C# API?

Thu Dec 15, 2022 4:44 pm

Thanks ,

Who is online

Users browsing this forum: No registered users and 20 guests