Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dogoncouch/dhcptranslate
Parses ISC DHCP server config, performs DNS resolution as needed, and outputs lease data in CSV format.
https://github.com/dogoncouch/dhcptranslate
configuration csv-format data-analysis isc-dhcp isc-dhcp-server migration-tool
Last synced: 23 days ago
JSON representation
Parses ISC DHCP server config, performs DNS resolution as needed, and outputs lease data in CSV format.
- Host: GitHub
- URL: https://github.com/dogoncouch/dhcptranslate
- Owner: dogoncouch
- License: mit
- Created: 2020-12-06T05:26:23.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-18T00:30:05.000Z (about 4 years ago)
- Last Synced: 2024-11-25T13:39:31.876Z (3 months ago)
- Topics: configuration, csv-format, data-analysis, isc-dhcp, isc-dhcp-server, migration-tool
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# dhcptranslate
## Usage
Parses DHCP reservations from an ISC DHCP config file, and translates any reservations made by DNS name to an IP address. Outputs CSV format to the command line in the following format, sorted by `ip_address`:
```
ip_address,MAC_address,"MAC_vendor",hostname,reservation,original_config_line
```
The `reservation` field contains what was originally defined by the reservation, whether it is by IP address or DNS name. The `ip_address` field will show `0.0.0.0` if DNS resolution failed. `MAC_vendor` is in quotes, since it sometimes contains commas. The last field is the original config line in its entirety.### Options
```
usage: dhcptranslate [-h] [--version] FILE [FILE ...]positional arguments:
FILE set a dhcp conf file to parseoptional arguments:
-h, --help show this help message and exit
--version show program's version number and exit
-c, --config Output in config format with IP address
```## Examples
dhcptranslate dhcpd.conf includes.conf > csvoutputfile## Support
Bugs, questions, and other issues can be directed to the project's [issues page](https://github.com/dogoncouch/dhcptranslate/issues) on GitHub, or emailed to [dogoncouch@dogoncouch.net](mailto:dogoncouch@dogoncouch.net).# Copyright
MIT LicenseCopyright (c) 2020 Dan Persons (dogoncouch@dogoncouch.net)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.