From: David R. <ren...@nk...> - 2012-12-20 20:02:01
|
Matthew Do not know if this helps but we are not running this version but the older 1.5 version. We do have problems with "." In the user name. We made the changes to netreg to accept but dhcp would not restart so we backed out the option. If you always used "." In the user name then ignore this. David Renaker From: Matthew Kehl [mailto:Mat...@wl...] Sent: Thursday, December 20, 2012 1:58 PM To: net...@li... Subject: NetReg: cron job isn't working Hi everyone, I'm getting the below output (under my signature) when trying to run the cron job that writes the new user information from the netreg.registered.new file to netreg.registered file. I'm running Dan Ramaley's p10 version of netreg1.5.1 on 64 bit centos 6. I used 'yum install' to install all the modules. I also ran a yum update after. A modification I had to do is put the Net/Netreg folder in: /usr/lib64/perl5/ not /usr/lib/perl5/site_perl/Net/Netreg This folder move fixed errors I was getting earlier in the setup, but I'm not sure if it messed up more than it fixed. I also had to adjust configurations so they pointed to the netreg.registered instead of hosts.new file that didn't exist. I figured this out because when my test user would login it would error out saying the hosts file didn't exist. I'm stuck at this point and I'm not sure where the logs are pointing me anymore. Any ideas on how to fix the cron job so it writes the netreg.registered file correctly? Feel free to contact me via phone as well, I'll document the solution on the forum after. Thanks in advance! Matt Kehl Network System Specialist Wisconsin Lutheran College 414.443.8921 [root@netreg bin]# ./refresh-dhcpdconf /usr/local/etc/netreg/dhcpd/netreg.registered.new is newer than /usr/local/etc/netreg/dhcpd/netreg.registered. Copying /usr/local/etc/netreg/dhcpd/netreg.registered to /usr/local/etc/netreg/dhcpd/netreg.registered.bak Copying /usr/local/etc/netreg/dhcpd/netreg.registered.new to /usr/local/etc/netreg/dhcpd/netreg.registered Testing new config... Internet Systems Consortium DHCP Server 4.1.1-P1 Copyright 2004-2010 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ /usr/local/etc/netreg/dhcpd/netreg.registered line 1: semicolon expected. host matthew.kehl-1 { hardware ethernet b8:ac:6f:53:d2:94; ddns-hostname matthew ^ /usr/local/etc/netreg/dhcpd/netreg.registered line 1: expecting a parameter or declaration host matthew.kehl-1 { hardware ethernet b8:ac:6f:53:d2:94; ddns-hostname matthew ^ /usr/local/etc/netreg/dhcpd/netreg.registered line 1: unexpected end of file host matthew.kehl-1 { hardware ethernet b8:ac:6f:53:d2:94; ddns-hostname matthew ^ /etc/dhcp/dhcpd.conf line 74: /usr/local/etc/netreg/dhcpd/netreg.registered: bad parse. include "/usr/local/etc/netreg/dhcpd/netreg.registered" ^ Configuration file errors encountered -- exiting This version of ISC DHCP is based on the release available on ftp.isc.org<ftp://ftp.isc.org>. Features have been added and other changes have been made to the base software release in order to make it work better with this distribution. Please report for this software via the CentOS Bugs Database: http://bugs.centos.org/ exiting. Error in dhcp configuration... leaving existing server running! Copying /usr/local/etc/netreg/dhcpd/netreg.registered to /usr/local/etc/netreg/dhcpd/netreg.registered.bad Copying /usr/local/etc/netreg/dhcpd/netreg.registered.bak to /usr/local/etc/netreg/dhcpd/netreg.registered Copying /usr/local/etc/netreg/dhcpd/netreg.registered.bak to /usr/local/etc/netreg/dhcpd/netreg.registered.new |