Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Script to monitor WiFi accesspoints

by shekarkcb (Beadle)
on Apr 01, 2013 at 12:08 UTC ( #1026470=perlquestion: print w/ replies, xml ) Need Help??
shekarkcb has asked for the wisdom of the Perl Monks concerning the following question:

Hello All,

Is there any way to write a script to monitor wifi accesspoints using Perl ( if not with perl any other suggestions), i just need to check, that accesspoint is up and working ( may be connect, get an ip, disconnect).

Any pointers are greatly helpful.


Comment on Script to monitor WiFi accesspoints
Replies are listed 'Best First'.
Re: Script to monitor WiFi accesspoints
by Loops (Curate) on Apr 01, 2013 at 12:43 UTC

    You don't mention which operating system you're using. Even if you're using Linux there are different configurations that would affect how to go about this.

    Perl is well suited however to invoking system commands. You could definitely write a little script that invoked whatever system tools are appropriate to initiate a wifi connection. Note the results and then shut it down.

    If you happen to be using a system that uses wpa_supplicant as the basis for wifi, you should checkout the cpan module for controlling it: Wifi::WpaCtrl If you're lucky it will make it a bit easier to roll out a quick solution.

    Good luck with your project.
Re: Script to monitor WiFi accesspoints
by sundialsvc4 (Abbot) on Apr 01, 2013 at 13:09 UTC

    Please edit the formatting of the post ... you have a <tt> tag dangling.

    Win32::Wlan has a method such as visible_networks, and I am quite sure that there are others.   The general problem is going to be that a wireless router can be “on the air” but not functioning properly on the back-end ... as anyone who spends time in a coffee shop knows all too well.

      Thanks all for the reply. Will look into the mentioned modules.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1026470]
Approved by Corion
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2015-11-29 22:59 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (754 votes), past polls