Clean up nodes in a Network Deployment instance
The cleanupNode script removes a node configuration from the cell repository. Use this script to clean up a node only if you have a node defined in the cell configuration, but the node no longer exists. For example, if you use the removeNode script to remove a node, and you specify the -force parameter, the script removes the node even if it cannot connect to the deployment manager. If the script cannot connect to the deployment manager, the configuration information for the cell is not changed to indicate that the node was removed. The cleanupNode script removes the node information from the cell repository.
To run the cleanupNode script, follow these steps:
- Start the Network Deployment instance that you want to clean up.
- On the OS/400 command line, run the STRQSH (Start Qshell) command.
- On the Qshell command line, use the cd command to change to the directory that contains the script:
cd /QIBM/ProdData/WebAS5/ND/bin- Run the cleanupNode script:
cleanupNode node_name -instance instancewhere node_name specifies the case-sensitive name of the node that you want to clean up, cell_host specifies the name of the machine that hosts your Network Deployment cell, cell_port specifies the SOAP port for your deployment manager, and instance specifies the name of the Network Deployment instance that contains the node that you want to clean up.
In this example, the script removes all configuration information for the node myNode from the Network Deployment instance testinst.
cleanup myNode -instance testinst