Friday, June 19, 2015

Windows script to roam between APs

1. Get the MAC address for the SSID using below CLIs

EDISON-MA-1#show ap summary
Number of APs: 1

Global AP User Name:
Global AP Dot1x User Name:

AP Name                           AP Model  Ethernet MAC    Radio MAC       State        
----------------------------------------------------------------------------------------
APfc99.47d9.a9b5                  2602I     fc99.47d9.a9b5  8478.acb8.35c0  Registered  

EDISON-MA-1#
EDISON-MA-1#
EDISON-MA-1#show ap name APfc99.47d9.a9b5 wlan dot11 24ghz
Site Name                                        : default-group
Site Description                                 :

WLAN ID  Interface  BSSID            
-------------------------------------
1        VLAN0020   84:78:ac:b8:35:c0
2        VLAN0020   84:78:ac:b8:35:c1
3        VLAN0020   84:78:ac:b8:35:c2
4        VLAN0020   84:78:ac:b8:35:c3
5        VLAN0020   84:78:ac:b8:35:c4

EDISON-MA-1#

2. Repeat the above steps for MA-2 to which AP-2 is connected.

3. Copy and paste below script in the windows client to roam between the APs.

cls
Set leep=0
cd "C:\wl"
:start
if %leep% == 1000 ( goto end )
wl_vista_7.exe reassoc 84:78:AC:B8:35:C1

sleep 5

wl_vista_7.exe bssid

sleep 30

wl_vista_7.exe reassoc 44:AD:D9:06:0E:B1

sleep 5

wl_vista_7.exe bssid

sleep 30

echo This is a loop
Set /A leep+=1
echo %leep%
goto start
:end
echo "am 1000 now"
pause

No comments:

Post a Comment