Getting wireless interface rx signal-strength

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

/interface wirelles registration-table get
number - number of item
value-name - in your case rx-signal

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 :laughing:

Thanks

Where can you read the result?

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

Thanks c0d3rSh3ll

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.

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?

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

@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 :slight_smile:

I know this is an old topic but no less important for that.
I would like to email the signal from my point to point link daily. Can you make a script for this?
regards

Every thing you get an output from can be sent as an email. I have not worked with email sending, so cant help you with that part. Have seen various post here on the forum on how to setup email, so should be possible.

I do use Splunk to monitor this. There I can look at any give time period. If you have paid version it can also send email for any triggered alert you setup. Here is an graph of strengt from two wifi devices.
Wifi_strength.jpg