خرید بک لینک

Hi to all the community,

I want to create a script that monitors the status of the network (I do not know if there are any programs that already do what I want to do even better).

I'm only interested monitor the signal strength and the bit rate of a device coected to an access point and creates an output file for an example of this style:

TIME (s) SIGNAL STRENGTH (dBm) BITRATE (Mbit/s)
00 -53 54
05 -50 300
10 -55 54
15 -60 36
... ... ...

This data can be obtained from the command:

Code:

$ iw dev wlan1 station dump

Station 12:34:56:78:9a:bc (on wlan0)

        inactive time:  304 ms
        rx bytes:       18816
        rx packets:     75
        tx bytes:       5386
        tx packets:     21
        signal:         -29 dBm
        tx bitrate:     54.0 MBit/s
Or the command:

Code:

$ iw dev wlan0 link

Coected to 04:21:b0:e8:c8:8b (on wlan0)

        SSID: attwifi
        freq: 2437
        RX: 2272 bytes (18 packets)
        TX: 232 bytes (3 packets)
        signal: -57 dBm
        tx bitrate: 36.0 MBit/s
I do not know if I have explained well, I want to get this data in any way and save them in a file (eg .txt)
The way to get the data not know what would, I know these data appear in these commands that I put below.

Could anyone help me create a script to get what I want?, or give me some advice / tutorial?
Or failing that, could someone tell me some tool to do something?
Thank you very much in advance.

A greeting.
AntonioG2

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 10 فروردين 1395 ساعت: 3:40

صفحه بندی