Changeset 149 for trunk/test
- Timestamp:
- Jan 7, 2008, 8:52:13 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/testrun_1e.sh
r128 r149 23 23 export BUILDOPTS 24 24 25 MAXTEST=3; export MAXTEST 25 MAXTEST=4; export MAXTEST 26 27 PORTPOLICY_4=" 28 [ReadOnly] 29 file=${BASE} 30 [PortCheck] 31 PortCheckActive = yes 32 PortCheckUDP = no 33 " 34 35 chk_portdata_4 () { 36 one_sec_sleep 37 38 egrep 'CRIT.*POLICY \[ServiceNew\]' $LOGFILE >/dev/null 2>&1 39 if [ $? -eq 0 ]; then 40 41 [ -z "$verbose" ] || log_msg_fail "Open ports"; 42 return 1 43 fi 44 } 45 46 refine_portpolicy_4 () 47 { 48 cat "$LOGFILE" | grep ServiceNew | sed 's/.*port //' | awk '{ print $1 }' | \ 49 while read line; do 50 echo "PortCheckSkip=$line" >>"${RCFILE}" 51 done 52 echo "PortCheckIgnore=2026/tcp" >>"${RCFILE}" 53 echo "PortCheckIgnore=2027/udp" >>"${RCFILE}" 54 echo "PortCheckIgnore=2028/tcp" >>"${RCFILE}" 55 echo "PortCheckIgnore=2029/udp" >>"${RCFILE}" 56 } 26 57 27 58 PORTPOLICY_3=" … … 50 81 echo "PortCheckIgnore=$line" >>"${RCFILE}" 51 82 done 52 echo "PortCheckIgnore=2026 " >>"${RCFILE}"53 echo "PortCheckIgnore=2027 " >>"${RCFILE}"54 echo "PortCheckIgnore=2028 " >>"${RCFILE}"55 echo "PortCheckIgnore=2029 " >>"${RCFILE}"83 echo "PortCheckIgnore=2026/tcp" >>"${RCFILE}" 84 echo "PortCheckIgnore=2027/udp" >>"${RCFILE}" 85 echo "PortCheckIgnore=2028/tcp" >>"${RCFILE}" 86 echo "PortCheckIgnore=2029/udp" >>"${RCFILE}" 56 87 } 57 88
Note:
See TracChangeset
for help on using the changeset viewer.