Skip to content

Latest commit

 

History

History
59 lines (32 loc) · 1.25 KB

README.rst

File metadata and controls

59 lines (32 loc) · 1.25 KB

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()