Under Construction
Removing a NIM client
If an AIX system is no longer to be managed via NIM by a NIM master, the NIM client should be removed. To do this, the NIM object for the NIM client should be removed on the NIM master, the NIM service handler (nimsh) on the NIM client should be stopped, and the /etc/niminfo file on the NIM client should be removed. The AIX system can, of course, be re-registered as a NIM client with a NIM master at any time.
A NIM client must be removed from the NIM master. First, check whether the NIM client has allocated resources. This can be determined, for example, with the following command:
aixnim # lsnim -c resources aix05
aix730202lpp lpp_source
aix730202spot spot
aixnim #
In the example, the NIM client has allocated a spot (aix730202spot) and an lpp_source (aix730202lpp) resource. Both resources must first be released before the NIM client can be removed. Otherwise, attempting to remove the NIM client will result in an error message:
aixnim # nim -o remove aix05
0042-001 nim: processing error encountered on "master":
0042-052 m_rmmac: unable to remove "aix05" because resources
have been allocated to it
aixnim #
The resources can be released individually:
aixnim # nim -o deallocate -a spot=aix730202spot aix05
aixnim # nim -o deallocate -a lpp_source=aix730202lpp aix05
aixnim #
Or all at once:
aixnim # nim -o deallocate -a subclass=all aix05
aixnim #
A check shows that no resources are allocated anymore:
aixnim # lsnim -c resources aix05
aixnim #
The NIM client can now be removed using the command “nim -o remove”, where the NIM client to be removed is specified as an argument:
aixnim # nim -o remove aix05
aixnim #
This not only deletes the NIM object for the NIM client on the NIM master, but also the /etc/niminfo on the NIM client.
aix05 $ ls -l /etc/niminfo
/etc/niminfo not found
aix05 $
However, you have to stop the NIM service handler (nimsh) yourself on the former NIM client:
aix05 # lssrc -s nimsh
Subsystem Group PID Status
nimsh nimclient 15139104 active
aix05 # stopsrc -s nimsh
0513-044 The nimsh Subsystem was requested to stop.
aix05 #
The NIM client is now completely removed from the NIM environment.