mtoshi / airwaveapiclient

Aruba Networks AirWave API Client.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

airwaveapiclient

Airwaveapiclient is a utility tool for Aruba Networks AirWave users. This module connects to AirWave and gets the information such as the access point list, detail, client, etc.

image

image

Latest Version

Documentation Status

Requirements

  • Python2.7, 3.5, 3.6, 3.7, PyPy.

Installation

  • PyPI or Github :

    $ pip install airwaveapiclient
    
    or
    
    $ git clone https://github.com/mtoshi/airwaveapiclient
    $ cd airwaveapiclient
    $ sudo python setup.py install

Using example

  • Documentation: Readthedocs
  • Sample code: Github
  • Login :

    >>> airwave = AirWaveAPIClient(username='admin',
    ...                            password='*****',
    ...                            url='https://192.168.1.1')
    >>> airwave.login()
  • Get Access Point List :

    >>> res = airwave.ap_list()
    >>> res.status_code
    200
    >>> res.text # xml output
    '<?xml version="1.0" encoding="utf-8" ...'
  • Get Access Point Detail :

    >>> ap_id = 1
    >>> res = airwave.ap_detail(ap_id)
    >>> res.status_code
    200
    >>> res.text # xml output
    '<?xml version="1.0" encoding="utf-8" ...'
  • Logout :

    >>> airwave.logout()

See also

About

Aruba Networks AirWave API Client.

License:MIT License


Languages

Language:Python 99.8%Language:Shell 0.2%