Community discussions

MikroTik App
 
Denuro
just joined
Topic Author
Posts: 4
Joined: Tue Dec 10, 2013 2:32 pm

Getting wireless interface rx signal-strength

Thu Jul 17, 2014 10:28 pm

Hi all,

is there any possible way to get the rx signal-strength in a script?
I've tested the attributes in the [ /interface wireless registration-table get ], but couldn't find it.

Thanks
 
User avatar
Kickoleg
Member Candidate
Member Candidate
Posts: 128
Joined: Tue Mar 11, 2014 3:13 pm
Location: Yverdon-les-Bains, Suisse

Re: Getting wireless interface rx signal-strength

Fri Jul 18, 2014 9:50 am

/interface wirelles registration-table get <number> <value-name>
number - number of item
value-name - in your case rx-signal
MTCNA, MTCUME, MTCRE, MTCWE, MTCTCE certified
 
ovdeathiam
just joined
Posts: 20
Joined: Wed Jul 16, 2014 11:15 am

Re: Getting wireless interface rx signal-strength

Fri Jul 18, 2014 9:51 am

You mean like /interface wireless registration-table get value-name=signal-strength?
 
User avatar
Kickoleg
Member Candidate
Member Candidate
Posts: 128
Joined: Tue Mar 11, 2014 3:13 pm
Location: Yverdon-les-Bains, Suisse

Re: Getting wireless interface rx signal-strength

Fri Jul 18, 2014 11:22 am

You mean like /interface wireless registration-table get value-name=signal-strength?
Yes you right - my mistake ... sorry
MTCNA, MTCUME, MTCRE, MTCWE, MTCTCE certified
 
Denuro
just joined
Topic Author
Posts: 4
Joined: Tue Dec 10, 2013 2:32 pm

Re: Getting wireless interface rx signal-strength

Fri Jul 18, 2014 3:07 pm

You mean like /interface wireless registration-table get value-name=signal-strength?
Yes you right - my mistake ... sorry
You are right, the signal-strength is exactly what I need!

I thought it was the same as the tx-signal-strength, but looks like I was wrong :lol:

Thanks
 
plisken
Forum Guru
Forum Guru
Posts: 2453
Joined: Sun May 15, 2011 12:24 am
Location: Belgium
Contact:

Re: Getting wireless interface rx signal-strength

Mon Sep 15, 2014 12:36 pm

Where can you read the result?
 
User avatar
c0d3rSh3ll
Long time Member
Long time Member
Posts: 558
Joined: Mon Jul 25, 2011 9:42 pm
Location: [admin@Chile] >

Re: Getting wireless interface rx signal-strength

Tue Sep 16, 2014 6:50 am

Where can you read the result?
paste this in the terminal

ros code

put [/interface wireless registration-table get value-name=signal-strength 0 ]
this read the signal strength for the station 0
nothing
 
plisken
Forum Guru
Forum Guru
Posts: 2453
Joined: Sun May 15, 2011 12:24 am
Location: Belgium
Contact:

Re: Getting wireless interface rx signal-strength

Tue Sep 16, 2014 8:44 am

Thanks c0d3rSh3ll
 
hulitolku
just joined
Posts: 2
Joined: Wed Nov 21, 2018 1:57 am

Re: Getting wireless interface rx signal-strength

Sun May 24, 2020 1:40 am

Why this work ok in Terminal:
:global dbm [/interface wireless registration-table get value-name=signal-strength 0]
But dont work in script?
Global dont get value.
 
User avatar
nichky
Long time Member
Long time Member
Posts: 588
Joined: Tue Jun 23, 2015 2:35 pm

Re: Getting wireless interface rx signal-strength

Sun May 24, 2020 1:50 am

Where can you read the result?
paste this in the terminal

ros code

put [/interface wireless registration-table get value-name=signal-strength 0 ]
this read the signal strength for the station 0

Can you please give me more details about this rule
in my case i got

0 wlan1m.vl101 DC:D9:16:9A:FD:F4 no -39dBm@1Mbps 57.7... 9h37m4s
1 wlan1m.vl101 D4:F5:47:27:FC:33 no -43dBm@1Mbps 72.2... 4h35m11s
2 wlan2v.vl100 AC:D1:B8:84:F5:13 no -59dBm@HT20-7 72.2... 1h2m7s
3 wlan2v.vl100 38:CA:DA:D2:E0:EF no -50dBm@1Mbps 72.2... 3m14s

with your rule im getting resault..... -41dBm@1Mbps
So does it calculate?
Nikola Suminoski
MikroTik Consultan
MTCRE l MTCWE

!) Safe Mode is your friend;
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 1625
Joined: Sat Dec 24, 2016 11:17 am
Location: jo.overland at gmail.com

Re: Getting wireless interface rx signal-strength

Sun May 24, 2020 10:17 am

To get better detail about the field, use as-value. Try cut/past this script.
Its part of my Splunk script to monitor all wifi clients. (see signature)
{
	:if ([:len [/interface wireless find ]]>0) do={
		:foreach logline in=[/interface wireless registration-table find] do={
			:local output "$[/interface wireless registration-table print  as-value from=$logline]"
			:set ( "$output"->"script" ) "wifi"
			:put "$output"
		}
	}
}
Output
.id=*8;ap=false;comment=;interface=wlan-2g;mac-address=04:79:70:xx:xx:B3;signal-strength=-52dBm@5.5Mbps;tx-rate=1Mbps;uptime=00:00:08;script=wifi
 
How to use Splunk to monitor your MikroTik Router(s)

MikroTik->Splunk
 
 
User avatar
nichky
Long time Member
Long time Member
Posts: 588
Joined: Tue Jun 23, 2015 2:35 pm

Re: Getting wireless interface rx signal-strength

Mon May 25, 2020 7:34 am

To get better detail about the field, use as-value. Try cut/past this script.
Its part of my Splunk script to monitor all wifi clients. (see signature)
{
	:if ([:len [/interface wireless find ]]>0) do={
		:foreach logline in=[/interface wireless registration-table find] do={
			:local output "$[/interface wireless registration-table print  as-value from=$logline]"
			:set ( "$output"->"script" ) "wifi"
			:put "$output"
		}
	}
}


it would be great if you can make it work from system script. which it does not at the moment

Output
.id=*8;ap=false;comment=;interface=wlan-2g;mac-address=04:79:70:xx:xx:B3;signal-strength=-52dBm@5.5Mbps;tx-rate=1Mbps;uptime=00:00:08;script=wifi
Nikola Suminoski
MikroTik Consultan
MTCRE l MTCWE

!) Safe Mode is your friend;
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 1625
Joined: Sat Dec 24, 2016 11:17 am
Location: jo.overland at gmail.com

Re: Getting wireless interface rx signal-strength

Mon May 25, 2020 8:05 am

@nichky

Use the "Post Reply" button to reply someone. If quote is needed, only quote some part, not the whole post.
Here you quoted the post without writing anything :)
 
How to use Splunk to monitor your MikroTik Router(s)

MikroTik->Splunk
 

Who is online

Users browsing this forum: No registered users and 19 guests