pyciscospa

A package to interface with Cisco SPA ATA devices


Keywords
cisco, ata
License
Apache-2.0
Install
pip install pyciscospa==0.1.4

Documentation

Cisco SPA ATA devices Build Status PyPi Version

A library to interact with the SPA112 ATA to gather phone line status details and reboot the device remotely.

Command Line Usage

  1. Install PyCiscoSPA.

    pip install pyciscospa
  2. Get the status of the connected phone lines (default admin/admin)

    pyciscospa --host 192.168.1.20
    pyciscospa --host 192.168.1.20 -u admin -p admin
  3. Reboot the ATA

    pyciscospa --host 192.168.1.20 --reboot
    pyciscospa --host 192.168.1.20 -u admin -p admin --reboot

Module Usage

  1. Get phone lines status

    from pyciscospa import CiscoClient
    
    client = CiscoClient(192.168.1.20)
    phone_lines = client.phones()
  2. Reboot the ATA

    from pyciscospa import CiscoClient
    
    client = CiscoClient(192.168.1.20)
    client.reboot()