Nim201 Oct272024
Nim201 Oct272024
NIM 201
• Jaqui Lynch
• [email protected]
• Handout: https://www.circle4.com/ptechu/nim201-oct272024.pdf
ARTICLES
• Adventures with NIMADM
• https://techchannel.com/systems-management/nimadm-aix-v7-2-to-v7-3/
• Article from 2019 on Using NIM with VIO Servers
• http://www.circle4.com/jaqui/eserver/usingnimwithVIO-sep2019.pdf
• NIM Tips and Tricks (2017)
• https://www.circle4.com/jaqui/eserver/NIM-tipsandtricks-july2017.pdf
Agenda
• Introduction
• NIM Setup
• Working with mksysbs
• Useful Commands
• nimadm
• VIOS and NIM
• Hints and tips
1
10/27/2024
• https://www.ibm.com/docs/en/announcements/aix-enhancements-4q-
2024-aix-seee-private-cloud-ed-powerha?region=US
2
10/27/2024
More Setup
• Note – NIM does not like dot in resource names so use _
• Put AIX DVD in the DVD drive or replace /dev/cd0 below with the directory you have the BFFs
from the DVD loaded up to
• Setup NIM
nim_master_setup –B –a device=/dev/cd0 -a file_system=/nim -a volume_group=nimvg
Creates /tftpboot
Will not take a mksysb of the NIM server
Creates SPOT and lpp_source resources in /nim
Directory Structure:
/nim
/nim/lpp_source
/nim/images
/nim/spot
/nim/bosinst_data
/nim/resolv_conf
I use /nim/mksysb for migrating mksysb images
3
10/27/2024
# df -g /nim
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/lvnim 450.00 393.58 13% 69573 1% /nim
# cat /etc/inetd.conf
##
## service socket protocol wait/ user server server program
## name type nowait program arguments
##
bootps dgram udp wait root /usr/sbin/bootpd bootpd /etc/bootptab
tftp dgram udp6 SRC nobody /usr/sbin/tftpd tftpd –n
Note – I quite often keep these commented out and only uncomment when I am using NIM
4
10/27/2024
Make sure firewalls and routers allow these protocols to pass though
Create an LPPsource
nim -o define -t lpp_source -a server=master -a source=/usr/local/software/aix72/ aix72tl5sp8-2420-base -a packages=all -a
location=/nim/lpp_source/ lpp_72tl5sp8-2420 lpp_72tl5sp8-2420
You may need to use smitty to install bos.alt_disk_install.boot_images and bos.alt_disk_install.rte into the SPOT
10
10
5
10/27/2024
List resources
11
11
12
12
6
10/27/2024
Show resources
nim -o showres lpp_72tl04sp2 | grep bos.suma
bos.suma 7.2.0.0 I N usr,root
bos.suma 7.2.3.15 S N usr,root
13
13
# ls –l /nim/spot
drwxr-xr-x 3 bin bin 256 Jun 15 19:44 spot_72tl5sp8-2420
drwxr-xr-x 3 bin bin 256 Jun 16 12:18 spot_73tl2sp2-2420
drwxrwxr-x 3 root system 256 Mar 12 2022 spotvios313_14
drwxrwxr-x 4 root system 256 Jun 16 12:12 spotvios41021
#ls –l /nim/images
-rw-r--r-- 1 root system 8488089600 Apr 24 09:38 xxmksysb-apr2417
#ls –l /nim/mksysb
-rw-r--r-- 1 root system 8231219200 Apr 24 11:24 xxapr2417mksysb
-rw-r--r-- 1 root system 8440883200 May 04 15:37 xxmksysb-sep222024
14
7
10/27/2024
#lsvg -l nimvg
nimvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
lvnimlog jfs2log 4 4 2 closed/syncd N/A
lvtftp jfs2 10 10 2 open/syncd /tftpboot
lvnim jfs2 900 900 2 open/syncd /nim
loglv04 jfs2log 1 1 1 open/syncd N/A
15
15
16
16
8
10/27/2024
17
17
18
9
10/27/2024
19
20
20
10
10/27/2024
Image_data
• Template is /usr/lpp/bosinst/image.template
• Copy and modify
• Specify things like
• logical volume policy
• SHRINK=no
• EXACT_FIT=no
• lv_data: (an lv_data stanza for each logical volume in rootvg)
• COPIES= 1 ( or 2, 3 to mirror. make sure you have enough target disk stanzas in the bosinst_data
resource)
• LPs= nn (the number of logical partitions)
• PP= nn (if mirroring, this is an exact 2x or 3x of LPs)
• If you don't specify an image_data resource, NIM will use the file embedded in the mksysb image.
• Typical use of a "side" image.data file is when mksysb is mirrored, but the new install is to be nonmirrored,
or vice-versa.
21
21
For VIO:
nim -o define -t mksysb -a server=master -a location=/nim/images/vios41021-flash-mksysb_image
mksysb_vios41021
Grabbed the VIO 4.1.0.21 mksysb image off the Flash ISO downloaded from ESS
22
22
11
10/27/2024
mksysb Resources
#lsnim -l | grep mksysb
mksysb_vios41021:
type = mksysb
location = /nim/images/vios41021-flash-mksysb_image
23
23
24
24
12
10/27/2024
Tell NIM to use the AIX 7.2.5.8 mksysb for aix2 machine
smitty nim_bosinst
Select aix2
install source = mksysb_aix7258
select mksysb and spot as resources (also select the lpp)
Select yes to accept licenses
Select no to initiate now
Initiate now = no means this is a pull resource and must be initiated at the client
25
25
smitty nim_bosinst
I normally set
to yes
I normally set
to no
I normally set initiate reboot to no – if yes it will reboot immediately to do the install if it can 26
26
13
10/27/2024
27
27
Checks
• showmount –e
/nim/images/aix7258.mksysb aix2
/nim/lpp_source/lpp_72tl05sp8 aix2
/nim/spot/spot_72tl05sp8/spot_72tl05sp8/usr aix2
• # cat /etc/bootptab
aix2:bf=/tftpboot/aix2:ip=10.152.10.124:ht=ethernet:sa=10.152.10.203:sm=255.255.255.0:
28
28
14
10/27/2024
• ALLOCATIONS
• nim -o deallocate -a spot=spot_72tl05sp8 -a lpp_source=lpp_72tl05sp8 -a mksysb=mksysb_72tl05sp8 gandalf
• nim -o allocate -a spot=spot_72tl05sp8 -a lpp_source=lpp_72tl05sp8 -a mksysb=mksysb_72tl05sp8 gandalf
• OTHER
• To add the bos.games 7.2.0.0 and bos.terminfo filesets to lpp_source1, type:
• nim -o update -a packages="bos.games 7.2.0.0 bos.terminfo" -a source=/dev/cd0 lpp_source1
• To remove bos.games from lpp_source1, type:
• nim -o update -a rm_images=yes -a packages="bos.games" lpp_source1
• alt_rootvg_op
• https://www.ibm.com/docs/en/aix/7.3?topic=alt-rootvg-op-command
29
29
Backout
• If you have a machine enabled for install, and need to back out...
• nim -o reset –a force=yes <nimclienthostname>
• nim -Fo deallocate –a subclass=all <nimclienthostname>
• May need to fix cpuid after an LPM move or other server migration so cpuid reflects new
system
• Test as follows:
• On client
• uname –a
• Note CPUID – something like: 00CE48C04B00
• On NIM SERVER
• nim -o lslpp clientlparname | grep bos.mp
• Check /var/adm/ras/nimsh.log on client if it fails If last line is similar to:
• error: local value passed, '', does not match environment value '00CE48D04B00’
• Fix is to change the CPUID on the NIM LPAR as follows:
• nim -o change -a cpuid=00CE48D04B00
• Also make sure nimclient is running on the client
• lssrc -g nimclient
• If necessary: startsrc –g nimclient 30
30
15
10/27/2024
Pre-install Notes
• Aggregation and installs and restores
• You cannot easily install a VIO server from the HMC or from NIM if the network is aggregated
• Network installs are only normally supported over an access port connection
• This applies to installing any LPAR that has physical network ports that are aggregated
• One solution is a separate admin network on a single port that is used for installs
• Installing onto SAN disks
• The SAN team may need you to light up the adapters so they can do their zoning and mapping
• Lighting up WWPNs for a VIO or LPAR for zoning and mapping
• On the HMC go to the profile (action, profiles, manage profile then selct the profile)
Then virtual adapters
Check all the virtual fibre adapters (called client fibre channel)
Then actions, advanced, login/logout fibre
Click on login to log them all in or logout to logout any not being used
• http://www-01.ibm.com/support/docview.wss?uid=isg3T1024487
• Troubleshooting NIM LED Hangs
• http://www-01.ibm.com/support/docview.wss?uid=isg3T1012561
31
31
MPIO
• IBM is now recommending using the AIXPCM rather than SDDPCM. They have a
new MPIO best practices document at:
• https://developer.ibm.com/articles/au-aix-mpio/
• There is a good description of AIXPCM here:
• https://www.ibm.com/support/knowledgecenter/en/ssw_aix_72/com.ibm.aix.osd
evice/devmpio.htm
• Migration notes
• http://www-01.ibm.com/support/docview.wss?uid=ssg1S1010646
• Article on MPIO resiliency and problem determination
• https://developer.ibm.com/articles/au-aix-multipath-io-mpio/
32
32
16
10/27/2024
33
Next steps
• LPAR/Server should boot, and you should see tftp start up
• After around 30,000 to 50,000 packets the console prompt should appear
• Sometimes it goes through the tftp process twice
• Note make sure the mksysb you are using is not of a mirrored system – if it is mirrored then you will need to provide 2
disks to restore to or use a custom image_data file
• https://www.ibm.com/docs/no/aix/7.3?topic=resource-defining-image-data
34
34
17
10/27/2024
Continuing on
• During the reboot the install should start
• Monitor using lsnim –l lparname
• This will show you how far it has gone
• Or you can monitor reference codes on the HMC
• You can also ssh to the HMC and use vtmenu to get a console on the
LPAR so you can watch it boot
• After the system reboots you can import volume groups, remirror
rootvg (if on local disks) and perform further tailoring
35
35
Useful commands
• lsnim
• lsnim –l lparname
• nim -o reset –a force=yes clientnode
• nim -Fo deallocate –a subclass=all clientnode
• nim -o change -a cpuid="" clientnode
• bootlist -m normal –o (check bootlist)
• arp and ping
• oslevel –s
• Instfix
• showmount –e
• ls –al /tftpboot
• lsnim –c machines | resources | networks
• lsnim –t spot | lpp_source | mksysb | standalone …….
• lsnim –O resource - shows valid actions
• i.e. lsnim –O lpp7221
• nim –o check resource (i.e. spot, lpp, etc)
• nim –o check lpp7221
• nim –o lslpp clientlpar LPAR must be up
• nim –o lslpp aix2
36
36
18
10/27/2024
37
37
master - niminfo
#ls -l /etc/niminfo
-rw-r--r-- 1 root system 164 Dec 08 2016 /etc/niminfo
#cat /etc/niminfo
# nimconfig
export NIM_NAME=master
export NIM_CONFIGURATION=master
export NIM_MASTER_PORT=1058
export NIM_REGISTRATION_PORT=1059
export NIM_MASTER_HOSTNAME=aix1nim
38
38
19
10/27/2024
# ls -l /var/adm/ras/nim*
-rw-r--r-- 1 root system 342272 Dec 08 2016 /var/adm/ras/nim.setup
-rw-r--r-- 1 root system 131072 Sep 16 13:22 /var/adm/ras/nimlog
/var/adm/ras/nimsh.log nimsh log – check connection issues here
/var/adm/ras/nimlog general NIM log
alog -f /var/adm/ras/nimlog -o
Above shows failed NIM operations
39
39
• /etc/niminfo
• /etc/objrepos/nim_attr
• /etc/objrepos/nim_attr.vc
• /etc/objrepos/nim_object
• /etc/objrepos/nim_object.vc
• You can restore the NIM database and activate the NIM master using SMIT or the command line.
40
40
20
10/27/2024
Recovering /etc/niminfo
• /etc/niminfo is required on master and running NIM clients to run NIM operations and
commands
41
41
42
21
10/27/2024
Both migrations and updates can use alternate copies of rootvg if there is an unused disk available
Use nimadm for migrations, to install a down level mksysb and then migrate it or to install a new golden
image
43
43
Backup Tips
• /nim is a separate filesystem
• I take mksysbs to a separate filesystem that is an NFS directory exported
from my NIM server - /usr/local/backups or /backups
• When I want to use a mksysb image I copy it from /usr/local/backups to
/nim/images and create it as a mksysb resource
• This avoids issues around the way NIM exports mksysb images
• As an example
• If NIM exports a mksysb image only the file is exported to NFS clients
• However, if someone is taking a mksysb to that same directory the whole parent
directory is exported
• This will cause NFS errors, so it is best to keep them separate
• OR you can use the environment variable that will cause NIM to use subdirectories to
separate mksysb images
NIM_MKSYSB_SUBDIRS=yes
44
44
22
10/27/2024
nimadm
Creates a copy of rootvg to a free disk (or disks) and simultaneously migrates it to a new version or release level of
AIX.
Using a copy of rootvg, creates a new NIM mksysb resource that has been migrated to a new version or release
level of AIX.
Using a NIM mksysb resource, creates a new NIM mksysb resource that has been migrated to a new version or
release level of AIX.
Using a NIM mksysb resource, restore to a free disk (or disks) and simultaneously migrate to a new version or
release level of AIX.
Once upgraded mksysb is there you can either boot from it over the network or copy it to the client and use alt disk
install to restore the mksysb to the alt disk.
45
45
nimadm
Make sure bos.alt_disk_install.rte is installed into your spot or you will get error messages
Also make sure there are no errors in /etc/inittab or /etc/inetd.conf
You can add “-d hdisk3” to do the upgrade to an alternate disk (hdisk3)
46
46
23
10/27/2024
1. Using a copy of rootvg, create a new NIM mksysb resource that has been migrated to the new version or release level of AIX. You can restore
from this new upgraded mksysb later
#nimadm -T xxmksysb-apr2417 -O /nim/mksysb/xxmksysb-sep222024 -s spot_73tl2sp2-2420 -l lpp_73tl2sp2-2420 -j nimvg -Y -N
2. Use a copy of rootvg on the client to create an upgraded copy on the spare disk (source can also be a mksysb)
#nimadm -c gandalf -l lpp_73tl2sp2-2420 -s spot_73tl2sp2-2420 -d hdisk1 -Y -V
Flags:
-Y say agree to software licenses
-V is verbose mode
-N is when you provide a new mksysb name to use later
47
NIM Cloning
Clone rootvg to another disk – can use this for VIO servers as well as regular LPARs (current rootvg is hdisk0)
alt_disk_copy –V –B –d hdisk2 (if you add –B flag it does not set the bootlist but I still set it anyway)
bosboot –a –d hdisk0
bootlist –m normal –o Check what bootlist is now)
bootlist –m normal hdisk0
bootlist –m normal -o
IBM uses alt_disk_copy for their v3 and v4 VIO server upgrades under the covers
The clone and update will take place on altinst_rootvg while still running on rootvg
Boot from altinst_rootvg and test
Either reboot from old rootvg or make this the production one
If you don’t plan to reboot immediately then ensure the bootlist is set to the original rootvg hdisk
48
48
24
10/27/2024
49
49
#
# lspv
hdisk0 00f6934c642af030 rootvg active
hdisk1 none None
# lsdev -Ccdisk
hdisk0 Available Virtual SCSI Disk Drive
hdisk1 Available Virtual SCSI Disk Drive
#
# lslpp -l | grep bos.alt
bos.alt_disk_install.boot_images
bos.alt_disk_install.rte 7.1.4.30 COMMITTED Alternate Disk Installation
bos.alt_disk_install.rte 7.1.4.30 COMMITTED Alternate Disk Installation
50
50
25
10/27/2024
51
51
52
26
10/27/2024
# bootlist -m normal -o
hdisk0 blv=hd5 pathid=0
Phase 1 Creates the altinst_rootvg volume group, the alt_ "logical volumes", the /alt_inst file
systems, and restores the mksysb or rootvg data.
Phase 2 Runs any specified customization script, installs updates, new filesets, fixes or
bundles (cloning only), copies a resolv.conf file if specified, and copies files over to
remain a NIM client if specified.
Phase 3 Unmounts the /alt_inst file systems, renames the file systems and logical volumes,
removes the alt_ logical volumes, names ODM and varies off the altinst_rootvg. It sets
the bootlist and reboots if specified.
53
53
54
54
27
10/27/2024
# lspv
hdisk0 00f6934c642af030 rootvg active
hdisk1 00f6934c75816830 altinst_rootvg 55
55
56
56
28
10/27/2024
Allows you to copy the running system and apply maintenance in one step
After reboot the prior rootvg will be named old_rootvg
Use alt_rootvg_op to remove it later
Use bootlist to go back if needs be
OR
alt_disk_copy –V –B –d hdisk2
Above just copies rootvg across to hdisk2
https://www.ibm.com/docs/en/aix/7.2?topic=alt-disk-copy-command
57
57
If not rebooting migrated image immediately then make sure to set the bootlist to the original rootvg
This works for 7.1 to 7.3 or 7.2 to 7.3 as well
58
58
29
10/27/2024
listvgbackup
59
59
60
60
30
10/27/2024
61
61
62
62
31
10/27/2024
63
64
64
32
10/27/2024
65
65
66
66
33
10/27/2024
NIM viosupgrade
• The viosupgrade command on NIM is different to the one on the VIO server
• http://www.ibm.com/support/knowledgecenter/ssw_aix_72/com.ibm.aix.cmds6/viosup
grade.htm
• https://www.ibm.com/docs/en/aix/7.3?topic=v-viosupgrade-command
• Use to perform bosinst upgrade
• Use to perform alternate disk upgrade
• viosupgrade –q –n hostname to check
• Backups up the virtual and logical configuration data
• Performs a new and complete VIOS installation from the VIOS image
• Restores the virtual and logical configuration
• Can specify bosinst (current disk) or altdisk
• VIOS to be upgraded must be at least 2.2.6.30 (2.2.6.32 if SSPs) to upgrade to V3
• 2.2.6.32 is where I start all my VIOS to 3.1 upgrades
• For VIOS 4.1.0.21 NIM master must be at AIX 7300-02-02
• VIOS 3.1.0 and higher can be upgraded to 4.1.0.21 using the flash image
67
67
68
68
34
10/27/2024
• #mkdir /backups/viosa
• You can also back it up as a mksysb file that is easy to restore from the NIM server
• $backupios -file /backups/viosa.mksysb –mksysb -nomedialib
• You can also backup your VIOS virtuals and your VIO server to the HMC if the HMC is fairly recent (950 or higher)
• The nim_resources.tar file contains all the necessary resources to restore the Virtual I/O Server, including the mksysb image, the bosinst.data
file, the network boot image, and SPOT resource.
• The NFS export should allow root access to the Virtual I/O Server, otherwise the backup will fail with permission errors.
69
69
NOTES
The above can be put in root’s crontab to run regularly
Creates both the NIM resources and a full mksysb file
Don’t forget to set up an NFS mount of /usr/local/backups to the VIO from your NIM or NFS server
Do not allow ANY NFS mount to mount automatically at boot in case the NIM or NFS server is down at the time of boot
Also, regularly grab an HMCScanner report
https://www.ibm.com/support/pages/node/1117515
https://www.ibm.com/support/pages/system/files/inline-files/hmcScanner-0.11.54.zip
70
70
35
10/27/2024
15 of 15 files (100%)
0512-038 savevg: Backup Completed Successfully.
Backup in progress. This command can take a considerable amount of time
to complete, please be patient...
$
# ls -al viosa
total 44300704
drwxr-xr-x 2 root staff 256 Oct 09 23:32 .
drwxr-xr-x 4 root system 4096 Oct 09 22:42 ..
-rw-r--r-- 1 root staff 22678507520 Oct 09 23:32 nim_resources.tar
# du -sg viosa
21.12 viosa
But I saw it get as big as 40GB during the process
If you use smitty mksysb then you can check if it ran by checking smit.log – usually in /home/padmin on VIO
#tail -20 /home/padmin/smit.log
71
71
72
72
36
10/27/2024
Don’t forget to use your viosbr to restore your virtual devices as needed.
73
73
74
37
10/27/2024
75
76
76
38
10/27/2024
Clean up vio1 removing any extra hdisks, pdisks, pci, sissas1, etc that now show as defined. Also remove the adapter definitions for them.
Reboot vio1 to ensure changes are good
alt_disk_copy -O
Performs a device reset on the target altinst_rootvg. This causes the alternate disk install to not retain any user-defined device configurations. This flag is useful if the target disk or
disks become the rootvg of a different system (such as in the case of logical partitioning or system disk swap).
The above flag on the copy helps avoid much of the cleanup
77
77
You need to install Ansible on all NIM clients so that Ansible runs playbooks on the NIM clients locally.
The necessary RPMs can be found in the AIX Toolbox and can be installed using dnf
You will also need to install the ibm.power-aix collection from Ansible Galaxy
The following article cover how to install rpms using a NIM master
https://www.ibm.com/support/pages/how-install-rpms-using-nim-
master?utm_source=ibm_developer&utm_content=in_content_link&utm_id=tutorials_awb-run-
ansible-playbooks-from-aix-nim&cm_sp=ibmdev-_-developer-tutorials-_-ibmcom
78
39
10/27/2024
Uninstalling NIM
• nim –o unconfig master
• installp –u bos.sysmgt.nim.master
• Note: the NIM master must be unconfigured before you can uninstall the
master fileset
79
79
The above change causes NIM to only grant root access to target hosts
Still have to obey NFS limitation of 256 hostnames in a root exports file entry
You can change this back easily by reissuing the command changing no to yes
80
80
40
10/27/2024
Suppressing output
• Use show_progress=no to suppress progress messages
• nim -o cust -a show_progress=no -a lpp_source=images1 \ -a
fixes=update_all Standalone1
81
81
82
82
41
10/27/2024
Problems
• Step 1 – bootp makes initial communication and talks to the client
• Step 2 – after successful bootp tftp is used for transfer of boot image.
• U0608 – usually a bootp or tftp problem
• Bootp Issues
• Ensure bootp is active in /etc/inetd.conf
• lssrc –ls inetd
• Ensure /etc/bootptab entries are correct
• Check GW setting on the NIM machine definition as well as on the SMS boot setting
• Check all IP addresses specified
• To run bootpd in debug mode:
1. Comment out the bootps entry from the /etc/inetd.conf file on the server.
2. Stop all running bootpd processes (ps -ef | grep bootp –> kill -9 ..)
3. Restart inetd using the refresh -s inetd command.
4. Start bootpd from the command line, using the /usr/sbin/bootpd -s -d -d -d command (output will be on the screen)
• Tftpd Issues
• Check /etc/tftpboot to make sure .info files are there for the machine
• cat /etc/tftpaccess.ctl make sure /tftpboot is allowed
• lssrc –ls tftpd make sure it is active
• To run tftpd in debug mode – add –v to startup in /etc/inetd.conf and entries will go to SYSLOG at the info
level
• Make sure tftp and bootp are allowed through any firewalls
83
83
84
84
42
10/27/2024
Useful Links
• HMC Scanner
• https://www.ibm.com/support/pages/node/1117515
• alt_disk_install
• https://www.ibm.com/docs/en/aix/7.2?topic=alt-disk-install-command
• alt_rootvg_op
• https://www.ibm.com/docs/en/aix/7.2?topic=alt-rootvg-op-command
• alt_disk_copy
• https://www.ibm.com/docs/en/aix/7.2?topic=alt-disk-copy-command
• alt_disk_mksysb
• https://www.ibm.com/docs/en/aix/7.2?topic=alt-disk-mksysb-command
85
85
86
86
43
10/27/2024
Handout at:
https://www.circle4.com/ptechu/nim201-oct272024.pdf
87
87
NIM Layout
From: https://aix4admins.blogspot.com/2011/05/nim-database-nim-database-is-stored-in.html
Also look at: https://aix4admins.blogspot.com/2013/07/bootpd-this-is-initial-communication.html 88
88
44
10/27/2024
NIM Resources
• Machines
• These are the clients
• lpp_source
• The lpp_source (Licensed Program Product source) directory contains the images that AIX uses to load
software. These are typically the BFF (backup file format) images that exist on the AIX installation CDs or
DVD. Each OS version should have its own lpp_source. Additionally these should be separated into 32-
bit and 64-bit lpp_source sets.
• SPOT
• The SPOT (Shared Product Object Tree) is a directory that is created from the lpp_source. The SPOT is
used in a similar fashion to the boot images and installation scripts on the Base installation CD volume 1
for AIX. It may be necessary to create multiple SPOTs depending on the maintenance levels and
versions that need to be supported.
• mksysb
• The NIM master can use lpp_source to install an instance or it can install the instance from a mksysb of
either that instance or another one. Once the mksysb is restored a script can be run automatically to
customize the instance .
89
89
Nim Commands
• nim –o operation –a attribute=value …. • alt_disk_install
Targetname(s) • Install to an alternate disk to current rootvg
• cust • bos_inst
• Install filesets or updates on clients or SPOT • Install AIX on a client
resources • change
• sync • Modify NIM object attributes
• Sync NIM database with an alternate master • check
• fix_query • Verify usability of a NIM resource or machine
• Check fix status on a client • chwpar
• maint • Change characteristics of a WPAR
• Uninstall filesets and commit or reject updates on • allocate or deallocate
a client or SPOT • Allocate or deallocate resources to a client
• maint_boot • define
• Boot client into maintenance mode • Create networks, machines or resources
• reboot • diag
• Reboot a NIM client • Netboot client into diagnostic mode
• lppchk • remove
• Verify software installed correctly • Remove objects from the NIM environment
• lppmgr • reset
• Helps manage base install images and update • Reset the state of a client or resource
images in an lpp_source • takeover
• activate or deactivate • Allow alternate_master to take control
• Start or stop a managed system • unconfig
• showlog • Unconfigure the NIM environment
• List software installed on a client or SPOT • showres
• update • lslpp
• Update the lpp_source by adding or removing
packages
• updateios
• Update and customize the VIO server
90
90
45