See what resources are being used by NIM

lsnim -c resources $HOSTNAME
boot boot represents the network boot resource
5300-07-spot

Loop through all of the hosts:

#!/bin/ksh

################
#
# showallnimres
# 10/27/2009
# requires:  http://deadlycoffee.com/?cat=14 (functions.ksh)
################

. ~/bin/functions.ksh

function anytext {

read TEXT

if [[ $TEXT = "" ]]
        then
        echo 1
        else
        echo 0
        fi

}

s lsnim | grep machines | first | while read HOST
do
if [[ `s lsnim -c resources $HOST | anytext`  -eq 0 ]]
        then
        echo
        echo "$HOST"
        s lsnim -c resources $HOST
        fi
done

To force deallocation of a resource:

s nim -o reset -a force=yes aixhost01
s nim -Fo deallocate -a subclass=all aixhost01

One thought on “See what resources are being used by NIM

  1. When lpp_source is stuck in allocation state do the follwoing:

    lsnim -a lpp_source

    nad0019aixd11

    nad0019aixd26

    Do a reset on the machine to clear the allocation.

Leave a Reply

Your email address will not be published. Required fields are marked *