{"id":13586356,"url":"https://github.com/debops/phpipam-scripts","last_synced_at":"2025-07-12T12:35:40.565Z","repository":{"id":15474463,"uuid":"18207927","full_name":"debops/phpipam-scripts","owner":"debops","description":"A set of scripts designed to access phpIPAM database","archived":false,"fork":false,"pushed_at":"2023-11-23T12:30:20.000Z","size":37,"stargazers_count":31,"open_issues_count":5,"forks_count":15,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-11T05:11:22.705Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/debops.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2014-03-28T09:58:44.000Z","updated_at":"2024-01-25T21:37:25.000Z","dependencies_parsed_at":"2024-08-01T16:32:20.014Z","dependency_job_id":null,"html_url":"https://github.com/debops/phpipam-scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/debops/phpipam-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debops%2Fphpipam-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debops%2Fphpipam-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debops%2Fphpipam-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debops%2Fphpipam-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/debops","download_url":"https://codeload.github.com/debops/phpipam-scripts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/debops%2Fphpipam-scripts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263264642,"owners_count":23439247,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-08-01T15:05:30.480Z","updated_at":"2025-07-03T05:03:53.735Z","avatar_url":"https://github.com/debops.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"## phpipam-scripts\n\nThis is a set of scripts designed to access [phpIPAM](http://phpipam.net/)\ndatabase from a DHCP/DNS server.\n\n### phpipam-hosts\n\n`phpipam-hosts` will let you generate customized host lists which can be included\nin ISC DHCP Server or dnsmasq configuration. You can also create `/etc/hosts`\nand `/etc/ethers` files.\n\nTo include a generated host list in any section of the ISC DHCP Server\nconfiguration, you can add in the dhcpd configuration file:\n\n    include \"/path/to/host-list\";\n\nTo see available configuration options, run `phpipam-hosts -h`\n\n#### Features\n\n- generate multiple host lists from one database and automatically restart\n  DHCP server if any list changed\n- filter hosts by phpIPAM sections, subnets and host state (active, reserved,\n  offline, dhcp)\n- check MAC address validity and automatically comment out invalid hosts in\n  the finished configuration file\n- optionally generate host list with only invalid hosts for easier debugging\n\n#### Requirements\n\n- Python\n- `python-mysqldb`\n- installed and configured [phpIPAM](http://phpipam.net/) (can be installed on\n  a different host than `phpipam-hosts`)\n\n#### Installation\n\nInstall `phpipam-hosts` in a directory in your `$PATH`, for example\n`/usr/local/sbin`. Save provided example configuration file in\n`/etc/dhcp/phpipam.conf` and modify default database configuration to\nreflect your environment.\n\n`phpipam-hosts` is designed to run periodically from `cron`, access phpIPAM\ndatabase and generate specified host lists. You can either add entries with\nspecified arguments in cron directly (run `phpipam-hosts --help` to see list\nof available options) or write your configuration in main configuration file\n(`/etc/dhcp/phpipam.conf` by default) and access it using `--group`\noption.\n\nExample `cron` entry which generates a single host list and restarts `dhcpd`\ndaemon if host list is changed:\n\n    */5 * * * * root /usr/local/sbin/phpipam-hosts -o /etc/dhcp/dhcpd-hosts.conf -x\n\nYou can use an example `phpipam-hosts-wrapper` script to generate multiple host\nfiles and restart dhcpd if any one of them changes. To do that, you should\nconfigure different host files with the same trigger file.j\n\n### License and copyright\n\nLicense: GPLv3\n\nCopyright (C) 2014 Maciej Delmanwski \u003cdrybjed@gmail.com\u003e  \nHomepage: [https://github.com/debops/phpipam-scripts/](https://github.com/debops/phpipam-scripts/)  \nphpIPAM homepage: [http://phpipam.net/](http://phpipam.net/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdebops%2Fphpipam-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdebops%2Fphpipam-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdebops%2Fphpipam-scripts/lists"}