AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
Expand all | Collapse all

How to use post_i in a bff package

  • 1.  How to use post_i in a bff package

    Posted Thu July 28, 2011 11:19 AM

    Originally posted by: GoutamPradhan


    Hi All,

    I've created a .bff file with a post_i, but while installing, it seems that it uses the post_i for sometime but by the time it complete the installation, it revoke the effect of post_i.

    So I would like to know, how I can use post_i file in bff
    and can I execute only the post_i file once my package installed properly, seperately.

    please give me some example with some sample files.

    Thanks a ton in advance


  • 2.  Re: How to use post_i in a bff package

    Posted Sun August 21, 2011 07:49 AM

    Originally posted by: robint


    Hi
    We produce a lot of BFFs but use a lot of home grown tools, so I may miss your problem. You probably know this but ....

    When the package installs, the pre_i.sh can contain instructions to prepare for the load of the "file content" of your package. For example to shutdown a DB. When the pre phase completes, the payload of the package is loaded and the post_i script phase is run. This contains, obviously, post operations, such as restarting a DB.
    If the post_i should exit with non-zero, then the unpost_i.sh script is run. The payload files are removed and replaced with originals and the unpre_i.sh is run.

    Is your package/BFF actually applying or is it rolling off with failure? If it is applying then the observation must be that either the post_i is not actually running at all or not running correctly but exiting with zero.
    Depending on how many files are in you package, there could be a delay as the post phase runs while the TCB is updated etc. Maybe you are not observing the post_i running, but the TCB delay?

    Something to think about at least!

    Rob