Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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.

Thanks.

Comment on Script to monitor WiFi accesspoints
Re: Script to monitor WiFi accesspoints
by Loops (Hermit) 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 (Monsignor) 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
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? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2014-07-24 23:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (167 votes), past polls