README.md 1.16 KB
Newer Older
1
2
3
4
# Aruba-WLAN Python Scripts

## Install
`pip install git+https://gitlab.fem-net.de/aruba-wlan/arubawlan-python-scripts.git`
Alexander Detsch's avatar
Alexander Detsch committed
5
6

## Usage
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
`python -m arubawlan-python-scripts.<scriptname> <options>`

## scripts included
### `add_aruba_ap`
Adding APs to AdminDB2, Aruba Mobility Master, Wiki Warehouse-Page and Netbox.

Usage example: `python -m arubawlan-python-scripts.add_aruba_ap --user $ADMINDB_USER --password $ADMINDB_PW --mmwhitelist --mmuser admin --mmpass $MM_PW --mmproxy "socks5h://127.0.0.1:8081" --model "ap-515" --wikiuser $LDAP_USER --wikipassword $LDAP_PW -b AP-Zuordnung-HausI-lite.csv`

Other cli-parameters: `python -m arubawlan-python-scripts.add_aruba_ap --help`

You need access to Management-network for configuring the AP in the Mobility Master, so most probably you have to open a SOCKS-proxy via a jumphost: `ssh -D 8081 ...`

### `prepare_aruba_ap_switchport`
In case the user is connected via cable to the AP, the previous userport has to be moved to the access point's switchport in the AdminDB2.

Usage example: `python -m arubawlan-python-scripts.prepare_aruba_ap_switchport --user $ADMINDB_USER --password $ADMINDB_PW -n <apname> -s <AdminDB2 Switchport ID`