This simple scripts are used for collecting RTLS information from Aruba wireless controller. Received data are stored in database.
This project is still in proof of concept phase. It is not suitable for production use !!!
- php-cli
- mariadb / mysql server
user@server:~$ git clone https://github.com/lukaskaplan/aruba-rtls
user@server:~$ cd aruba-rtls
user@server:~/aruba-rtls$ mysql -u username -p rtls < database.sql
user@server:~/aruba-rtls$ mysql -u username -p
mysql> GRANT ALL PRIVILEGES ON *.* TO 'rtls-user'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;
mysql> exit
user@server:~/aruba-rtls$ cp ./config.php.exmaple ./config.php
Then edit ./config.php, update RTLS key, RTLS port and DB credentials.
user@server:~/aruba-rtls$ php ./rtls_server.php
user@server:~/aruba-rtls$ nohup php ./rtls_server.php &>/dev/null &
user@server:~$ ps -aux | grep rtls
user 32731 0.3 2.7 281456 26660 pts/0 S 13:18 0:00 php ./rtls_server.php
user 32733 0.0 0.1 12784 1028 pts/0 S+ 13:18 0:00 grep rtls
user@server:~$ kill 32731