nim_reset script PDF Print E-mail
User Rating: / 0
PoorBest 
Written by Michael Felt   
  • Here is a little script I finally thought of for myself! This will save me from going into smit all the time because I keep forgetting how to deallocate all resources from the command line.
  • Now I may forget! :)

nim_reset

#!/usr/bin/ksh
#shorthand for resetting a nim machine
#Copyright Michael Felt, 2015 (aixtools.net, rootvg.net)

for $machine in $*
do
    nim -o reset -F $machine
    RC=$?
    [[ $RC -ne 0 ]] && print "nim -o reset -F $machine" failed && exit $RC
    nim -Fo deallocate -a subclass=all $machine
    RC=$?
    [[ $RC -ne 0 ]] && print "nim -Fo deallocate -a subclass=all $machine" failed && exit $RC
done

 
< Prev   Next >