<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: WLAN remoute switch on/off in SmartZone and Virtual SmartZone</title>
    <link>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/WLAN-remoute-switch-on-off/m-p/17865#M995</link>
    <description>Thanks for help guys.&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;I will try to do it with a raspberry pi, python, and API&amp;nbsp;</description>
    <pubDate>Thu, 27 Sep 2018 11:10:31 GMT</pubDate>
    <dc:creator>igor_tunakin</dc:creator>
    <dc:date>2018-09-27T11:10:31Z</dc:date>
    <item>
      <title>WLAN remoute switch on/off</title>
      <link>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/WLAN-remoute-switch-on-off/m-p/17861#M991</link>
      <description>Hi all,&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;I have a client who would like to have an easy way to switch on/off one of WLAN. The client has two WLANs - one for employee and another one for guests. The ideal solution would be a switch or button. In this way a secretary can push the button and switch on an ofen WLAN for guests.&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;The client has a controller vSZ-E 3.6&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;Does anybody have an idea how it can be done?&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;</description>
      <pubDate>Wed, 26 Sep 2018 08:28:21 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/WLAN-remoute-switch-on-off/m-p/17861#M991</guid>
      <dc:creator>igor_tunakin</dc:creator>
      <dc:date>2018-09-26T08:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: WLAN remoute switch on/off</title>
      <link>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/WLAN-remoute-switch-on-off/m-p/17862#M992</link>
      <description>Probably not trivial (we had a similar request).. but you could rely on the SZ API and a raspberry pi which calls the API based on a switch. But nothing out-of-the-box vas far as I can see.&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;depending on how handy you feel with python.. you could base yourself on something like this:&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;A alt="" href="http://www.oraclealchemist.com/news/real-push-button-refresh-raspberry-pi/" name="" rel="nofollow" target="" title="Link httpwwworaclealchemistcomnewsreal-push-button-refresh-raspberry-pi" type="" value=""&gt;http://www.oraclealchemist.com/news/real-push-button-refresh-raspberry-pi/&lt;/A&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;Cheers!&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;</description>
      <pubDate>Wed, 26 Sep 2018 14:29:00 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/WLAN-remoute-switch-on-off/m-p/17862#M992</guid>
      <dc:creator>diego_garcia_de</dc:creator>
      <dc:date>2018-09-26T14:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: WLAN remoute switch on/off</title>
      <link>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/WLAN-remoute-switch-on-off/m-p/17863#M993</link>
      <description>Hi Igor,&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;These are several ways you can do this:&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;1. Use Scheduler, a build in feature to schedule WLAN operation based on time of the day and day of the week. This method would automatically turn on/off the WLAN based on parameters you give it. This is the easiest way to go. &lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;It can be found in this document, on Page 132&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;A alt="" href="https://support.ruckuswireless.com/documents/2081-smartzone-3-6-administrator-guide-sz100-vsz-e" name="" rel="nofollow" target="" title="Link httpssupportruckuswirelesscomdocuments2081-smartzone-3-6-administrator-guide-sz100-vsz-e" type="" value=""&gt;https://support.ruckuswireless.com/documents/2081-smartzone-3-6-administrator-guide-sz100-vsz-e&lt;/A&gt; &lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;2. Turn the WLAN on/off using CLI (SSH Command Line Interface)&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;In this method there would be some sort of script that would add or delete WLAN from the desired WLAN Group. Based on your OS implementation, it can be Bash or Power Shell scripts.&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;Use this document for reference:&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;A alt="" href="https://support.ruckuswireless.com/documents/2083-smartzone-3-6-command-reference-guide-sz100-vsz-e" name="" rel="nofollow" target="" title="Link httpssupportruckuswirelesscomdocuments2083-smartzone-3-6-command-reference-guide-sz100-vsz-e" type="" value=""&gt;https://support.ruckuswireless.com/documents/2083-smartzone-3-6-command-reference-guide-sz100-vsz-e&lt;/A&gt; &lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;3. Same as previous, only using SNMP&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;4. Same as #2, only using RESTful API&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;Hope this helps!&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;Cheers,&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;Alex</description>
      <pubDate>Wed, 26 Sep 2018 14:45:47 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/WLAN-remoute-switch-on-off/m-p/17863#M993</guid>
      <dc:creator>alex_shalima</dc:creator>
      <dc:date>2018-09-26T14:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: WLAN remoute switch on/off</title>
      <link>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/WLAN-remoute-switch-on-off/m-p/17864#M994</link>
      <description>See here for a quick example on how to do it via the API with python and requests&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;PRE alt="" name="" rel="" target="" title="" type="" value=""&gt;import requests&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;import json

baseUrl="https://YOUR-IP-HERE:8443/wsg/api/public/v6_0"
username="admin"
password="YOUR-PASSWORD"
zoneId="YOUR-ZONE-ID-AS-UUID"
wlanId="YOUR-WLAN-ID-AS-INTGER-ID"
enableWlan=True

loginData={
  "username": username,
  "password": password,
  "timeZoneUtcOffset": "+03:00"
}


headers = {"Content-Type": "application/json;charset=UTF-8"}
login=requests.post(baseUrl + "/session", headers=headers, data=json.dumps(loginData))
print login.text
print login.status_code

if (login.status_code == requests.codes.ok):
    cookieJar=login.cookies

# enable below to list zone and wlan ids you need to fill above

#    zoneRequests=requests.get( baseUrl + '/rkszones',cookies=cookieJar, headers=headers)
#    print zoneRequests.text
#    allWlansRequest=requests.get( baseUrl + '/rkszones/' +zoneId + '/wlans' ,cookies=cookieJar, headers=headers)
#    print allWlansRequest.text

    enableWlanData = {"type": "AlwaysOn" if enableWlan else "AlwaysOff"}
    wlanRequest=requests.patch(baseUrl + '/rkszones/' + zoneId + '/wlans/' + wlanId + '/schedule', cookies=cookieJar, headers=headers, data=json.dumps(enableWlanData))
    print wlanRequest.status_code
    logoutRequest=requests.delete(baseUrl + '/session', headers=headers, cookies=cookieJar)
    print logoutRequest.status_code

&lt;/PRE&gt;If you're using a url and have proper certificates for the server then use the proper dns name. If you're using the "untrusted"&amp;nbsp; ruckus cert for the controller, please use the parameter "verify=False" in all the calls to request. (see here&amp;nbsp;&lt;A alt="" href="http://docs.python-requests.org/en/latest/user/advanced/#ssl-cert-verification" name="" rel="nofollow" target="" title="Link httpdocspython-requestsorgenlatestuseradvancedssl-cert-verification" type="" value=""&gt;http://docs.python-requests.org/en/latest/user/advanced/#ssl-cert-verification&lt;/A&gt;&amp;nbsp;)&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;cheers!</description>
      <pubDate>Wed, 26 Sep 2018 16:03:49 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/WLAN-remoute-switch-on-off/m-p/17864#M994</guid>
      <dc:creator>diego_garcia_de</dc:creator>
      <dc:date>2018-09-26T16:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: WLAN remoute switch on/off</title>
      <link>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/WLAN-remoute-switch-on-off/m-p/17865#M995</link>
      <description>Thanks for help guys.&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;I will try to do it with a raspberry pi, python, and API&amp;nbsp;</description>
      <pubDate>Thu, 27 Sep 2018 11:10:31 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/WLAN-remoute-switch-on-off/m-p/17865#M995</guid>
      <dc:creator>igor_tunakin</dc:creator>
      <dc:date>2018-09-27T11:10:31Z</dc:date>
    </item>
  </channel>
</rss>

