IBM Support

NIM error code 0042-006 exec_cmd Error 0

How To


Summary

NIM communication from NIM master to the nim client may fail with error like
0042-006 c_rsh: (exec_nimsh_cmd) exec_cmd Error 0

Steps

This looks like a communication issue between NIM master and NIM client over nimsh.
From NIM master
# nim -Fo reset <client>
# nim -o deallocate -a subclass=all <client>
# nim -o remove <client>
Now go to client
# rm /etc/niminfo*
redefine the client but from client side
# smitty nim
...
# cat /etc/niminfo
After this
Go back to NIM master
verify
# lsnim -l <client>
Test the connection
# /usr/lpp/bos.sysmgt/nim/methods/c_rsh <client> /usr/bin/hostname
Does the above command work?
If it fails then look at /var/adm/ras/nimsh.log for further information.

Document Location

Worldwide

Operating System

AIX:All operating systems listed

[{"Type":"SW","Line of Business":{"code":"LOB08","label":"Cognitive Systems"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG10","label":"AIX"},"ARM Category":[{"code":"a8m0z000000cvz2AAA","label":"Install->NIM"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)"}]

Document Information

Modified date:
05 April 2021

UID

ibm16440309