<?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: Can I config mass AP name on sz100 after all the AP joined the controller in SmartZone and Virtual SmartZone</title>
    <link>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/Can-I-config-mass-AP-name-on-sz100-after-all-the-AP-joined-the/m-p/41999#M3638</link>
    <description>But seems the csv just can work for pre-provision AP.</description>
    <pubDate>Fri, 29 May 2020 06:34:24 GMT</pubDate>
    <dc:creator>adam_ye</dc:creator>
    <dc:date>2020-05-29T06:34:24Z</dc:date>
    <item>
      <title>Can I config mass AP name on sz100 after all the AP joined the controller</title>
      <link>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/Can-I-config-mass-AP-name-on-sz100-after-all-the-AP-joined-the/m-p/41997#M3636</link>
      <description>Hi there,&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;It's there any method to&amp;nbsp;modify all the ap name using&amp;nbsp;script or cvs file after all the AP has joined to the sz ?</description>
      <pubDate>Fri, 29 May 2020 06:14:40 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/Can-I-config-mass-AP-name-on-sz100-after-all-the-AP-joined-the/m-p/41997#M3636</guid>
      <dc:creator>adam_ye</dc:creator>
      <dc:date>2020-05-29T06:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can I config mass AP name on sz100 after all the AP joined the controller</title>
      <link>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/Can-I-config-mass-AP-name-on-sz100-after-all-the-AP-joined-the/m-p/41998#M3637</link>
      <description>this is a great idea! currently we have 70 new APs to join and to rename.&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;we use&amp;nbsp;consecutive numbering, hence it would be easy to create a csv with excel for that.</description>
      <pubDate>Fri, 29 May 2020 06:19:16 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/Can-I-config-mass-AP-name-on-sz100-after-all-the-AP-joined-the/m-p/41998#M3637</guid>
      <dc:creator>peter_riederer_</dc:creator>
      <dc:date>2020-05-29T06:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can I config mass AP name on sz100 after all the AP joined the controller</title>
      <link>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/Can-I-config-mass-AP-name-on-sz100-after-all-the-AP-joined-the/m-p/41999#M3638</link>
      <description>But seems the csv just can work for pre-provision AP.</description>
      <pubDate>Fri, 29 May 2020 06:34:24 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/Can-I-config-mass-AP-name-on-sz100-after-all-the-AP-joined-the/m-p/41999#M3638</guid>
      <dc:creator>adam_ye</dc:creator>
      <dc:date>2020-05-29T06:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can I config mass AP name on sz100 after all the AP joined the controller</title>
      <link>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/Can-I-config-mass-AP-name-on-sz100-after-all-the-AP-joined-the/m-p/42000#M3639</link>
      <description>Take a look at the following:&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;&lt;PRE alt="" name="" rel="" target="" title="" type="" value=""&gt;import&amp;nbsp;requests&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;url="https://&lt;YOURIP&gt;:8443/wsg/api/public/v6_0/"&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;login=requests.post(url+'session',verify=False,json={'username':'admin','password':'&lt;YOURSZPASSWORD&gt;'})&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;cookies=login.cookies
