Network Installation Manager # lsnim -t Define a new ent network:
[standalone|lpp source|spot|install bundle|scripts|ent|..] # nim -o define -t ent -a net addr=10.10.20.0 -a
Cheat Sheet Full details on an object: snm=255.255.254.0 -a routing1=”default 10.10.21.254” # lsnim -l lpar1 # lsnim -Fl lpar1 10-10-20-0-s23-net List supported operations on an object: # lsnim -O lpar1 deallocate reset Main terms List attributes required for a specific operation: Deallocate all resources on a client: # lsnim -q operation object # lsnim -q define lpar1 # nim -o deallocate -a subclass=all lpar1 machine A machine managed by NIM. master (NIM it- # nim -Fo deallocate -a subclass=all lpar1 self), alternate master (its backup), and stan- lpp source Reset a nimclient: dalone (NIM Client). lpp_source creation: # nim -o reset lpar1 networks Definition of networks (mask, gateway, name) # nim -o define -t lpp source -a server=master -a # nim -Fo reset lpar1 used by NIM and its clients. location=/export/nim/lpp source/6100-08-02-1316-lpp source lpp_source AIX Licensed Program Products (LLPs) in Others 6100-08-02-1316-lpp source Backup File Format (BFF) format. lpp_source update: Create an mksysb: spot Shared Product Object Tree : directory of in- # nim -o update -a packages=all -a source= # nim -o define -t mksysb -a server=master -a stalled fileset used by client booting procedure. /export/nim/lpp source/new filesets mk image=yes -a mksysb A resource containing the image of the root 6100-08-02-1316-lpp source location=/export/nim/mksysb/lpar1/lpar1-mksysb -a volume group. List duplicate base and update filesets source=lpar1 lpar1-mksysb bosinst_data Specifications file used for restoring sys- and superseded updates: installp_bundle creation: tem backup images (INSTALL METHOD, # nim -o lppmgr -a lppmgr flags=”-lsb” A NIM installp bundle is a file that contains the names of PROMPT, ..). 6100-08-01-1245-lpp source filesets that should be installed or remove by a NIM operation. script Executable file used for customization. (fb - Remove duplicate base and update filesets 1. installp bundle file creation, I for filesets, R for RPM : script, postinstall). and superseded updates : # cat openssh server.bnd ... # nim -o lppmgr -a lppmgr flags=”-rbux” I:openssl.base Installation 6100-08-01-1245-lpp source I:openssl.license Filesets: bos.sysmgt.nim.master bos.sysmgt.nim.spot Remove all non-simages filesets: I:openssl.man.en US bos.sysmgt.nim.client # nim -o lppmgr -a lppmgr flags=”-rX” I:openssh.base.server Filesystems recommandation: 6100-08-01-1245-lpp source I:openssh.man.en US Remove all language support except ’C’: 2. installp bundle creation : • /export/nim/lpp source # nim -o lppmgr -a lppmgr flags=”-l -k C” # nim -o define -t installp bundle -a server=master -a loca- 6100-08-01-1245-lpp source tion=/export/nim/others/installp bundle/openssh server.bnd • /export/nim/spot Rename bff files with filetset names: openssh server-installp bundle • /export/nim/scripts # bffcreate -c -d /filets/path 3. install the bundle with a cust operation; • /export/nim/backups - for NIM database backups # nim -o cust -a lpp source=7100-02-02-1316-lpp source -a spot installp flags=agXY -a • /export/nim/mksysb Create a spot from lpp_source: installp bundle=openssh server-installp bundle lpar1 • /tftpboot # nim -o define -t spot -a source=6100-08-02-1316-lpp source Copy AIX CD image to NIM: -a location=/export/nim/spot/6100-08-01-1245-spot -a # loopmount -i 6100-06cd1.iso -o ”-V cdrfs -o ro” -m First configuration: server=master 6100-08-02-1316-spot /tmp/cd1 # nimconfig -a pif name=en0 -a master port=1058 -a Create a spot from an mksysb: # gencopy -d /tmp/cd1 -t netname=vlan2-net -a cable type=N/A # nim -o define -t spot -a source=lpar1-mksysb -a /export/nim/lpp source/6100-06-01-0000-lpp source all Enable ssl support: location=/export/nim/spot/lpar1-spot -a server=master Installing ifix using nim: # nimconfig -c lpar1-spot List filesets in a spot: 1. Create emgr/ppc direcotries into lpp source location : Rebuild /etc/niminfo: # nim -o showres lpar1-spot # ls emgr/ppc # nimconfig -r VIOS 2.2.2.1 IV31624.121114.epkg.Z check VIOS 2.2.2.1 IV32091.121116.epkg.Z Querying All NIM resources can be checked with the check operation. 2. Create or update lpp source with ifixes. List classes: Use it every time an lpp source or a spot is created. 3. install fix with a cust operation : # lsnim -p Check an lpp_source: # nim -o cust -a List object by classe: # nim -o check 7100-02-02-1316-lpp source filesets=VIOS 2.2.2.1 IV32091.121116.epkg.Z -a # lsnim -P -c classe # lsnim -P -c machines Check a spot: lpp source=vios2221-lpp source vios1 List supported operations by object type: # nim -o check 7100-02-01-1316-spot Backup NIM database: # lsnim -P -t object type -O # lsnim -P -t standalone -O # /usr/lpp/bos.sysmgt/nim/methods/m backup db Display by class: network nim database bckp Restore NIM database # lsnim -c [machines|networks|resources] List networks: # /usr/lpp/bos.sysmgt/nim/methods/m restore db Display by object type: # lsnim -c networks # lsnim -t ent nim database bckp nimclient DSM Get MAC address: NIM master and alternate NIM master must be resolved and filesets: dsm.core dsm.dsh expect.base tcl.base tk.base # dgetmacs -n lpar1 -C NIM inverse resolved from all the nimclients. Logs files can be X11.apps.xterm X11.apps.aixterm Define standalone object with management profile: found in /var/adm/ras/nimsh.log and /var/adm/ras/nimlog. logging: # nim -o define -t standalone -a if1=”10-10-20-0-s24-net Reconfigure nimclient: lpar2 00AABBCCDDEE” -a net settings1=”auto auto” -a • doc: /opt/ibm/sysmgt/dsm/doc/dsm tech note.pdf mgmt profile1=”hmc1 4 CEC1” lpar2 # niminit -a name=$(hostname) -a master=nim master -a master port=1058 -a registration port=1059 -a • conf file: /etc/ibm/sysmgt/dsm/dsm.properties dconsole: connect=nimsh • dgetmacs, dkeyexch, dnetboot log: Open a text console in read-write mode: If nimsh is secured by ssl: /var/ibm/sysmgt/dsm/log # dconsole -C NIM -n lpar1 -t -l # nimclient -c Open an xterm console in read-write mode: • dsconsole log: /var/ibm/sysmgt/dsm/log/console/ Get certificates from alternate NIM master: # dconsole -C NIM -n lpar1 -l • lpar netboot log: /tmp Open a text console in read-only mode: # nimclient -o get cert -a master name=nim alternate Restart nimsh: Hardware Management Console: # dconsole -C NIM -n lpar1 -t -l -r # startsrc -s nimsh 1. Password file creation: reboot the machine: # stopsrc -s nimsh # dpasswd -f hmc passwd file -U hscroot # nim -o reboot -a inst warning=yes -a open console=yes 2. Key exchange: lpar1 boot in maintenance mode maint_boot: hanim # dkeyexch -f /etc/ibm/sysmgt/dsm/config/hmc passwd file # nim -o maint boot -a spot=7100-02-02-1316-spot -a NIM master and alternate NIM master must be at the same -I hmc -H hmc hostname boot client=yes -a open console=yes lpar1 oslevel. 3. NIM object: bos_inst rte installation Enable alternate NIM master: # nim -o define -t hmc -a if1=”find net hmc hostname 0” -a # nim -o bos inst -a # nimint -a is alternate=yes -a master=nim master -a passwd file=/etc/ibm/sysmgt/dsm/config/hmc passwd file bosinst data=hdisk0 noprompt-bosinst data -a source=rte -a pif name=en0 -a cable type=N/A -a connect=nimsh -a hmc hostname installp flags=agX -a accept licenses=yes -a open console=yes name=nim alternate Database synchronisation: CEC: -a spot=7100-02-02-1316-spot -a # nim -o sync -a force=yes alternate nim master 1. Get hw type, hw model, hw serial trough HMC # ssh lpp source=7100-02-02-1316-lpp source lpar1 Database synchronisation and resource replication: hscroot@hmc hostname ”lssyscfg -r sys -F # nim -o sync -a force=yes -a replicate=yes name,type model,serial num” Last update 22/02/2013 alternate nim master 2. NIM object: This document is licensed under a Creative Commons Takeover: # nim -o define -t cec -a hw type=8203 -a hw model=E4A -a Attribution-ShareAlike3.0 Unported License. # nim -o takeover -a show progress=yes nim master hw serial=060CE99 -a mgmt source=hm hostname cec1 http://www.chmod666.org/