Community discussions

 
tannexdadole
just joined
Topic Author
Posts: 4
Joined: Tue Aug 22, 2017 4:14 pm

Script to output ip address on a particular shared user account on hotspot

Fri Aug 09, 2019 9:43 am

hi guys I need help in doing this

I have this scenario that a Hotspot User account AAAAA is shared up to 3 users

in hotspot active users there are 3 user sharing the account logged in.

user1 AAAAAA ip address=10.5.50.2
user2 AAAAAA ip address=10.5.50.7
user3 AAAAAA ip address=10.5.50.11

i just need to get all the ip addresses for a specific account
how to do I do this in script where the output will result in => 10.5.50.2,10.5.50.7,10.5.50.11 (delimited by comma)
so i can use this as a target value so they will share 1 limit in queue simple..
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 1290
Joined: Sat Dec 24, 2016 11:17 am
Location: jo.overland at gmail.com

Re: Script to output ip address on a particular shared user account on hotspot

Fri Aug 09, 2019 10:34 am

I do not run hotspot, but can try to help.

What command do you run to get this list:
user1 AAAAAA ip address=10.5.50.2
user2 AAAAAA ip address=10.5.50.7
user3 AAAAAA ip address=10.5.50.11
 
How to use Splunk to monitor your MikroTik Router

MikroTik->Splunk
 
 
tannexdadole
just joined
Topic Author
Posts: 4
Joined: Tue Aug 22, 2017 4:14 pm

Re: Script to output ip address on a particular shared user account on hotspot

Fri Aug 09, 2019 2:13 pm

AAAAA is the username of the account shared by 3 users..
 
tannexdadole
just joined
Topic Author
Posts: 4
Joined: Tue Aug 22, 2017 4:14 pm

Re: Script to output ip address on a particular shared user account on hotspot

Fri Aug 09, 2019 2:54 pm

Image

this is the print result i can't seem to get the output using

:local ipadd (/ip hotspot active get [find name="C@SFamily09"] address)
:log info $ipadd;

Who is online

Users browsing this forum: No registered users and 7 guests