#!/bin/ksh # 2004-06-08 Tom Kranz (tom@siliconbunny.com) # This script is distributed under the GNU Public License (GPL) with the # following extra conditions: # - attritbution must be maintained # - CD-ROM or similar media for commercial distribution without the prior # approval of the author # Unconfigure memory from SBs in a clever script that will impress and amaze # Use this as the basis for all sorts of automated DR fun! # Show em what we have echo "" echo "Finding memory slots on system boards ......\n" cfgadm -al -s "select=type(memory)" # Ask the user what they want to unconfigure echo "" echo "Which system boards need their memory disabling?\n" read BOARDS # Do the DR magic dance! for BOARD in $BOARDS do echo "" echo "Disabling memory on system board ${BOARD}::memory !" echo "" cfgadm -l ${BOARD}::memory done # Exercise for the reader - how do you put the memory back again? :-) # And I'm spent exit 0