Community discussions

 
Ehman
Member
Member
Topic Author
Posts: 363
Joined: Mon Nov 15, 2010 10:49 pm

print count users starting with B

Mon Jun 02, 2014 1:26 am

Hi, I want to print count users that starts with B.

/ip hotspot user print count-only from=B
so far I've been able to get to this, but if there's 2 users starting with B, I get this error "no such item"

however if there's 1 users that starts with B, then it counts 1

plz help
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 2946
Joined: Tue Feb 25, 2014 12:49 pm
Location: Capalbio, Tuscany, Italy

Re: print count users starting with B

Mon Jun 02, 2014 3:18 am

after "from" you can put only one complete username, not one letter....

you get "1" when you have only one "b" user, because auto-completion of "b" are "b" full username.
you get error when "b" are misunderstandable from two or more users.

the right syntax are:
/ip hotspot user print count-only where name~"^b"
"^b" = username than START to "b", if you omit "^", we get all the user than contain "b" letter.


Remember to add Karma... ;)
I'm Italian, not English. Sorry for my imperfect grammar.
 
Ehman
Member
Member
Topic Author
Posts: 363
Joined: Mon Nov 15, 2010 10:49 pm

Re: print count users starting with B

Mon Jun 02, 2014 5:07 pm

after "from" you can put only one complete username, not one letter....

you get "1" when you have only one "b" user, because auto-completion of "b" are "b" full username.
you get error when "b" are misunderstandable from two or more users.

the right syntax are:
/ip hotspot user print count-only where name~"^b"
"^b" = username than START to "b", if you omit "^", we get all the user than contain "b" letter.


Remember to add Karma... ;)
thx

Who is online

Users browsing this forum: No registered users and 17 guests