{"id":19825267,"url":"https://github.com/tes3awy/device-lps","last_synced_at":"2026-05-30T23:31:46.515Z","repository":{"id":99912104,"uuid":"543579007","full_name":"Tes3awy/device-lps","owner":"Tes3awy","description":"Used to estimate logging rate based on log receiver statistics.","archived":false,"fork":false,"pushed_at":"2022-10-01T21:30:17.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-28T20:45:49.455Z","etag":null,"topics":["estimation-algorithm","expect","paloaltonetworks","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tes3awy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-30T11:58:20.000Z","updated_at":"2023-04-10T01:17:55.000Z","dependencies_parsed_at":"2023-05-11T01:00:34.518Z","dependency_job_id":null,"html_url":"https://github.com/Tes3awy/device-lps","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Tes3awy/device-lps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tes3awy%2Fdevice-lps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tes3awy%2Fdevice-lps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tes3awy%2Fdevice-lps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tes3awy%2Fdevice-lps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tes3awy","download_url":"https://codeload.github.com/Tes3awy/device-lps/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tes3awy%2Fdevice-lps/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33714033,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["estimation-algorithm","expect","paloaltonetworks","python3"],"created_at":"2024-11-12T11:07:08.029Z","updated_at":"2026-05-30T23:31:46.490Z","avatar_url":"https://github.com/Tes3awy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Device LPS\n\n\u003e Used to estimate logging rate based on log receiver statistics.\n\nThis set of scripts will poll the firewall to see how many logs are written per second. It pulls the LPS value from the `debug log-receiver statistics` for PaloAlto Firewall or `debug log-collector log-collection-stats show incoming-logs` for PaltoAlto Panorama, and is intended to provide an _estimate_ of the number of logs per second that can be forwarded from the device.\n\n\u003e **Note that the number will be accurate provided all policies are configured to forward logs.**\n\n## Table of Contents\n\n1. [Installation](#installation)\n2. [Usage](#usage)\n3. [Credits](#credits)\n4. [TODO](#todo)\n\n## Installation\n\n```bash\nsudo apt update \u0026\u0026 sudo apt upgrade -y\nsudo apt install expect -y\n```\n\n## Usage\n\n```bash\n./device_lps.exp \u003cFirewall_IP\u003e \u003cUsername\u003e \u003cDevice_Type\u003e \u003cNumber_of_Samples\u003e\n```\n\n- `\u003cDevice_Type\u003e` can be either `fw` or `cms`. `fw` will send the appropriate command for a firewall while `cms` will send the appropriate command for Panorama.\n- Samples are taken every 10 seconds, so you would enter 360 to get samples over an hour.\n\n## Credits\n\nThis is an updated version of the work of art created by `cstancill(at)paloaltonetworks(dot)com` in [**Panorama Sizing and Design Guide**](https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000Clc8CAC)\n\n## TODO\n\n- [ ] Replace `expect` script with a Python (Paramiko) script.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftes3awy%2Fdevice-lps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftes3awy%2Fdevice-lps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftes3awy%2Fdevice-lps/lists"}