<?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: Way to list APs by ethernet speed? in SmartZone and Virtual SmartZone</title>
    <link>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/Way-to-list-APs-by-ethernet-speed/m-p/20819#M1336</link>
    <description>Hi Greg,&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;The AP CLI command to check that is :get eth&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;Unfortunately with vSZ you cannot run AP CLI commands to all AP's (as in ZD with -A option) from the vSZ CLI.&amp;nbsp; The vSZ CLI command: remote ap-cli &lt;AP_MAC&gt; "get eth" can only be run to one MAC address at at time&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;The AP CLI GUI script tool only permits doing AP CLI set commands - it cannot be used for get commands, so this tool will not get you this information.&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;The only thing I can think of is to use some SSH scripting tool that takes a list of AP MAC addresses (this can be output from Monitor AP's using the CSV export feature) and having the script input the MAC into the remote ap-cli &lt;MAC_AS_VARIABLE&gt; "get eth".&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;I do not have examples or experience with this type of scripting.&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;This would be a handy tool for getting data directly from AP's since query on the AP directly using CLI commands produces the most current and correct information.&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;I will keep digging around for another solution, maybe someone else on the Forum has a better idea!!!&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;Sorry for the less then perfect response.&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;Albert Pierson&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;/MAC_AS_VARIABLE&gt;&lt;/AP_MAC&gt;</description>
    <pubDate>Mon, 01 Oct 2018 18:11:32 GMT</pubDate>
    <dc:creator>albert_pierson</dc:creator>
    <dc:date>2018-10-01T18:11:32Z</dc:date>
    <item>
      <title>Way to list APs by ethernet speed?</title>
      <link>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/Way-to-list-APs-by-ethernet-speed/m-p/20818#M1335</link>
      <description>We're trying to figure out how many of our APs are connected with 100Mbps uplinks but can't seem to find a way to report on this easily.&amp;nbsp; So far the only method I know of is to check each AP individually from the monitoring page.&lt;BR /&gt;&lt;BR /&gt;Is anyone aware of a report or even a command I could run to show all the AP ethernet connection speeds in one page?</description>
      <pubDate>Mon, 01 Oct 2018 17:36:34 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/Way-to-list-APs-by-ethernet-speed/m-p/20818#M1335</guid>
      <dc:creator>Greg_WiGuy</dc:creator>
      <dc:date>2018-10-01T17:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Way to list APs by ethernet speed?</title>
      <link>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/Way-to-list-APs-by-ethernet-speed/m-p/20819#M1336</link>
      <description>Hi Greg,&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;The AP CLI command to check that is :get eth&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;Unfortunately with vSZ you cannot run AP CLI commands to all AP's (as in ZD with -A option) from the vSZ CLI.&amp;nbsp; The vSZ CLI command: remote ap-cli &lt;AP_MAC&gt; "get eth" can only be run to one MAC address at at time&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;The AP CLI GUI script tool only permits doing AP CLI set commands - it cannot be used for get commands, so this tool will not get you this information.&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;The only thing I can think of is to use some SSH scripting tool that takes a list of AP MAC addresses (this can be output from Monitor AP's using the CSV export feature) and having the script input the MAC into the remote ap-cli &lt;MAC_AS_VARIABLE&gt; "get eth".&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;I do not have examples or experience with this type of scripting.&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;This would be a handy tool for getting data directly from AP's since query on the AP directly using CLI commands produces the most current and correct information.&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;I will keep digging around for another solution, maybe someone else on the Forum has a better idea!!!&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;Sorry for the less then perfect response.&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;Albert Pierson&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;/MAC_AS_VARIABLE&gt;&lt;/AP_MAC&gt;</description>
      <pubDate>Mon, 01 Oct 2018 18:11:32 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/Way-to-list-APs-by-ethernet-speed/m-p/20819#M1336</guid>
      <dc:creator>albert_pierson</dc:creator>
      <dc:date>2018-10-01T18:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Way to list APs by ethernet speed?</title>
      <link>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/Way-to-list-APs-by-ethernet-speed/m-p/20820#M1337</link>
      <description>Thanks for responding so quickly Albert.&amp;nbsp; I created a block of text with the command for all APs by exporting a CSV and copying the MACs into an advanced text editor.&amp;nbsp; Sample below:&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;remote ap-cli 0C:F4:D5:01:01:01 "get eth"&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;remote ap-cli 0C:F4:D5:01:01:02 "get eth"&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;remote ap-cli 0C:F4:D5:01:01:03 "get eth"&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;remote ap-cli 0C:F4:D5:01:01:04 "get eth"&lt;BR /&gt;&lt;BR /&gt;Unfortunately it seems that the SZ console requires the output to be returned before the next command is input, and only returns info for the first AP.&amp;nbsp; This prevents me of pasting any block of these commands and makes this process super tedious.&lt;BR /&gt;&lt;BR /&gt;Any other suggestions?</description>
      <pubDate>Mon, 01 Oct 2018 18:45:23 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/Way-to-list-APs-by-ethernet-speed/m-p/20820#M1337</guid>
      <dc:creator>Greg_WiGuy</dc:creator>
      <dc:date>2018-10-01T18:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Way to list APs by ethernet speed?</title>
      <link>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/Way-to-list-APs-by-ethernet-speed/m-p/20821#M1338</link>
      <description>You should be able to do it with the API. See below for an example in python:

