This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
aix:nim_command [2023/02/14 10:25] manu |
aix:nim_command [2024/06/18 14:20] (current) manu |
||
---|---|---|---|
Line 71: | Line 71: | ||
<cli prompt='#'> | <cli prompt='#'> | ||
# nim -o cust -a fixes=update_all -a lpp_source=aix7100-05-08-2114 spot_7100-05-06-2028 | # nim -o cust -a fixes=update_all -a lpp_source=aix7100-05-08-2114 spot_7100-05-06-2028 | ||
+ | </cli> | ||
+ | |||
+ | - **Define a SPOT from a directory that previously had a SPOT installed in it** | ||
+ | <cli prompt='#'> | ||
+ | # /usr/lpp/bos.sysmgt/nim/methods/m_mkspot -o -a server=server -a location=location -a source=no spotname | ||
</cli> | </cli> | ||
Line 231: | Line 236: | ||
</cli> | </cli> | ||
+ | We can verify connectivity: | ||
+ | <cli prompt='#'> | ||
+ | root@sentinel(/)# nim -o lslpp instlab163 | grep bos.mp | ||
+ | bos.mp64 7.2.4.0 COMMITTED Base Operating System 64-bit | ||
+ | </cli> | ||
==== On the NIM Master: ==== | ==== On the NIM Master: ==== | ||
To check the current system CPUID: | To check the current system CPUID: | ||
+ | <cli prompt='#'> | ||
root@sentinel(/)# uname -a | root@sentinel(/)# uname -a | ||
- | |||
AIX sentinel 2 7 00FB43B94C00 | AIX sentinel 2 7 00FB43B94C00 | ||
+ | </cli> | ||
To check the NIM Master definition: | To check the NIM Master definition: | ||
+ | <cli prompt='#'> | ||
root@sentinel(/)# lsnim -l master | grep -i cpuid | root@sentinel(/)# lsnim -l master | grep -i cpuid | ||
- | |||
cpuid = 00FB43C85B00 ß old/wrong CPUID | cpuid = 00FB43C85B00 ß old/wrong CPUID | ||
+ | </cli> | ||
To change the CPUID: | To change the CPUID: | ||
+ | <cli prompt='#'> | ||
# /usr/lpp/bos.sysmgt/nim/methods/m_chattr -a cpuid="new CPUID" master | # /usr/lpp/bos.sysmgt/nim/methods/m_chattr -a cpuid="new CPUID" master | ||
+ | </cli> | ||
Example: | Example: | ||
+ | <cli prompt='#'> | ||
root@sentinel(/)# /usr/lpp/bos.sysmgt/nim/methods/m_chattr -a cpuid="00FB43B94C00" master | root@sentinel(/)# /usr/lpp/bos.sysmgt/nim/methods/m_chattr -a cpuid="00FB43B94C00" master | ||
+ | </cli> | ||
To verify: | To verify: | ||
+ | <cli prompt='#'> | ||
root@sentinel(/)# lsnim -l master | grep -i cpuid | root@sentinel(/)# lsnim -l master | grep -i cpuid | ||
- | |||
cpuid = 00FB43B94C00 | cpuid = 00FB43B94C00 | ||
+ | </cli> | ||
+ | |||
+ | ===== Automaticaly restore AIX LPAR ===== | ||
+ | |||
+ | ==== Steps to install mksysb from NIM ==== | ||
+ | |||
+ | === On the NIM server === | ||
+ | |||
+ | Allocate required resource | ||
+ | <cli prompt='#'> | ||
+ | # nim -o reset -a force=yes $CLIENT_NAME | ||
+ | # nim -Fo deallocate -a subclass=all $CLIENT_NAME | ||
+ | # nim -o bos_inst -a source=mksysb -a mksysb=$MKSYSB -a spot=$SPOT -a accept_licenses=yes -a fb_script=$SCRIPTFB -a bosinst_data=$BOSINST_DATA -a boot_client=no $CLIENT_NAME | ||
+ | </cli> | ||
+ | |||
+ | Monitoring | ||
+ | <cli prompt='#'> | ||
+ | # nim -o showlog -a log_type=boot $CLIENT_NAME > $LOG | ||
+ | </cli> | ||
+ | |||
+ | === On the HMC === | ||
+ | |||
+ | Now boot the partition using a specific IP, and also give the NIM server IP to boot | ||
+ | <cli prompt='#'> | ||
+ | # Syntax | ||
+ | To retrieve a MAC address: | ||
+ | lpar_netboot -M -n [-v] [-x] [-f] [-i] [-A] -t ent [-D -s Speed-d Duplex -S Server -G Gateway -C Client -K | ||
+ | subnetmask] partition name partition profile manage system | ||
+ | |||
+ | To perform a network boot: | ||
+ | lpar_netboot [-v[-x] [-f] [-i] [-g args] [-A -D | [-D] -l phys_loc | [-D] -m maddress] -t ent [-D -s Speed-d | ||
+ | Duplex -S Server -G Gateway -C Client -K subnetmask partition_name partition_profile manage_system | ||
+ | |||
+ | </cli> | ||
+ | |||
+ |