&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;#find&amp;nbsp;the&amp;nbsp;zone&amp;nbsp;name&amp;nbsp;and&amp;nbsp;uuid&amp;nbsp;you&amp;nbsp;want&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;zones=requests.get(url+'rkszones',&amp;nbsp;verify=False,&amp;nbsp;cookies=cookies)&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;zones.json()&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;
#get&amp;nbsp;a&amp;nbsp;list&amp;nbsp;of&amp;nbsp;all&amp;nbsp;the&amp;nbsp;APs&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;aps=requests.get(url+'aps',&amp;nbsp;verify=False,&amp;nbsp;cookies=cookies)&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;aps.json()&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;
#get&amp;nbsp;a&amp;nbsp;filtered&amp;nbsp;list&amp;nbsp;of&amp;nbsp;APs&amp;nbsp;(The&amp;nbsp;aps&amp;nbsp;of&amp;nbsp;a&amp;nbsp;specific&amp;nbsp;zone)&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;aprequest={'filters':[{'type':'APZONE',&amp;nbsp;'value':&amp;nbsp;'&lt;ZONE-UUID&gt;'}]}&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;aps=requests.get(url+'aps',&amp;nbsp;verify=False,&amp;nbsp;cookies=cookies,json=aprequest)&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;
#how many APs did we get?
len(myaps['list'])&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;
#define&amp;nbsp;new&amp;nbsp;names&amp;nbsp;for&amp;nbsp;the&amp;nbsp;APs&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;newapnames={'E8:1D:A8:22:AC:30':'AP-PR-01-28',&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;'E8:1D:A8:22:91:00':'AP-PR-01-29',&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;'E8:1D:A8:22:C2:F0':'AP-PR-03-38',&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;'E8:1D:A8:22:87:C0':'AP-SE-PB-04',&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;'E8:1D:A8:22:DC:20':'AP-SE-PB-05',&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;'E8:1D:A8:22:86:30':'AP-SE-01-12',&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;'E8:1D:A8:22:D7:70':'AP-SE-01-13',&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;'E8:1D:A8:22:BE:10':'AP-SE-02-20',&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;'E8:1D:A8:22:94:90':'AP-BI-01-45',&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;'E8:1D:A8:22:87:20':'AP-BI-01-46',&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;'E8:1D:A8:22:DC:30':'AP-KI-PB-47',&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;'E8:1D:A8:22:E3:10':'AP-KI-PB-48',&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;'E8:1D:A8:22:D6:10':'AP-KI-PB-50',&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;'D8:38:FC:19:19:90':'AP-SE-01-11',&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;'D8:38:FC:19:05:D0':'AP-SE-01-15'}&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;

#do the actual renaming&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;for&amp;nbsp;apname&amp;nbsp;in&amp;nbsp;newapnames.keys():&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;print&amp;nbsp;apname,&amp;nbsp;newapnames[apname]&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#originalap=requests.get(url+'aps/'+apname,&amp;nbsp;verify=False,cookies=cookies)&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#print&amp;nbsp;originalap.json()&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;patchAp=requests.patch(url+'aps/'+apname,&amp;nbsp;verify=False,&amp;nbsp;json={'name':newapnames[apname]},&amp;nbsp;cookies=cookies)&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;print&amp;nbsp;patchAp.status_code&lt;/ZONE-UUID&gt;&lt;/YOURSZPASSWORD&gt;&lt;/YOURIP&gt;&lt;/PRE&gt;&lt;PRE alt="" name="" rel="" target="" title="" type="" value=""&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;/PRE&gt;You should run this line by line in a python shell... to be sure of what's happening. But it should get you going!&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;</description>
      <pubDate>Fri, 29 May 2020 15:15:37 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/Can-I-config-mass-AP-name-on-sz100-after-all-the-AP-joined-the/m-p/42000#M3639</guid>
      <dc:creator>diego_garcia_de</dc:creator>
      <dc:date>2020-05-29T15:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can I config mass AP name on sz100 after all the AP joined the controller</title>
      <link>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/Can-I-config-mass-AP-name-on-sz100-after-all-the-AP-joined-the/m-p/42001#M3640</link>
      <description>An additional note. This is meant for python 2.x but should work with minimal changes for python 3.x (replace the&amp;nbsp; "print ..... " by "print(...)"&amp;nbsp;</description>
      <pubDate>Fri, 29 May 2020 15:42:25 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/Can-I-config-mass-AP-name-on-sz100-after-all-the-AP-joined-the/m-p/42001#M3640</guid>
      <dc:creator>diego_garcia_de</dc:creator>
      <dc:date>2020-05-29T15:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can I config mass AP name on sz100 after all the AP joined the controller</title>
      <link>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/Can-I-config-mass-AP-name-on-sz100-after-all-the-AP-joined-the/m-p/42002#M3641</link>
      <description>Hi Diego,&lt;BR /&gt;Thanks for your sharing</description>
      <pubDate>Fri, 29 May 2020 16:17:43 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/Can-I-config-mass-AP-name-on-sz100-after-all-the-AP-joined-the/m-p/42002#M3641</guid>
      <dc:creator>adam_ye</dc:creator>
      <dc:date>2020-05-29T16:17:43Z</dc:date>
    </item>
  </channel>
</rss>

