A library to interact with the SPA112 ATA to gather phone line status details and reboot the device remotely.
Install PyCiscoSPA.
pip install pyciscospa
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
Reboot the ATA
pyciscospa --host 192.168.1.20 --reboot pyciscospa --host 192.168.1.20 -u admin -p admin --reboot
Get phone lines status
from pyciscospa import CiscoClient client = CiscoClient(192.168.1.20) phone_lines = client.phones()
Reboot the ATA
from pyciscospa import CiscoClient client = CiscoClient(192.168.1.20) client.reboot()