Community discussions

MikroTik App
 
mike548141
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 51
Joined: Sun Aug 16, 2020 5:14 am

/command/find count-only

Sat Jun 11, 2022 12:14 pm

I think it would be really useful if find had an equivalent control to prints count-only e.g.
/interface/bridge/find count-only where 
If you know of an equivalent command, or maybe have created a short script to do the same I would love to see it.

Thanks,

MC
Last edited by mike548141 on Sun Jun 12, 2022 7:45 am, edited 2 times in total.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11968
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: /command/get count-only

Sat Jun 11, 2022 12:54 pm

get??? count-only??
what you want to do exactly?
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11968
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: /command/get count-only  [SOLVED]

Sat Jun 11, 2022 12:57 pm

On terminal, just for simply check:
/interface bridge print count-only

Inside scripts:
{
:local intBridges [:len [/interface bridge find]]
:put $intBridges
}

Who is online

Users browsing this forum: adimihaix, diamuxin, Ellaham and 32 guests