NIM Nutshell
NIM Nutshell
NIM Nutshell
19-April-2006
Check for Updates
NIM Absolutes:
¾ The NIM Master must always be at the highest AIX & TL (formerly MLs) of
any of its clients.
¾ Do not use dots or special characters in any of the NIM panels (aside from
the IPaddr fields).
¾ Hostname resolution between the NIM Master and NIM Clients must be
reliable and must resolve short names and long names in both directions.
The vast majority of NIM “problems” are TCP/NIS/DNS/routing configuration
problems. If you’re having problems; please, verify your network config.
Install the NIM server with AIX V5.3 OS and whatever LPPs are desired.
bos.net.tcp.server
bos.net.nfs.server
bos.sysmgt.nim.master
bos.sysmgt.nim.spot
hosts=local,bind
YPBIND_MAXWAIT=30
# no –p –o rfc1323=1
# no –p –o tcp_recvspace=65536
# no –p –o tcp_sendspace=65536
# no –p –o ipignoreredirects=1
# no –p –o tcp_pmtu_discover=0
# no –p –o udp_pmtu_discover=0
/export/aix53ml4sp1
/export/mksysb
/export/res
# mount /export/aix53ml4sp1
# cd /export/aix53ml4sp1
# mkdir lppsource
# mkdir spot
# mount /export/mksysb
# mount /export/res
# smitty nim
# smitty bffcreate
If you have copied [all] the software packages, you probably have many
items that you do not need. If so, now is the time to delete the unwanted
images.
# cd /export/aix53ml4sp1/lppsource/installp/ppc
# rm *OpenGL*
# rm *PEX*
etc … other good candidates are many of the foreign language filesets.
# inutoc .
# smitty nim
# smitty nim
For new installations, I clone the NIM Master Itself. While this may seem odd, it
saves me the time of having to build a gold client from CDs. This may (not?) be
appropriate for you specific circumstances.
If there are files and/or filesystems in rootvg that you do not want captured in the
mksysb image; edit the file /etc/exclude.rootvg
For sites that are getting their first AIX system, I use the NIM Master itself to
create the “gold” mksysb image. Of course; I don’t want all the clones to
have all the NIM-stuff, so my /etc/exclude.rootvg file typically contains:
# cat /etc/exclude.rootvg
/export/mksysb
/export/aix53ml4sp1
/export/res
/smit.log
/smit.script
# errclear 0
# cd /var/adm/ras
# >nim.script
# >suma.log
# >bootlog
# >nimlog
# >conslog
# >nimsh.log
# >bosinstlog
# >devinst.log
# >nim.installp
# smitty nim
This step is likely to fail (it’s okay) because there is not (yet) enough free
space in the /export/mksysb filesystem. Really; it’s okay if it fails … because
the error message will tell you the amount of space that is needed in
/export/mksysb
Simply open another window on the NIM Master and use smitty fs to expand
the size of /export/mksysb. Once the filesystem is expanded, close this
window.
Return to the prior window (the one with the “Failed” message); press F3 to
backup one panel … and press <Enter> to re-execute the panel.
# smitty nim
You must unexport any of the NIM directory structure you have exported by hand
# showmount -e
# smitty nim_bosinst
> Select the SPOT that the client will use to network-boot.
> spot_aix53ml4sp1
installp Flags
COMMIT software updates? [yes]
SAVE replaced files? [no]
AUTOMATICALLY install requisite software? [yes]
EXTEND filesystems if space needed? [yes]
OVERWITE same or newer versions? [no]
VERIFY install and check file sizes? [no]
ACCEPT new license agreements? [yes]
(AIX V5 & higher machines & resources)
Preview new LICENSE agreements? [no]
# lsnim -l target
target:
class = machines
type = standalone
connect = shell
platform = chrp
netboot_kernel = mp
if1 = install_network target 0
cable_type1 = tp
Cstate = BOS installation has been enabled
prev_state = ready for a NIM operation
Mstate = not running
Boot = boot
lpp_source = lppsource_aix53ml4sp1
mksysb = gold_aix53ml4sp1
nim_script = nim_script
spot = spot_aix53ml4sp1
control = master
# lsnim -l lppsource_aix53ml4sp1
lppsource_aix53ml4sp1:
class = resources
type = lpp_source
arch = power
Rstate = ready for use
prev_state = unavailable for use
location = /export/aix53ml4sp1/lppsource
simages = yes
alloc_count =1
server = master
If you have a system enabled for installation and need to back out:
Select: Execute Ping Test (Hint: Notice the “1” towards the bottom of the screen).
You must successfully complete this step.
Select: Network
Select: Yes; you are sure that you want to exit System Management Services
You will see the (SMS) “IBM IBM IBM IBM” logo screen race by and the system will
begin broadcasting BOOTP requests. The typical network boot/install kernel is
~12MB …
Once the network boot/install kernel is running; proceed to answer the AIX
installation dialogs as you would when performing a regular installation from CDs.
Push & Install Maintenance (.BFFs) From the NIM Master to NIM Clients
Remember! The NIM Master must be at the highest AIX PTF level of all the clients;
therefore, we must first update our NIM Master.
# smitty install
# smitty nim
Select: The client that you wish to update and press <Enter>
# smitty nim
Select: The client that you wish to update and press <Enter>
It is very wise to re-create the mksysb of the client (that is storerd on the NIM
Master). Otherwise; if you ever need to re-install the client, you won’t have a
mksysb of the client.
# smitty nim
-OR-
System Backup Image Creation Options:
CREATE system backup image: [yes] (use PF4)
NIM CLIENT to backup [target] (use PF4)
PREVIEW only? [no]
IGNORE space requirements? [no]
EXPAND /tmp if needed? [yes]
Create MAP files? [no]
Number of BLOCKS to write in a single output []
(leave blank to use system default)
Use local EXCLUDE file? [yes]
(specify no to include all fiels in backup)
-OR-
EXCLUDE_FILES resource []
(leave blank to include all files in backup)
This step is likely to fail (it’s okay) because there may not (yet) be enough
free space in the /export/mksysb filesystem. Really; it’s okay if it fails …
because the error message will tell you the amount of space that is needed in
/export/mksysb
Simply open another window on the NIM Master and use smitty fs to expand
the size of /export/mksysb. Once the filesystem is expanded, close this
window.
Return to the prior window (the one with the “Failed” message); press F3 to
backup one panel … and press <Enter> to re-execute the panel.
Get the PID of the process running on a socket: rmsock fl0006000018e600 inpcb