### List Clients Utility Usage - unifi-ls-clients - Shell Source: https://github.com/finish06/pyunifi/blob/master/README.md Shows an example of running the `unifi-ls-clients` command-line utility with various parameters to list active clients and displays the typical output format. ```Shell jb@unifi:~ % unifi-ls-clients -c localhost -u admin -p p4ssw0rd -v v3 -s default 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 ``` -------------------------------- ### Initializing Controller and Listing APs (Python) Source: https://github.com/finish06/pyunifi/blob/master/README.md This snippet demonstrates how to initialize a Controller object to connect to a UniFi controller and then iterate through the connected access points (APs) to print their names and MAC addresses. It requires the 'pyunifi' library to be installed. ```python from pyunifi.controller import Controller c = Controller('192.168.1.99', 'admin', 'p4ssw0rd') for ap in c.get_aps(): print('AP named %s with MAC %s' % (ap.get('name'), ap['mac'])) ``` -------------------------------- ### Run unifi-save-statistics Script (Shell) Source: https://github.com/finish06/pyunifi/blob/master/README.md Example command to run the `unifi-save-statistics` script. It connects to the UniFi controller at `localhost`, authenticates with username 'admin' and password 'p4ssw0rd', uses API version 'v3', targets the 'default' site, and saves the statistics to a file named 'filename.csv'. ```Shell unifi-save-statistics -c localhost -u admin -p p4ssw0rd -v v3 -s default -f filename.csv ``` -------------------------------- ### Run unifi-low-snr-reconnect Script (Shell) Source: https://github.com/finish06/pyunifi/blob/master/README.md Example command to run the `unifi-low-snr-reconnect` script. It connects to the UniFi controller at `localhost`, authenticates with username 'admin' and password 'p4ssw0rd', uses API version 'v3', targets the 'default' site, and sets the minimum acceptable SNR to 30 dB. The output shows clients being disconnected due to low SNR. ```Shell unifi-low-snr-reconnect -c localhost -u admin -p p4ssw0rd -v v3 -s default --minsnr 30 2012-11-15 11:23:01 INFO unifi-low-snr-reconnect: Disconnecting jb-ipad/1c:ab:a7:af:05:65@Study (SNR 22 dB < 30 dB) 2012-11-15 11:23:01 INFO unifi-low-snr-reconnect: Disconnecting Annas-Iphone/74:e2:f5:97:da:7e@Living Room (SNR 29 dB < 30 dB) ``` -------------------------------- ### List Vouchers by Code - pyunifi - Python Source: https://github.com/finish06/pyunifi/blob/master/README.md Demonstrates how to use the `list_vouchers` method to retrieve a list of vouchers, specifically filtering by a voucher code. ```Python c.list_vouchers(code='12345-67890') ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.