Phase 2: PatchList: Solaris showrev -p | awk '{print $2}' | sort -u | awk -F- '{if($1 !=n && NR!=1)print p; n=$1;p=$0} END{print p}' Irix versions | awk "/patch/{print \2$}" Aix /usr/sbin/instfix -i | awk "/Not/{print \$5 ; next}{print \$4}" HP-UX /usr/sbin/swlist -l product | awk '/#/{next} /PH[A-Z][A-Z]_/{print $1}'` Compaq /usr/sbin/dupatch -track -type patch | awk '{if ($1 == "Patch" ) print $2}' Ruleset: PatchList Strategy ScanOnce Rule 1: Prereq: MWPlatform/Solaris Property: PatchList Command: echo `showrev -p | nawk '{print $2}' | sort -u | nawk -F- '{if($1!=n && NR!=1)print p; n=$1;p=$0} END{print p}'` Rule 2: Prereq: MWPlatform/Irix Property: PatchList Command: echo `versions | awk '/patch/{print $2}'` Rule 3: Prereq: MWPlatform/Tru64 Property: Patchlist Command: if [ -e /usr/sbin/dupatch ];then echo `/usr/sbin/dupatch -track -type patch 2>&1 | awk '{if ($1 == "Patch" ) print $2}'`;fi Rule 4: Prereq: MWPlatform/HP-UX && OSLevel/11 Property: Patchlist Command: echo `/usr/sbin/swlist -l product | awk '/#/{next} /PH[A-Z][A-Z]_/{print $1}'` Rule 5: Prereq: MWPlatform/AIX Property: Patchlist Command: echo `/usr/sbin/instfix -i | awk '/Not/{print $5 ; next}{print $4}'` Rule 6: Prereq: MWPlatform/HP-UX && OSLevel/10.20 Property: Patchlist Command: echo `/usr/sbin/swlist -l product | awk '/#/{next} /PH[A-Z][A-Z]_/{print $1}'` EndRuleset