Re-creating SPOT & lpp_source resources from existing directories in NIMSERVER
The need to define a SPOT from an existing SPOT directory typically arises only when it is necessary to rebuild the NIM database during system recovery.
To define a SPOT from a directory that previously had a SPOT installed in it, use the following command:
Syntax
/usr/lpp/bos.sysmgt/nim/methods/m_mkspot -o -a server=server \
-a location=location -a source=no  spotname
Example
/usr/lpp/bos.sysmgt/nim/methods/m_mkspot -o -a server=master \
 -a location=/export/spot -a source=no spot1
Spot directory exist but spot resource does not exist

guexnim01(/export/spot)#ls -ltr
total 0
drwxr-xr-x    3 bin      bin             256 Apr 16 2007  spot_53_tl4
drwxr-xr-x    3 root     system          256 May 18 2007  spot_53
drwxr-xr-x    3 bin      bin             256 May 25 2007  spot_52
drwxr-xr-x    3 root     system          256 Dec 03 2007  spot_52_tl4
drwxr-xr-x    3 root     system          256 Dec 06 2007  spot_52_tl5
drwxr-xr-x    3 root     system          256 Feb 25 2008  spot_53_tl7_sp1
drwxr-xr-x    3 bin      bin             256 Apr 04 2012  spot_53_tl2
drwxr-xr-x    3 bin      bin             256 Jan 31 09:56 spot_61
guexnim01(/export/spot)#

Spot is not defined:

root@guexnim01(/)#lsnim -t spot
spot_61             resources       spot
spot_53             resources       spot
spot_53_tl4         resources       spot
spot_53_tl7_sp1     resources       spot
root@guexnim01(/)#

Let re-define the spot

# /usr/lpp/bos.sysmgt/nim/methods/m_mkspot -o -a server=master \
-a location=/export/spot -a source=no spot_53_tl2
Let check again,

guexnim01(/)#lsnim -t spot
spot_61             resources       spot
spot_53             resources       spot
spot_53_tl4         resources       spot
spot_53_tl7_sp1     resources       spot
spot_53_tl2         resources       spot
guexnim01(/)#

                                   =================================
Re-define lpp_source resources from existing directories in NIMSERVER

# smitty nim
PERFORM NIM ADMINISTRATION TASK
MANAGE RESOURCES
DEFINE A RESOURCE
choose lpp_source

Define a Resource

Type or select values in entry fields.
Press Enter AFTER making all desired changes.
 
                                               [Entry Fields]
* Resource Name                           [lpp_52_tl5] directory name                               
* Resource Type                            lpp_source                                  
* Server of Resource                      [master]                            +
* Location of Resource                    [/export/lpp_source/lpp_52_tl5]     /
  NFS Client Security Method              []                                  +
  NFS Version Access                      []                                  +
  Architecture of Resource                []                                  +
  Source of Install Images                []    (Do not choose Source               +/
  Names of Option Packages                []     while re-defining lpp_source)
  Show Progress                           [yes]                               +
  Comments                                []



Command: OK            stdout: yes           stderr: no

Before command completion, additional instructions may appear below.

Preparing to copy install images (this will take several minutes)...


Now checking for missing install images...

All required install images have been found. This lpp_source is now ready.

Let’s check

nimserver(/)#lsnim -l lpp_52_tl5
lpp_52_tl5:
   class       = resources
   type        = lpp_source
   arch        = power
   Rstate      = ready for use
   prev_state  = unavailable for use
   location    = /export/lpp_source/lpp_52_tl5
   simages     = yes
   alloc_count = 0
   server      = master
nimserver(/)#

The simages attribute, when set to yes, means that the lpp_source resource contains the necessary filesets to support a base operating system type rte (for Run-Time Environment) installation. The simages attribute is set to yes for an lpp_source resource that contains a minimum set of install images (LPPs) necessary to support the creation of a SPOT resource, or to support the installation of the AIX operating system over the network.
If the lpp_source was created from a TL, you will get the following error.


Command: OK            stdout: yes           stderr: no

Before command completion, additional instructions may appear below.

[TOP]
Preparing to copy install images (this will take several minutes)...


Now checking for missing install images...
warning: 0042-267 c_mk_lpp_source: The defined lpp_source does not have the
        "simages" attribute because one or more of the following
        packages are missing:
                bos
                bos.net
                bos.diag
                bos.sysmgt
                bos.terminfo
                bos.terminfo.all.data
                devices.graphics
                devices.scsi
                devices.tty
                bos.mp64
                bos.64bit
                bos.wpars
                bos.aixpert.cmds
                ifor_ls.base
                ICU4C.rte
                lum.base
                bos.mls
                xlC.aix61

simages attribute will not be in the lpp_source.

nimserver(/)#lsnim -l lpp_53_tl12_sp1
lpp_53_tl12_sp1:
   class       = resources
   type        = lpp_source
   arch        = power
   Rstate      = ready for use
   prev_state  = unavailable for use
   location    = /export/lpp_source/lpp_53_tl12_sp1
   alloc_count = 0
   server      = master
nimserver(/)#