#!/bin/sh # # # Harry Hoffman # # **************************************************************************** # Service definition section. # **************************************************************************** service="Default Route" servfil="set-defaultrouter.vfy" DROUTER="${JASS_ROOT_DIR}/etc/defaultrouter" HOSTS="${JASS_ROOT_DIR}/etc/hosts" BASEADDR=`grep ${JASS_HOSTNAME} ${HOSTS}|cut -d. -f1-3` #----------------------------------------------------------------------------- servhdr_txt=" Rationale for Verification Check: This check determines if the default route is set. Determination of Compliance: The default route should be set to xxx.xxx.xxx.254 " # **************************************************************************** # Check processing section. # **************************************************************************** start_verify "${servfil}" "${service}" "${servhdr_txt}" if check_fileExists ${DROUTER} 1 ; then if check_fileContentsExist ${DROUTER} "${BASEADDR}\.254" 1 ; then logSuccess "Default route set in ${DROUTER}." else logFailure "Default route is not ${BASEADDR}.254." fi else logFileNotFound "${DROUTER}" 1 fi finish_verify