&lt;PRE alt="" name="" rel="" target="" title="" type="" value=""&gt;import requests
import json

# define the APs you want to list here:
apList = ['34:8F:26:AA:BB:CC', '30:87:D8:00:11:22', '30:87:D9:33:44:55']

# define username / password / ip or url below
username="admin"
password="[password]"
baseUrl="https://[smartzoneurl-or-ip]:8443/wsg/api/scg

# the rest should not need any changes

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
    for myAp in apList:
        apStatusReq=requests.get( baseUrl + '/aps/' + myAp  ,cookies=cookieJar, headers=headers)
        if (apStatusReq.status_code != requests.codes.ok or not apStatusReq.json()['success']):
            print myAp, "Not Found!"
            continue
        for portInfo in apStatusReq.json()['data']['lanPortStatus']:
            print myAp,  portInfo['interfaceName'], portInfo['logicLink'], portInfo['phyLink']
    logoutRequest=requests.delete(baseUrl + '/session', headers=headers, cookies=cookieJar)
    print logoutRequest.status_code
&lt;/PRE&gt;

This will print a list of all ports and status for each of the APs listed in the "apList"&amp;nbsp; array. The code could be modified to walk all the APs in the controller.. but it should be a good start.&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;you just need to have python installed somewhere (the example above is for python 2.x) with the "requests" package installed.&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;


the output looks like this
&lt;PRE alt="" name="" rel="" target="" title="" type="" value=""&gt;34:8F:27:AA:BB:CC eth0 Up Up 1000Mbps full
34:8F:27:AA:BB:CC eth1 Down Down
30:87:D8:00:11:22 Not Found!
30:87:D9:33:44:55 eth1 Down Down
30:87:D9:33:44:55 eth2 Down Down
30:87:D9:33:44:55 eth3 Down Down
30:87:D9:33:44:55 eth4 Up Up 100Mbps full
30:87:D9:33:44:55 eth0 Up Up 1000Mbps full
&lt;/PRE&gt;

Hope it helps!</description>
      <pubDate>Wed, 03 Oct 2018 00:27:39 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/Way-to-list-APs-by-ethernet-speed/m-p/20821#M1338</guid>
      <dc:creator>diego_garcia_de</dc:creator>
      <dc:date>2018-10-03T00:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Way to list APs by ethernet speed?</title>
      <link>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/Way-to-list-APs-by-ethernet-speed/m-p/20822#M1339</link>
      <description>Thank you for this!&amp;nbsp; I guess it's time for me to start learning python &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Fri, 05 Oct 2018 13:53:36 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/Way-to-list-APs-by-ethernet-speed/m-p/20822#M1339</guid>
      <dc:creator>Greg_WiGuy</dc:creator>
      <dc:date>2018-10-05T13:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Way to list APs by ethernet speed?</title>
      <link>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/Way-to-list-APs-by-ethernet-speed/m-p/20823#M1340</link>
      <description>should be fairly easy....&amp;nbsp; but it's going to be very powerful for you! Good luck!</description>
      <pubDate>Fri, 05 Oct 2018 17:43:20 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/SmartZone-and-Virtual-SmartZone/Way-to-list-APs-by-ethernet-speed/m-p/20823#M1340</guid>
      <dc:creator>diego_garcia_de</dc:creator>
      <dc:date>2018-10-05T17:43:20Z</dc:date>
    </item>
  </channel>
</rss>

