Build precise queries to find exactly what you need
Press ESC to close
@beli-consulting
Favorites0
Views
Projects0
Please find my fix below: .... .... .... retour_srfr=$(vmstat 1 2 | awk '{ print $8" "$9 }' | tail -1) fr=$(echo $retour_srfr | cut -d " " -f1 ) sr=$(echo $retour_srfr | cut -d " " -f2 ) retour_numperm=$(vmstat -v | grep numperm | sed 's/ //g' | cut -d " " -f 2) retour_inuse=$(svmon | awk '{ print $3 }' | head -2 | tail -1) retour_memory=$(svmon | awk '{ print $2 }' | head -2 | tail -1) retour_pguse=$(svmon | grep "pg space" | awk '{ print $4 }') retour_pgsize=$(svmon | grep "pg space" | awk '{ print $3 }') .... .... .... pgspaceused) retour_pg_used=$(expr 100 * $retour_pguse / $retour_pgsize) str_out="$str_out $retour_pg_used% " if (( $retour_pg_used > $valw)) then ok=1 fi if (( $retour_pg_used > $valc)) then ok=2 fi # Sortie au format perfparse echo "$str_out PgSpaceUsed = $retour_pg_used%;| PgSpaceUsed=$retour_pg_used%;$valw;$valc"; exit $ok ;; esac .... .... ....
Reviewed 10 years ago