ddt - management of computer names and IP addresses |
ddt - management of computer names and IP addresses
ddt add-alias [--hostname|-h hostname] [--sector|-s|-d sector] [--alias|-a alias]
ddt add-dhcp [--hostname|-h hostname] [--sector|-s|-d sector] [--ip|-i ip] [--mac|-m mac] [--comment|-c comment]
ddt add-float [--pool|-p pool] [--sector|-s|-d sector] [--mac|-m mac] [--comment|-c comment]
ddt add-radius [--hostname|-h hostname] [--sector|-s|-d sector] [--mac|-m mac] [--comment|-c comment]
ddt add-static [--hostname|-h hostname] [--sector|-s|-d sector] [--ip|-i ip] [--mac|-m mac] [--comment|-c comment]
ddt add-virtual [--hostname|-h hostname] [--sector|-s|-d sector] [--ip|-i ip] [--comment|-c comment]
ddt change-comment [--sector|-s|-d sector] [--mac|-m mac] [--comment|-c comment]
ddt change-sector [--sector|-s|-d sector] [--ip|-i ip] [--mac|-m mac]
ddt change-host [--hostname|-h hostname] [--sector|-s|-d sector] [--ip|-i ip] [--mac|-m mac]
ddt change-ip [--hostname|-h hostname] [--sector|-s|-d sector] [--ip|-i ip]
ddt change-mac [--hostname|-h hostname] [--sector|-s|-d sector] [--ip|-i ip] [--mac|-m mac]
ddt change-tag [--hostname|-h hostname] [--sector|-s|-d sector] [--ip|-i ip] [--mac|-m mac] [--tag|-t tag]
ddt change-type [--hostname|-h hostname] [--sector|-s|-d sector] [--type|-t type]
ddt check-dns [--direct|-d] [--reverse|-r] [--by-ip|-b] [--clean-cache|-c]
ddt create-sector [--sector|-s|-d sector] [--dns-extension|-e dns_extension] [--comment|-c comment]
ddt create-pool [--pool|-p pool] [--sector|-s|-d sector] [--file-pool|-f file_pool] [--ipaddress-pool|-i ipaddress_pool]
ddt create-pxe [--bootp|-b pxe_config] [--next-server|-n next_server] [--filename|-f filename] [--comment|-c comment]
ddt create-tag [--tag|-t tag] [--comment|-c comment]
ddt del-float [--pool|-p pool] [--mac|-m mac]
ddt del-pc [--hostname|-h hostname] [--sector|-s|-d sector] [--ip|-i ip]
ddt disable-pc [--hostname|-h hostname] [--sector|-s|-d sector] [--ip|-i ip]
ddt disable-float [--pool|-p pool] [--mac|-m mac]
ddt disable-pxe [--hostname|-h hostname] [--sector|-s|-d sector] [--ip|-i ip]
ddt enable-float [--pool|-p pool] [--mac|-m mac]
ddt enable-pc [--hostname|-h hostname] [--sector|-s|-d sector] [--ip|-i ip]
ddt enable-pxe [--hostname|-h hostname] [--sector|-s|-d sector] [--ip|-i ip] [--bootp|-b pxe_config]
ddt gen-all-file
ddt gen-dhcp-file
ddt gen-dns-file [--verbose]
ddt gen-radius-file
ddt help
ddt load-database [--sector|-s|-d sector] [--filename|-f filename] [--kind|-k kind]
ddt remove-pxe [--bootp|-b pxe_config]
ddt remove-tag [--tag|-t tag]
ddt search-mac [--mac|-m mac]
ddt sector-add-ip [--sector|-s|-d sector] [--ip-range|-i ip_cidr]
ddt show-sector [--no-header|-H]
ddt show
ddt show-pool [--no-header|-H]
ddt show-pxe [--no-header|-H]
ddt show-tag [--no-header|-H]
ddt version
DDT is an acronym for DHCP-DNS-Tools. The previous command name was not ddt
but just dhcp-dns-tools
... In practise, DDT is an IP Address Management (IPAM) service. It has been used in the LEGI laboratory for over 10 years.
The tool is quite effective and tries to keep things simple but easily configurable for your site like a swiss army knife. Everything is saved in a YAML database and entries could be added, deleted, or modified by the command line.
ddt add-alias [--hostname|-h hostname] [--sector|-s|-d sector] [--alias|-a alias]
ddt add-dhcp [--hostname|-h hostname] [--sector|-s|-d sector] [--ip|-i ip] [--mac|-m mac] [--comment|-c comment]
ddt add-float [--pool|-p pool] [--sector|-s|-d sector] [--mac|-m mac] [--comment|-c comment]
ddt add-radius [--hostname|-h hostname] [--sector|-s|-d sector] [--mac|-m mac] [--comment|-c comment]
Add a static host in the database. No DHCP configuration will be generated, only DNS.
ddt add-static [--hostname|-h hostname] [--sector|-s|-d sector] [--ip|-i ip] [--mac|-m mac] [--comment|-c comment]
Add a static host in the database with a virtual MAC address beginning by FF:FF:...
. No DHCP configuration will be generated, only DNS.
ddt add-virtual [--hostname|-h hostname] [--sector|-s|-d sector] [--ip|-i ip] [--comment|-c comment]
ddt change-comment [--sector|-s|-d sector] [--mac|-m mac] [--comment|-c comment]
ddt change-sector [--sector|-s|-d sector] [--ip|-i ip] [--mac|-m mac]
ddt change-host [--hostname|-h hostname] [--sector|-s|-d sector] [--ip|-i ip] [--mac|-m mac]
ddt change-ip [--hostname|-h hostname] [--sector|-s|-d sector] [--ip|-i ip]
ddt change-mac [--hostname|-h hostname] [--sector|-s|-d sector] [--ip|-i ip] [--mac|-m mac]
This command is used to modify tags on a computer. If you wish to add a tag, you must write both the old and the new tag on the command line, otherwise the old tag is lost. Tags must be separated by commas.
ddt change-tag [--hostname|-h hostname] [--sector|-s|-d sector] [--ip|-i ip] [--mac|-m mac] [--tag|-t tag]
If you wish to delete all tags on a computer, simply assign the universal
tag to it.
ddt change-type [--hostname|-h hostname] [--sector|-s|-d sector] [--type|-t type]
ddt check-dns [--direct|-d] [--reverse|-r] [--by-ip|-b] [--clean-cache|-c]
Only check reverse with --reverse
and direct with --direct
, otherwise, check the two. Clean nscd
host cache with option --clean-cache
.
Option --by-ip
will check every IP in the DNS that is not declare un ddt.
ddt create-sector [--sector|-s|-d sector] [--dns-extension|-e dns_extension] [--comment|-c comment]
ddt create-pool [--pool|-p pool] [--sector|-s|-d sector] [--file-pool|-f file_pool] [--ipaddress-pool|-i ipaddress_pool]
ddt create-pxe [--bootp|-b pxe_config] [--next-server|-n next_server] [--filename|-f filename] [--comment|-c comment]
This command is used to define a tag for subsequent use on computers. Note that the default tag is universal
. Machines with no tag have this tag.
ddt create-tag [--tag|-t tag] [--comment|-c comment]
ddt del-float [--pool|-p pool] [--mac|-m mac]
ddt del-pc [--hostname|-h hostname] [--sector|-s|-d sector] [--ip|-i ip]
ddt disable-pc [--hostname|-h hostname] [--sector|-s|-d sector] [--ip|-i ip]
ddt disable-float [--pool|-p pool] [--mac|-m mac]
ddt disable-pxe [--hostname|-h hostname] [--sector|-s|-d sector] [--ip|-i ip]
ddt enable-float [--pool|-p pool] [--mac|-m mac]
ddt enable-pc [--hostname|-h hostname] [--sector|-s|-d sector] [--ip|-i ip]
ddt enable-pxe [--hostname|-h hostname] [--sector|-s|-d sector] [--ip|-i ip] [--bootp|-b pxe_config]
ddt gen-all-file
ddt gen-dhcp-file
ddt gen-dns-file [--verbose]
ddt gen-radius-file
ddt help
ddt load-database [--sector|-s|-d sector] [--filename|-f filename] [--kind|-k kind]
ddt remove-pxe [--bootp|-b pxe_config]
This command removes a tag from the list of possible tags to be applied to a machine park. Note that no machine must have the tag before it can be deleted. The universal
tag cannot be deleted.
ddt remove-tag [--tag|-t tag]
ddt search-mac [--mac|-m mac]
ddt sector-add-ip [--sector|-s|-d sector] [--ip-range|-i ip_cidr]
ddt show-sector [--no-header|-H]
ddt show
ddt show-pool [--no-header|-H]
ddt show-pxe [--no-header|-H]
This command lists all the tags that can be assigned to a computer via the change-tag command.
ddt show-tag [--no-header|-H]
The tag with the name universal
exists intrinsically. It cannot be destroyed. It's useful if you don't declare a tag for a machine.
ddt version
Own project ressources:
Note: The master Git repository in on the GRICAD Gitlab. Other Git repository are mirror or fork.
Written by Gabriel Moreau <Gabriel.Moreau(A)univ-grenoble-alpes.fr>, Kevin Reverchon, Olivier De-Marchi - Grenoble - France
License GNU GPL version 2 or later and Perl equivalent
Copyright (C) 2006-2024, LEGI UMR 5519 / CNRS UGA G-INP, Grenoble, France
ddt - management of computer names and IP addresses |