#!/bin/bash

#grep -A3   'host [^ ]*'  /etc/dhcp/dhcpd.conf && echo -e "Warning. Host managed by DHCP. Should only be hosts planned for kickstart listed here. \nNotice that hostname can be a faulty hostname in cobbler! So grep MAC if confused"

cat /etc/dhcp/dhcpd.conf|dhcpdparse.awk|grep ^host|grep -v spirula|grep -v ",m[0-9]"|grep -v miarka|grep -v cygnus
echo -e "Warning. Host managed by DHCP. Should only be hosts planned for kickstart listed here. \nNotice that hostname can be a faulty hostname in cobbler! So grep MAC if confused"
echo "Hosts without PXE as first boot device excluded. Modify this script if needed"
exit 0
