If you are anything like me you much prefer spending 15 minutes writing a script and letting it do all of the work rather than spending the two gruelling days pounding your face across the keyboard doing the same keystrokes and mouse click over and over. Well if you aren’t willing to set up all of the SSH private keys in order to have passwordless access to all lpars in your environment, I have a much simpler solution to all of your problems.
From your NIM master you need to ensure that your machine has Communication Protocol used by client set to nimsh. On my machines, they had defaulted to shell. Easiest way to do this is:
lsnim -l [[hostname]]
you will be looking for the connect attribute set to nim sh
Alternately you can go to “smit nim” -> Perform NIM Administration Tasks -> Manage Machines -> Change/Show Characteristics of a Machine
Find your host and view the Communication Protocol used by client attribute. Again it needs to be set to nimsh.
If you are like me and need to fix this, here is what you do
On the NIM Client
cp /.rhosts /.rhosts.old mv /etc/niminfo /etc/niminfo.old niminit -a name=[[client_hostname]]-a master=[[nim_hostname]]-a master_port=1058 -a connect=nimsh
This will backup the niminfo file and the rhosts (just in case). Once you have completed your work on the client:
On the NIM Master
nim -o change -a connect=nimsh [[hostname]] lsnim -l [[hostname]]
This will change the definition on the master and show you the characteristics for you to double check