NIM HOW TOs

NIM HOW TOs

How to define a standalone machine in NIM.

      nim -o define -t standalone \

                -a platform=chrp \

                -a if1="subnet-74 FQDN of Machine 0" \

                -a cable_type1=tp \

                -a net_settings1="speed duplex" \

                -a netboot_kernel="up or mp \

                name of resource

 

How to initiate an install of a machine from a mksysb image.

      nim -o bos_inst \

                -a source=mksysb \

                -a spot=aix520-01_spot \

                -a mksysb=base520-02-64bit_mksysb or base520-02-32bit_mksysb \

                -a accept_licenses=yes \

                -a preserve_res=yes \

                -a installp_flags="cNgXY" \

                -a fb_script=osg-mksysb-install_firstboot \

                name of resource

 

If you do not want the machine to be rebooted right now, then add the following:

     -a no_client_boot=yes

 

How to reset the NIM state of a machine.

      nim -o reset \

                name of resource

 

You can add the following to force a reset

                -a force=yes

 

If after you try to reset the state and try to install again and you are told that the resource is still allocated run the following:

      nim -Fo deallocate \

                    -a subclass=all name of resource

 

How to take a mksysb of a machine.

        nim -o define -t mksysb \

              -a server=master \

              -a location=/export/nim/mksysb/<name of resource>.mksysb \

                  -a source=resource name of machine to take mksysb \

               -a mk_image=yes \

               -a mksysb_flags='e'\

              -a exclude_files=osg-default_exclude \

              name of resource

   

How to make a NIM exclude file.

        nim -o define -t exclude_files \

                  -a server=master

              -a location=/export/nim/misc/osg-default.exclude \

              osg-default_exclude

   

How to define a script resource in NIM.

        nim -o define -t script \

              -a server=master \

              -a location=/export/nim/misc/<name of the resource>.sh \

              name of resource

   

How to define a firstboot script.

        nim -o define -t fb_script \

              name of the mksysb

   

How to remove a NIM resource.

        nim -o remove \

                -a rm_image=yes \

              name of the mksysb

   

Note that this process doesremove the mksysb file on disk.

Updating installed software

      nimclient -o cust \

                -a lpp_source=lpp source \

                -a installp_bundle=installp bundle