Reboot Script for Linksys WAP200 access points

Since the Linksys WAP200 has a tendency to hang and not let any users connect anymore, this little script to reboot an accesspoint (webinterface still works fine). Replace user and password with correct values.

Select All Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
 
if [[ "$#" == "1" ]]
then
nc -w1 -z $1 443
if [[ "$?" == "0" ]]
then
wget -q -O - --user=foouser --password=foopass --no-check-certificate --post-data='DeviceReboot=1&page=AdminReboot.htm' https://${1}/reboot.cgi >/dev/null
else
echo "Could not connect to https webinterface on ${1}"
fi
else
echo "Usage: $(basename $0) "
fi

Trackback URL

, , ,

5 Comments on "Reboot Script for Linksys WAP200 access points"

  1. Ederson Vieira
    17/08/2011 at 8:40 pm Permalink

    Thanks!!!!

    We have 17 APs WAP200 and we have an issue with radius authentication. When we reboot everything works fine.

    Discussion about this topic on https://supportforums.cisco.com/thread/2064010

    ps.: Sorry about my english.

  2. Ryan Schulze
    17/08/2011 at 9:02 pm Permalink

    Your english is fine ;-)

    Thanks for the link to the topic, it actually looks promising, at least Cisco is showing interest in it. With luck we may yet get a working firmware from Cisco for the WAP200 devices.
    I had started a topic while back ( https://supportforums.cisco.com/thread/2018682 ), but that didn’t go anywhere.

  3. Ryan Dyer
    14/02/2012 at 7:31 pm Permalink

    I’m a little new to this but what do you use to execute the script?

  4. Ryan Dyer
    14/02/2012 at 7:44 pm Permalink

    How would I get this to work in a Windows environment?

  5. dopefish
    14/03/2012 at 7:08 pm Permalink

    sry for the late response, seems the server stopped sending me emails for new comments.

    I’m not sure how to solve the problem in a windows environment. The script is written in bash to be executed from a linux host.

    Basically it just opens up https://$ip_of_access_point/reboot.cgi and sends “DeviceReboot=1&page=AdminReboot.htm” as POST data. If you google for “powershell http post” there should be some useful tipps on how to build this in powershell/windows.

Hi, leave a comment:


ALLOWED XHTML TAGS:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Subscribe to Comments