Lista de alguns comandos do NIM (Network Installation Manager)

Apenas uma lista de alguns comandos do NIM.

List the NIM clients:

# lsnim -t standalone

List the machine information:

# lsnim -l <nimclientname>
<nimclientname>:
   class          = machines
   type           = standalone
   connect        = shell
   platform       = chrp
   netboot_kernel = mp
   if1            = master_net <nimclientname> 7e7895fe785a
   cable_type1    = bnc
   Cstate         = BOS installation has been enabled
   prev_state     = not running
   Mstate         = in the process of booting
   info           = LED 611: failure: mount <hostname>:/filesystem/mksysb/aix_5300-06_latest.mksysb /NIM_BOS_IMAGE
   boot           = boot
   mksysb         = mksysb_aix_5300-06
   nim_script     = nim_script
   spot           = 5300-06_spot
   cpuid          = 00CC9XXXXXXXX
   control        = master

 

Reset the machine:

# nim -Fo reset

After the reset:

# lsnim -l <nimclientname>
<nimclientname>:
   class          = machines
   type           = standalone
   connect        = shell
   platform       = chrp
   netboot_kernel = mp
   if1            = master_net <nimclientname> 7e7895fe785a
   cable_type1    = bnc
   Cstate         = ready for a NIM operation
   prev_state     = BOS installation has been enabled
   Mstate         = in the process of booting
   mksysb         = mksysb__aix_5300-06
   spot           = 5300-06_spot
   cpuid          = 00CCXXXXXX
   control        = master
   Cstate_result  = reset

Deallocate resources:

mksysb:

# nim -o deallocate -a mksysb=mksysb_aix_5300-06

spot:

# nim -o deallocate -a spot=5300-06_spot -a subclass=all

Leave a Reply

Your email address will not be published. Required fields are marked *