Check connection (rsh or nimsh) between NIM server and LPAR.

NIM server needs to be connected with LPARs, either using rsh or nimsh protocol. In case this communcation is lost, mksysb backups or other tasks from NIM to this lpar will fail. So, I have made this simple script to check this connectivity between NIM and LPAR.

# Copyright (C) 2012 Israel Garcia iga3725 @
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program
# You need to add parameter $1 as the name of the lpar (machine resource) to the script:
# Check machine resource exist on NIM:
lsnim -c machines|grep "$1" 1>/dev/null
if [[ $? -eq 0 ]] ; then
    echo "ERROR: $1 machine resource does not exists on NIM." && exit 1
nim -o lslpp $1 |grep bos.rte.odm 1>/dev/null

if [[ $? == 0 ]];then
    echo "Communication NIM-LPAR $1 is OK!!"
    echo; echo "ERROR: There's no connection between NIM and LPAR $1. Check configuration."

Just thanks if the post was helpful 🙂


About igalvarez

More than 20 years experiences on IT industry. 20+ years in Unix experience : IBM-AIX, HMC/SDMC/IVM, SVC, Protectier, PureFlex Systems, VIOservers, IBM Bladecenters, IBM System Power, RedHat Linux, SuSE Linux, Debian/Ubuntu Linux. Solaris, SCO Unix, Tru64 Unix, Linux Virtualization: XEN, KVM, databases sb2, oracle, postgreSQL, Find more information here:
This entry was posted in AIX, NIM and tagged , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s