Skip to content

Instantly share code, notes, and snippets.

@warewolf
Created July 22, 2012 22:28
Show Gist options
  • Save warewolf/3161238 to your computer and use it in GitHub Desktop.
Save warewolf/3161238 to your computer and use it in GitHub Desktop.
$ ./dhcpdb_search.pl
Search mode required, mac, hostname, or IP
Usage:
dhcpdb_search.pl [options] [search_criteria] [date_criteria]
Options:
-help brief help message
-man full documentation
Output formatting:
-csv use CSV friendly output
-table use a table format
-last print only the most recent record
Search modes:
-address IP address to search for
-hostname Hostname to search for
-mac MAC address to search for
Date criteria:
-datetime Date to search for (single point in time)
-startdate Start date to search (ranged search)
-enddate End date to search (ranged search)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment