islander / pyciscospa

Python package for interacting with Cisco SPA ATA device

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Python package for interacting with Cisco SPA ATA device

License:Other


Languages

Language:Python 100.0%