Win32::Netsh::Wlan - Provide functions in that correlate to the Microsoft Windows netsh utility's wlan context
Version 0.02
use Win32::Netsh::Wlan qw(wlan_interface_info_all); my @wireless_if = wlan_interface_info_all();
Set the debug level for the module
$level - Debug level
SCALAR - Current debug level
Return a reference to a list of hashes that describe the wireless interfaces available
NONE
ARRAY reference of hash references whose keys are as follows:
Name of the interface
Description of the interface
GUID associated with the interface
IEEE MAC address of the interfaces as a string with the format "xx:xx:xx:xx:xx:xx" where xx is a hexadecimal number between 00 and ff
Disconnected, discovering, or connected
SSID of connected wireless network
IEEE MAC address of the associated accees point as a string with the format "xx:xx:xx:xx:xx:xx" where xx is a hexadecimal number between 00 and ff
String indicating "Infrastructure" or "Ad hoc" mode for the connection
String indicating if connection is 802.11b 802.11n etc.
String indicating the type of authentication for the connection
String indicating the cypher type
String indicating connection mode
RF channel used for connection
Receive rate in Mbps
Signal strength as a percentage
Return a reference to a hash that describes the wireless interface
Name of the interface such as "Wireless Network Connection"
Indicates the named interface could not be found
Hash reference whose keys are as follows:
Return a hash reference with details of the given profile name
Name of the profile
Indicates profile not found
Array reference to the list of SSIDs of the wireless network
Return an array reference of hash references with details of the profiles
ARRAY reference of hash references corresponding to each profile. Each hash reference has the following keys:
Add the given profile with the specified options. If no options are provided then the profile will be added for all interfaces and all users
Filename of the XML file containing the wireless profiles
Optional hash reference with the following keys:
Name of the interface for the profile
User scope (all or current)
UNDEF on error, or 1 for success
Delete the specified profile if it exists
Name of the profile to delete
Return the error string associated with the last wlan command
SCALAR - error string
Connect to the wireless network specified in the named profile
Name of the profile to use to connect.
Disconnect any current connection
Win32::Netsh::Interface for examining and controlling the netsh interface context including interface ipv4.
Paul Durden <alabamapaul AT gmail.com>
Copyright (C) 2015 by Paul Durden.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Win32::Netsh, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Win32::Netsh
CPAN shell
perl -MCPAN -e shell install Win32::Netsh
For more information on module installation, please visit the detailed CPAN module installation guide.