Send dhcp-users mailing list submissions to dhcp-users@lists.isc.org
To subscribe or unsubscribe via the World Wide Web, visit https://lists.isc.org/mailman/listinfo/dhcp-users or, via email, send a message with subject or body 'help' to dhcp-users-requ...@lists.isc.org You can reach the person managing the list at dhcp-users-ow...@lists.isc.org When replying, please edit your Subject line so it is more specific than "Re: Contents of dhcp-users digest..." Today's Topics: 1. Script to run on DHCPNAK (Mark Spring) ---------------------------------------------------------------------- Message: 1 Date: Wed, 19 Jul 2017 20:18:00 -0400 From: Mark Spring <mspr...@nktelco.com> To: dhcp-users@lists.isc.org Subject: Script to run on DHCPNAK Message-ID: <CACPubsL4ZYRH+6vftn7npgt3TaTOCH8=xx+b1zatc0hszqx...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" I am having some issues with network gear, and while arguing with vendors about who's problem it really is..I noticed that my device receives a NAK before it receives the proper IP address from our server(when the gear comes back online). If I can track this down in the logs then I can look for the ACK that follows, login to the device and reboot it properly. I wrote a script to try and tail the log file with bash and I have been able to pick off the traffic but the buffer when tailing in bash leaves me with a case where time before the device is handled is indefinite. I have read about the "on commit" in the config and that doesn't seem to help, the expiry and other options don't seem to fit my needs either. I'm not necessarily committed to BASH, it just seemed to be the quickest go to without a lot of fluff...considered PERL PHP or Python. Don't have a lot of experience with one particular language, just use what works for each scenario. Let me know where I can fill in blanks! Mark Spring Information Systems Manager -- NKTelco 301 W. South St. New Knoxville, OH 45871 Phone: 1-888-NKTELCO Fax: 419-753-2950 This message and the file(s) attached are confidential and proprietary information of NKTelco for the sole use of the intended recipient. Any unauthorized review, distribution, disclosure, copying, use, or dissemination, either whole or in part, is strictly prohibited. Do not transmit these documents, in any form, to any third party without the expressed written permission of NKTelco. -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20170719/5048c388/attachment-0001.html> ------------------------------ Subject: Digest Footer _______________________________________________ dhcp-users mailing list dhcp-users@lists.isc.org https://lists.isc.org/mailman/listinfo/dhcp-users ------------------------------ End of dhcp-users Digest, Vol 105, Issue 11 *******************************************