This is just a listing of useful NIM commands I use, which I hope others will find useful.
Install the bos.rte.install fileset from your NIM server:
Preview:
/usr/sbin/nimclient -o cust -a lpp_source=LPP-AIX72TL1SP2 -a filesets=bos.rte.install -a installp_flags=-pacNYgX
Actual Install:
/usr/sbin/nimclient -o cust -a lpp_source=LPP-AIX72TL1SP2 -a filesets=bos.rte.install -a installp_flags=-acNYgX
Patch the server to AIX7.2 TL1 SP2, server must already be running AIX7.2.
Preview:
/usr/sbin/nimclient -o cust -a lpp_source=LPP-AIX72TL1SP2 -a fixes=update_all -a installp_flags=-pacNYgX
Actual Patching:
/usr/sbin/nimclient -o cust -a lpp_source=LPP-AIX72TL1SP2 -a fixes=update_all -a installp_flags=-acNYgX
Patching a specific set of files.
Generate a listing of filesets that are lower than the current known maintenance level.
KNOWN_OSLEVEL=$( oslevel -sq 2>&1 | tail +3 | head -1 )
oslevel -s -l ${KNOWN_OSLEVEL} 2>&1 | \
grep -e COMMITTED -e APPLIED | \
awk '{ print $1 }' | \
sort -u >> /tmp/filelist
Using NIM, we can install those filesets from above.
/usr/sbin/nimclient -o cust -a lpp_source=LPP-AIX72TL0SP0-DVD -a filesets=-f/tmp/filelist -a installp_flags=-acNgX
Then update them to the latest TL and SP:
/usr/sbin/nimclient -o cust -a lpp_source=LPP-AIX72TL1SP1 -a fixes=update_all -a installp_flags=-acNYgX
Create an LPP_SOURCE:
nim -o define -t lpp_source -a server=master -a location=/export/lpp_source/aix72_lpp -a comments="AIX 7.2 lpp source" aix72_lpp
Create a SPOT:
nim -o define -t spot -a server=master -a location=/export/spot -a comments="AIX 7.2 spot" aix72_spot
Create a MKSYSB definition from existing file:
nim -o define -t mksysb -a server=master -a location=/export/mksysb/aix72_mksysb -a comments="AIX 7.2 mksysb" aix72_mksysb
cannot access link 'how-to-configure-ibm-vnic