AIX

 View Only
  • 1.  alt_disk_mksysb customization scrip change IP Adress

    Posted Fri November 04, 2022 02:49 AM
    Edited by Tomas Michal Fri November 04, 2022 03:16 AM
    Hello,

    I need your help.

    I would like to play a mksysb image with alt_disk_mksysb to another hdisk.
    Now I want to specify a customization scrip  for the alt_disk_mksysb that performs the following actions.
    - other hostname
    - other IP address
    - other /etc/hosts

    The /etc/hosts is clear to me how to do this, but how do I set the hostname or (more important) a different IP address ?

    Other Idea, i running alt_disk_mksysb with the device reset option "-O" and running a first boot script (change inittab for the running after boot) or set the new ip konfig manually.

    Does anyone have an idea for the best way ?

    Greetings
    Tomas MIchal

    ------------------------------
    Tomas Michal
    ------------------------------


  • 2.  RE: alt_disk_mksysb customization scrip change IP Adress

    Posted Fri November 04, 2022 10:45 AM
    You should be able to use /usr/bin/mktcpip for this. Run man mktcpip for more information.

    ------------------------------
    Dave Marquardt
    Sr. Software Engineer
    IBM
    Austin TX
    ------------------------------



  • 3.  RE: alt_disk_mksysb customization scrip change IP Adress

    Posted Fri November 04, 2022 11:14 AM
    Hello

    thanks for your answer, my question was not about how to set the address on the host, rather how to do it on the alt_disk before booting the disk.
    The mktcpip does not write to the alt_disk, or is there a trick ? :-)

    The question came to me because i experimenting with the alt_disk_mksysb command.

    Tomas


    ------------------------------
    Tomas Michal
    ------------------------------



  • 4.  RE: alt_disk_mksysb customization scrip change IP Adress

    Posted Fri November 04, 2022 12:20 PM
    mktcpip will set these attributes AND put them in the inet0 object in ODM, so they will be used when booting. So you'll likely want to alt_disk_mksysb -s script and within the script run mktcpip. mktcpip is the script used in SMIT's Communications Applications and Systems -> TCP/IP -> Minimum Configuration & Startup to set these attributes both live and in ODM.

    ------------------------------
    Dave Marquardt
    Sr. Software Engineer
    IBM
    Austin TX
    ------------------------------



  • 5.  RE: alt_disk_mksysb customization scrip change IP Adress

    Posted Mon November 07, 2022 09:13 AM
    You can use alt_rootvg_op with a -C and a -s [script].

    The -C is against the active rootvg, so you need to wake it first: alt_rootvg_op -W

    And afterwards put it back to sleep before you change the boot sequence.

    ------------------------------
    mike measel
    ------------------------------