The node directory could not be accessed because of an I/O
The command cannot be processed.
Resubmit the command. If the error continues, remove the node
directory (sqlnodir under the sqllib directory) and recatalog the
node names on the network.
sqlcode : -1038
sqlstate : 58031
If you find this type of DB2 Error message, before dig into this first "check your system have Administrator rights".
Other wise you can not resolve this error.
On reason is rights to read/write the DB2 client configuration.
Check the user using which you have executed the command to catalog the database have right to read/write the DB2 client configuration.
On windows , open the console(cmd) as Aministrator, then open DB2 CLI (executing db2cmd on console), the DB2 CLI is now running with Administrator rights, try to catalog node using this DB2 CLI console.