Aruba OS REST API Client.
Project description
# arubaos_client
Install it via
```bash
pip install arubaos_client
```
## Usage
```python
from arubaos_client import MobilityControllerAPIClient
aruba = MobilityControllerAPIClient(
username='',
password='',
url='https://aruba-ac.example.com:4343',
proxy="socks5h://localhost:5050",
verify=False
)
# Login to the device
aruba.login()
# Logout
aruba.logout()
# Get a List of APs
aruba.aps()
# Get amount of 2g clients
aruba.clients(band='2g')
aruba.clients_2g()
# Get amount of 5g clients
aruba.clients(band='5g')
aruba.clients_5g()
# Get AP by its MAC address
aruba.ap_by_mac("00:00:00:00:00:00")
# Get AP by its name
aruba.ap('ap_name')
# Get CPU load
aruba.cpu_load()
# Get Memory usage
aruba.memory_usage()
```
Install it via
```bash
pip install arubaos_client
```
## Usage
```python
from arubaos_client import MobilityControllerAPIClient
aruba = MobilityControllerAPIClient(
username='',
password='',
url='https://aruba-ac.example.com:4343',
proxy="socks5h://localhost:5050",
verify=False
)
# Login to the device
aruba.login()
# Logout
aruba.logout()
# Get a List of APs
aruba.aps()
# Get amount of 2g clients
aruba.clients(band='2g')
aruba.clients_2g()
# Get amount of 5g clients
aruba.clients(band='5g')
aruba.clients_5g()
# Get AP by its MAC address
aruba.ap_by_mac("00:00:00:00:00:00")
# Get AP by its name
aruba.ap('ap_name')
# Get CPU load
aruba.cpu_load()
# Get Memory usage
aruba.memory_usage()
```
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
arubaos_client-0.1.2.0.tar.gz
(6.0 kB
view hashes)
Built Distribution
Close
Hashes for arubaos_client-0.1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e00cbe2be5d504e3f0a8f7fa6c48aac9d8aa46014e9710697fb0ca6ecaa22c8 |
|
MD5 | 41d7e9fbebd650b62d625d7d959b4165 |
|
BLAKE2b-256 | ff9c7d4b6a273421715e079073cb9005f27d7e612c8ce5b1c9b835c5eab34e2f |