Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Wireless Networking > Access Point MAC Adderss

Reply
Thread Tools

Access Point MAC Adderss

 
 
=?Utf-8?B?ZGRhbWljbw==?=
Guest
Posts: n/a
 
      08-23-2007
Does anyone know a way to view the mac address of the AP that you are
currently connected to? Can this information be obtained throughs windows XP
SP2? The laptops are used in a hospital and we would like to not install
additional software.
 
Reply With Quote
 
 
 
 
Jack \(MVP-Networking\).
Guest
Posts: n/a
 
      08-23-2007
Hi
It might depend on how the Wireless network set.
You can try to open a DOS box type: arp -a and press <enter>.
Jack (MVP-Networking).

"ddamico" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Does anyone know a way to view the mac address of the AP that you are
> currently connected to? Can this information be obtained throughs windows
> XP
> SP2? The laptops are used in a hospital and we would like to not install
> additional software.


 
Reply With Quote
 
 
 
 
Pavel A.
Guest
Posts: n/a
 
      08-26-2007
Just for a quick test you can run a VB or js script, using
WMI MSNdis_80211_BaseServiceSetIdentifier object.
It is the BSSID (or "MAC address" as you call it) of the associated AP.

Basically you need to enumerate instances of
MSNdis_80211_BaseServiceSetIdentifier.
For each *associated* wi-fi adapter there will be an instance of that.

Sorry I'm not at my machine and can't scribble a working example.
Please try WMI or scripting newsgroups for details.

Regards,
--PA


"ddamico" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> Does anyone know a way to view the mac address of the AP that you are
> currently connected to? Can this information be obtained throughs windows XP
> SP2? The laptops are used in a hospital and we would like to not install
> additional software.



 
Reply With Quote
 
=?Utf-8?B?UGF2ZWwgQS4=?=
Guest
Posts: n/a
 
      08-26-2007
"Pavel A." wrote:
> Just for a quick test you can run a VB or js script


Ok, so it will be something like:

-------- begin get_ap.vbs ------

Set wmi = GetObject("winmgmts:{impersonationLevel=impersonat e}!root/wmi")

Set AdapterSet = wmi.ExecQuery("select * from _
MSNdis_80211_BaseServiceSetIdentifier")

For each wa in AdapterSet
with wa
WScript.Echo "Adapter=", .InstanceName
sBssid = _
hex(.Ndis80211MacAddress(0)) & ":" & hex(.Ndis80211MacAddress(1)) & ":" _
& hex(.Ndis80211MacAddress(2)) & ":" & hex(.Ndis80211MacAddress(3)) &
":" _
& hex(.Ndis80211MacAddress(4)) & ":" & hex(.Ndis80211MacAddress(5))
WScript.Echo "Assoc AP=", sBssid
End with
Next

If Err.Number <> 0 Then
Wscript.Echo "Not associated. Err=", Err.Number
End If

----------- end get_ap.vbs ---------

Save this snippet as get_ap.vbs and run with cscript.

Regards,
--PA

 
Reply With Quote
 
=?Utf-8?B?ZGRhbWljbw==?=
Guest
Posts: n/a
 
      08-27-2007
This is a scirpt I put together but I will test the script you posted. Thanks!

On Error Resume Next
dim count
strComputer = "."
Set fso = CreateObject("Scripting.FileSystemObject")
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\WMI")

Do until (count = "10")
count = count + 1
Set colItems = objWMIService.ExecQuery( _
"SELECT * FROM MSNdis_80211_ReceivedSignalStrength",,4
For Each objItem in colItems
RSSI = objItem.Ndis80211ReceivedSignalStrength
Device = objItem.InstanceName
Next

Set colItems2 = objWMIService.ExecQuery( _
"SELECT * FROM MSNdis_80211_BaseServiceSetIdentifier",,4
For Each objItem in colItems2
macbyte = 0
bssid = ""
' convert decimals to hex. pad zeros & slip in colons where needed
for each decval in objItem.Ndis80211MacAddress
if decval<17 then
bssid = bssid & "0"
end if
bssid = bssid & Hex(decval)
if macbyte < 5 then
bssid = bssid & ":"
macbyte = macbyte + 1
end if
next
Next

' wscript.echo "Ndis80211MacAddress: " & bssid
' Wscript.Echo "Ndis80211ReceivedSignalStrength: " & RSSI
Text = Text & "AP_MAC: " & bssid & " RSSI: " & RSSI & " dBm" & " Date: "
& date & " Time: " & time & " Device: " & Device
Set file = fso.OpenTextFile("wlan.txt", 8, True)
file.WriteLine(Text)
file.Close()
Text = ""

wscript.sleep 1000
Loop

wscript.echo "Script Complete!"

"Pavel A." wrote:

> "Pavel A." wrote:
> > Just for a quick test you can run a VB or js script

>
> Ok, so it will be something like:
>
> -------- begin get_ap.vbs ------
>
> Set wmi = GetObject("winmgmts:{impersonationLevel=impersonat e}!root/wmi")
>
> Set AdapterSet = wmi.ExecQuery("select * from _
> MSNdis_80211_BaseServiceSetIdentifier")
>
> For each wa in AdapterSet
> with wa
> WScript.Echo "Adapter=", .InstanceName
> sBssid = _
> hex(.Ndis80211MacAddress(0)) & ":" & hex(.Ndis80211MacAddress(1)) & ":" _
> & hex(.Ndis80211MacAddress(2)) & ":" & hex(.Ndis80211MacAddress(3)) &
> ":" _
> & hex(.Ndis80211MacAddress(4)) & ":" & hex(.Ndis80211MacAddress(5))
> WScript.Echo "Assoc AP=", sBssid
> End with
> Next
>
> If Err.Number <> 0 Then
> Wscript.Echo "Not associated. Err=", Err.Number
> End If
>
> ----------- end get_ap.vbs ---------
>
> Save this snippet as get_ap.vbs and run with cscript.
>
> Regards,
> --PA
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Share-Point-2010 ,Share-Point -2010 Training , Share-point-2010Hyderabad , Share-point-2010 Institute Saraswati lakki ASP .Net 0 01-06-2012 06:39 AM
Cisco 1300 series wireless access point/bridge Vs Linksys WAP54GPE Access Point Anyone know the basic pros & cons? Nate Goulet Cisco 9 12-07-2007 07:45 PM
Slow Point to Point T1 Access Please Help Igor Pinchevskiy Cisco 7 03-15-2007 08:05 PM
Scenario 5: IS-IS routing on Frame Relay Multi-point and Point-to-Point David Sudjiman Cisco 0 06-08-2006 09:11 AM
How do I let people access the internet via an access point but not allow them access to my network yar Wireless Networking 4 09-21-2004 03:48 AM



Advertisments