Giter Site home page Giter Site logo

dhquery's Introduction

dhquery

Automatically exported from code.google.com/p/dhquery

DHCP command-line query and testing tool

History

I needed some DHCP testing tool for my projects, based on FreeRADIUS dhcp code.

dhcping had no DISCOVER packet handling, it couldn't do stress test and didn't allow changing request parameters.

Also, I needed Nagios testing plugin for DHCP cluster testing.

###Features

dhquery can send any common packet type, repeat it several times for stress testing or perform cycle testing: DISCOVER, REQUEST and RELEASE.

Also it can work as a Nagios plugin.

Requirements

Python and pydhcplib

Usage: dhquery.py [options]

Options:
  -h, --help            show this help message and exit
  -s SERVER, --server=SERVER
                        DHCP server IP (default 0.0.0.0)
  -p PORT, --port=PORT  DHCP server port (default (67)
  -m CHADDR, --mac=CHADDR, --chaddr=CHADDR
                        chaddr: Client's MAC address
  -c CIADDR, --ciaddr=CIADDR
                        ciaddr: Client's desired IP address
  -g GIADDR, --giaddr=GIADDR
                        giaddr: Gateway IP address (if any)
  -t MSGTYPE, --type=MSGTYPE
                        DHCP message type: discover, request, release (default
                        discover)
  -w TIMEOUT, --timeout=TIMEOUT
                        UDP timeout (default 4)
  -r REQUIRED_OPTS, --require=REQUIRED_OPTS
                        Require options by its number
  -y, --cycle           Do full cycle: DISCOVERY, REQUEST, RELEASE
  -n CYCLES, --cycles=CYCLES
                        Do number of cycles (default 1)
  -v, --verbose         Verbose operation
  -q, --quiet           Quiet operation
  --nagios              Nagios mode of operation

dhquery's People

Contributors

l337hium avatar

Watchers

 avatar

dhquery's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.