return to PRS Technologies website


hp_disk_table1.sh
#!/usr/bin/ksh ############################################################################ # # Module: hp_disk_table1.sh # Author: Peter R. Schmidt # Description: Report on HP disk configuration # Map Hardware addresses to device names # # Change Log # # Date Name Description................. # 11/10/00 Peter R. Schmidt Start Program # ############################################################################ if [ $LOGNAME != root ] then echo echo "Sorry - you must be 'root' to run this program" echo exit 1 fi TMP1=hp_disk_table1.tmp OUTPUT=hp_disk_table1.out rm -f $TMP1 strings /etc/lvmtab | grep dsk | sed -e 's/^/lssf /g' > $TMP1 sh $TMP1 > $OUTPUT rm $TMP1 pg $OUTPUT echo echo "Note: Output report is in $OUTPUT" ###############################################################################