#!/bin/cshset MaxLeaseCount = 500set LeaseCount = `grep -c "binding state active" /var/dhcpd/var/db/dhcpd.leases`echo "LeaseCount: $LeaseCount"if ( $LeaseCount >= $MaxLeaseCount ) then exit 1endifexit 0