Skip to main content

Downloads and parses information from Cisco IP Phones

Project description


Uses BeautifulSoup and RegEx to pull and parse data directly form Cisco IP Phones

input a phone ip address

from phonescrape import scrape

phones = ['', '']

for phone in phones:
    details = scrape.allDetails(phone)

and get back a dict of information:

    "sn": "FCH2053D2BS",
    "firmware": "sip88xx.12-0-1-8",
    "dn": "52807",
    "model": "CP-8851",
    "kem1": "Key expansion module 2",
    "kem2": "Hardware revision",
    "mac_address": "F8A5C59E0F1C",
    "hostname": "SEPF8A5C59E0F1C",
    "domain_name": "DHCP server",
    "dhcp_server": "",
    "dhcp": "Yes",
    "ip_address": "",
    "subnetmask": "",
    "gateway": "",
    "dns1": "",
    "dns2": "DNS server 3",
    "alt_tftp": "Yes",
    "tftp1": "",
    "tftp2": "DHCP address released",
    "op_vlan": "Admin VLAN ID",
    "admin_vlan": "CUCM server1",
    "cucm1": "  Active",
    "cucm2": "",
    "cucm3": "CUCM server4",
    "info_url": "",
    "dir_url": "",
    "msg_url": "Services URL",
    "svc_url": "",
    "idle_url": "Idle URL time",
    "info_url_time": "0",
    "proxy_url": "",
    "auth_url": "",
    "tvs": "",
    "status": [
        "11:39:03am 10/09/18 ITL installed",
        "11:39:04am 10/09/18 SEPF8A5C59E0F1C.cnf.xml.sgn(HTTP)",
        "11:39:05am 10/09/18 VPN not configured"

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

phonescrape-0.0.1.tar.gz (3.0 kB view hashes)

Uploaded source

Built Distribution

phonescrape-0.0.1-py3-none-any.whl (15.6 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page