Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Script to monitor WiFi accesspoints

by shekarkcb (Beadle)
on Apr 01, 2013 at 12:08 UTC ( [id://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.

Thanks.

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.

      Thanks

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-19 14:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found