Coder Social home page Coder Social logo

mattrude / dhcpstatus Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 4.0 49 KB

DHCPStatus is a query tool for browsing information stored in DHCPD's configuration and leases files.

Home Page: http://mattrude.github.com/DHCPStatus/

License: GNU General Public License v2.0

Perl 100.00%

dhcpstatus's People

Contributors

mattrude avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dhcpstatus's Issues

使用该模块时,有报错。

前提:

  1. 配置文件正常
  2. CentOS release 6.5 (Final)
  3. perl及其他文件默认。

报错信息如下:
[Wed Apr 08 18:07:30 2015] [error] [client ...] Use of uninitialized value within @_ in string ne at /usr/local/dhcpstatus/dhcpstatus/dhcpstatus.pm line 49.

报错的IP,并未在dhcpd.lease文件里。

对应代码,
if ($_[0] ne "lease") {>>-# ignore anything that isn't a lease.
while (shift ne "}") {} //错误行
next LEASE;
}

timelocal.pl not found

The time library changed in newer versions of Perl. Change the require lines in Lease.pm and dhcpstatus.pm to "use Time::Local;".

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.