Schedule WLC to on/off AP

Unanswered Question
Aug 3rd, 2008


Just want to check with you. Can we asked WLC to schedule down or up for the AP. For example, during office hour we will up the wireless. When the time is over, WLC will down the AP.

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
ericgarnel Mon, 08/04/2008 - 06:11

I played around with this a bit. here are the details.

You need 2 files, the script and the variables file. Anyone who has ever used mrat will feel right at home with this setup. You will need expect on the server

NOTE: I am not the author, but I have left his info intact for credit

File1: the command file

====== cut below this line ===============


#Info: Peter Kok(





output=$($path_to_scriptsdir/wlc.exp $router $username $password)

associated=$(echo $output|grep -o Associated|wc -l)

probing=$(echo $output|grep -o Probing|wc -l)

authenticated=$(echo $output|grep -o Yes|wc -l)

echo -n "asso_clients:$associated prob_clients:$probing auth_clients:$authenticated "

exit 0

=== end cut ===========

File2: the variables

====== cut below this line ===============


set router [ lindex $argv 0]

set username [ lindex $argv 1]

set password [ lindex $argv 2]

spawn ssh $router

set timeout 10

expect "(yes/no)?" {

send "yes\r"; exp_continue }

expect "User:"

send -- "$username\r"

expect "password:"

send -- "$password\r"

expect "Controller)"

send -- "show client summary\ry\ry\r"

expect "Controller"

send "logout\r"

expect "(y/N)"

send -- "n\r"

expect eof

=== end cut ===========

You can see on line 21 where to place the command you desire, and yes, you will need to keep the syntax at the end.

Forgot to mention: Once you have the script built, you can call it via cron at the desired times


This Discussion



Trending Topics: Other Wireless Mobility

client could not be authenticated
Network Analysis Module (NAM) Products
Cisco 6500 nam
reason 440 driver failure
Cisco password cracker
Cisco Wireless mode