Hello
Ho to print (in new terminal or in text file) a list of hotspot users from certain user profiles (from 4 profiles) in one list?
Hello
Ho to print (in new terminal or in text file) a list of hotspot users from certain user profiles (from 4 profiles) in one list?
/ip hotspot user print where profile=profileName
if I want more than one profiles but one list , Is the correct command:
/ip hotspot user print where profile=profileName1 AND profile=profileName2
?
No. That would print all users who have a profile of profileName1 and a profile of profileName2, which is impossible, and would print an empty list. You need to use ‘or’ rather than ‘and’. You are placing logical constraints on conditions, not evaluating the result sets.
Just try things out. You’re printing lists so there is no risk.
I did this :
/ip hotspot user print where profile=profileName1 or profile=profileName2 or profile =profileName3
and I got
Flags: X - disabled, D - dynamic
# SERVER NAME ADDRESS PROFILE UPTIME
ambiguous value of profile, more than one possible value matches input
Note: I correct the or to small letters and now working. thank you few