# Define a NIM Network
# Add a NIM Network if the server being built is installed on a new network.
nim -o define -t ent -a net_addr=146.61.171.0 -a snm=255.255.255.0 -a routing1=default 146.61.171.254 171_network
# Define a Machine within NIM
# Edit hostname and network information for specific system being built.
nim -o define -t standalone -a if1="122_network hostname-pers 0 ent" -a cable_type1=tp -a platform=chrp -a netboot_kernel=mp hostname-pers
# Initiate a BOS Installation from NIM
# Utilizing an RTE LppSource edit specific system information.
nim -o bos_inst -a source=rte -a lpp_source=aix_5300-03 -a spot=aixspot_5300-03 -a no_client_boot=yes -a resolv_conf=resolv_conf -a accept_licenses=yes -a installp_flags=-cNgXY hostname
# Define a mksysb resource within NIM
# Create the mksysb resource on the NIM server for installation.
nim -o define -t mksysb -a server=master -a location=/export/mksysb/mksysb_hostname mksysb_hostname
# Remove a defined resource from within NIM
# Remove a NIM defined Resource.
nim -o remove mksysb_hostname
# Initiate an install from a mksysb
# Edit the server specific information to restore from a mksysb.
nim -o bos_inst -a spot=aixspot_5300-03 -a lpp_source=aix_5300-03 -a mksysb=mksysb_hostname -a resolv_conf=resolv_conf -a accept_licenses=yes -a no_client_boot=yes -a installp_flags=cNgXY hostname-pers
# Remove a defined machine within NIM
nim -o remove hostname-pers
# Reset and Deallocate all Resources on newly defined machine.
# Reset and deallocate if resources are previously allocated.
nim -o reset -a force=yes hostname-pers
nim -Fo deallocate -a subclass=all hostname-pers