# Script: sho_filesys_siz # Where: in $FEDIR/scripts where $FEDIR=/apps/nns_com/fea # # Purpose: Shows the disk usage in # a specified ideas file system partition . # Called by: sho_filesys_siz_start which is called by # /apps/ideas_ms2/nnscripts/make_uparam2 # which is called by /apps/ideas_ms2/bin/ideas # # Parameter input: the NNS I-DEAS DataInstallation ID # # # Written by: B. Montandon 16Nov95 # Updated by: B. Montandon 12Dec95 # # CURMIN=`date | cut -d: -f2` CURSEC=`date | cut -d: -f3 | cut -d" " -f1` DFKOUT="df -k" #if [ $CURSEC -gt 35 ] #then # DFKOUT=`df -k`; echo $DFKOUT |... DOES NOT WORK; STRIPS LINE FEEDS # DFKOUT=`df -k` # echo $DFKOUT | grep '/usr/people ' | awk '{print $6 "\t" $7}' echo " Giga bytes %used FileSys ----- ----- ---------------  " DFKOUT="df -k" $DFKOUT | grep '/usr/people ' | awk '{print $3/1000000 "\t\t" $6 "\t" $7}' $DFKOUT | grep '/local/scratch' | awk '{print $3/1000000 "\t\t" $6 "\t" $7}' case ${1} in 1) # ideas dmid 1 - subs echo " 'subs' projects:" $DFKOUT | grep /proj1 | awk '{print $3/1000000 "\t\t" $6 "\t" $7}' $DFKOUT | grep /ideas_team1 | awk '{print $3/1000000 "\t\t" $6 "\t" $7}' ;; 2) # ideas dmid 2 - nuc echo " 'nuc' projects:" $DFKOUT | grep '/proj2 ' | awk '{print $3/1000000 "\t\t" $6 "\t" $7}' $DFKOUT | grep '/proj21' | awk '{print $3/1000000 "\t" $6 "\t" $7}' $DFKOUT | grep /ideas_team2 | awk '{print $3/1000000 "\t\t" $6 "\t" $7}' ;; 3) # ideas dmid 3 - cvn echo " 'cvn' & 'othr' projects:" $DFKOUT | grep /proj3 | awk '{print $3/1000000 "\t\t" $6 "\t" $7}' $DFKOUT | grep /ideas_team3 | awk '{print $3/1000000 "\t\t" $6 "\t" $7}' ;; 4) # ideas dmid 4 - othr echo " 'cvn' & 'othr' projects:" $DFKOUT | grep /proj3 | awk '{print $3/1000000 "\t\t" $6 "\t" $7}' $DFKOUT | grep /ideas_team3 | awk '{print $3/1000000 "\t\t" $6 "\t" $7}' ;; 5) # ideas dmid 5 - washdc echo " 'washdc' projects:" $DFKOUT | grep /proj5 | awk '{print $3/1000000 "\t\t" $6 "\t" $7}' $DFKOUT | grep /ideas_team5 | awk '{print $3/1000000 "\t\t" $6 "\t" $7}' ;; 91) # ideas dmid 91 - test1 echo " 'trng', 'test1', & 'test2' projects:" $DFKOUT | grep /proj4 | awk '{print $3/1000000 "\t\t" $6 "\t" $7}' $DFKOUT | grep /ideas_team4 | awk '{print $3/1000000 "\t" $6 "\t" $7}' ;; 92) # ideas dmid 92 - test2 echo " 'trng', 'test1', & 'test2' projects:" $DFKOUT | grep /proj4 | awk '{print $3/1000000 "\t\t" $6 "\t" $7}' $DFKOUT | grep /ideas_team4 | awk '{print $3/1000000 "\t" $6 "\t" $7}' ;; 0) # ideas dmid 0 - trng echo " 'trng', 'test1', & 'test2' projects:" $DFKOUT | grep /proj4 | awk '{print $3/1000000 "\t\t" $6 "\t" $7}' $DFKOUT | grep /ideas_team4 | awk '{print $3/1000000 "\t" $6 "\t" $7}' ;; *) # all sgia partitions for any other entry in $1 echo " 'subs','nuc','cvn','other','trng', 'test1', & 'test2' projects:" $DFKOUT | grep /proj1 | awk '{print $3/1000000 "\t\t" $6 "\t" $7}' $DFKOUT | grep /ideas_team1 | awk '{print $3/1000000 "\t\t" $6 "\t" $7}' $DFKOUT | grep '/proj2 ' | awk '{print $3/1000000 "\t\t" $6 "\t" $7}' $DFKOUT | grep /proj21 | awk '{print $3/1000000 "\t" $6 "\t" $7}' $DFKOUT | grep /ideas_team2 | awk '{print $3/1000000 "\t\t" $6 "\t" $7}' $DFKOUT | grep /proj3 | awk '{print $3/1000000 "\t\t" $6 "\t" $7}' $DFKOUT | grep /ideas_team3 | awk '{print $3/1000000 "\t\t" $6 "\t" $7}' $DFKOUT | grep /proj4 | awk '{print $3/1000000 "\t\t" $6 "\t" $7}' $DFKOUT | grep /ideas_team4 | awk '{print $3/1000000 "\t" $6 "\t" $7}' ;; esac # sleep 15 echo " If  /usr/people is more than 85% full , please check your home directory and its ideas subdirectory for large files to remove (or move local, for short-term work-and-delete). See FEA/MCADD menu options 'u f uy/uh/ud/uf', 'u f cl', 'u f rc', 'u f cm' for some utilities to  periodically summarize/delete/move/compress files . If  /proj% is more than 85% full , please check for model files and drawing setup files that can be removed via Item/Project Management in I-DEAS. If  /ideas_team% is more than 85% full , please check for part, assembly, and drawing files that can be removed via Library Management in I-DEAS. Please notify your departmental 'I-DEAS Project Data(-Space) Coordinator' if there appears to be a looming space crunch. ***Press Enter (with mouse-cursor in this window) to close this window." read NNS_JUNK # fi