bot779 / getruckus

list client mac addresses associated to Ruckus Wireless APs
GNU General Public License v3.0
9 stars 0 forks source link

Locating which AP a device is connected to #1

Open jasontucker opened 9 years ago

jasontucker commented 9 years ago

How would I go about querying the ZD on which AP a particular client is connected to? (by providing the MAC of the client)

bot779 commented 9 years ago

Like this:

$ ./getruckus --client 48:d7:05:54:ab:24 MacAddr = Hex-STRING: 48 D7 05 54 AB 24 APMacAddr = Hex-STRING: 6C AA B3 0E DF 10 BSSID = Hex-STRING: 6C AA B3 0E DF 1C SSID = STRING: "public" User = "" RadioType = INTEGER: 4 Channel = Gauge32: 100 IPAddr = IpAddress: 10.0.82.171 AvgRSSI = INTEGER: 36 RxPkts = Counter32: 2510 RxBytes = Counter64: 1051873 RxBytes = Counter32: 2105 TxBytes = Counter64: 963691 Retries = Counter32: 0 AssocTime = Timeticks: (129100) 0:21:31.00 RxError = Counter32: 0 TxSuccess = Counter32: 2105 11bgReassoc = Counter32: 1 AssocTimestamp = STRING: "Fri May 15 13:54:00 2015" RetryBytes = Counter32: 0 SNR = INTEGER: 36 RxDrop = Counter32: 0 TxDrop = Counter32: 0 TxError = Counter32: 0 VlanID = INTEGER: 199 AuthMode = STRING: "OPEN" SignalStrength = INTEGER: -59

For (a little) more info, type: ./getruckus –help

Let me know if you want to chat, and I’ll meet you on http://webchat.freenode.net/ in the #ruckus channel.

From: Jason Tucker [mailto:notifications@github.com] Sent: Friday, May 15, 2015 12:54 PM To: bot779/getruckus Subject: [getruckus] Locating which AP a device is connected to (#1)

How would I go about querying the ZD on which AP a particular client is connected to? (by providing the MAC of the client)

— Reply to this email directly or view it on GitHubhttps://github.com/bot779/getruckus/issues/1.

jasontucker commented 9 years ago

What I'm after is a list of clients connected to which AP. I work in a mixed enviroment of Ruckus and Unifi. On our unifi devices we use this command: unifi-ls-clients from this repo: https://github.com/calmh/unifi-api to generate a list of connected users:

NAME MAC AP CHAN RSSI RX TX client-kitchen 00:24:36:9a:0d:ab Study 100 51 300 216 jborg-mbp 28:cf:da:d6:46:20 Study 100 45 300 300 jb-iphone 48:60:bc:44:36:a4 Living Room 1 45 65 65 jb-ipad 1c:ab:a7:af:05:65 Living Room 1 22 52 65

I'm curious if this sort of thing can be done using your codebase

bot779 commented 9 years ago

Yes. I’m not sure what script you’re looking at but that info should be available either via getruckus (assuming the controller is configured for SNMP) or via ruckusconf. (combined with the appropriate CLI command)

Let me know if you’d like to discuss the details and I’ll meet you at webchat.freenode.net in the “ruckus” channel.

-Bill

From: Jason Tucker [mailto:notifications@github.com] Sent: Friday, May 22, 2015 1:00 PM To: bot779/getruckus Cc: Burns, William Subject: Re: [getruckus] Locating which AP a device is connected to (#1)

What I'm after is a list of clients connected to which AP. I work in a mixed enviroment of Ruckus and Unifi. On our unifi devices we use this command: unifi-ls-clients from this repo: https://github.com/calmh/unifi-api to generate a list of connected users:

NAME MAC AP CHAN RSSI RX TX client-kitchen 00:24:36:9a:0d:ab Study 100 51 300 216 jborg-mbp 28:cf:da:d6:46:20 Study 100 45 300 300 jb-iphone 48:60:bc:44:36:a4 Living Room 1 45 65 65 jb-ipad 1c[Image removed by sender. :ab:]a7:af:05:65 Living Room 1 22 52 65

I'm curious if this sort of thing can be done using your codebase

— Reply to this email directly or view it on GitHubhttps://github.com/bot779/getruckus/issues/1#issuecomment-104713691.

bot779 commented 9 years ago

Have you tried running getruckus? I just uploaded a new version that includes a “—community” option so you won’t need to hard-code anything in order to use the script.

To see the options, enter: getruckus --help

In the first 3 columns of output: it shows you client mac address, AP mac address and the BSSID of the SSID that client is associated with.

If you use it much you should edit the script to change the controller IP and community string to match your environment.

From: Jason Tucker [mailto:notifications@github.com] Sent: Friday, May 22, 2015 1:00 PM To: bot779/getruckus Cc: Burns, William Subject: Re: [getruckus] Locating which AP a device is connected to (#1)

What I'm after is a list of clients connected to which AP. I work in a mixed enviroment of Ruckus and Unifi. On our unifi devices we use this command: unifi-ls-clients from this repo: https://github.com/calmh/unifi-api to generate a list of connected users:

NAME MAC AP CHAN RSSI RX TX client-kitchen 00:24:36:9a:0d:ab Study 100 51 300 216 jborg-mbp 28:cf:da:d6:46:20 Study 100 45 300 300 jb-iphone 48:60:bc:44:36:a4 Living Room 1 45 65 65 jb-ipad 1c[:ab:]a7:af:05:65 Living Room 1 22 52 65

I'm curious if this sort of thing can be done using your codebase

— Reply to this email directly or view it on GitHubhttps://github.com/bot779/getruckus/issues/1#issuecomment-104713691.