AIX

AIX

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

 View Only
  • 1.  Nim customoization script - logging

    Posted Wed October 17, 2012 08:12 AM

    Originally posted by: robinsguk


    Hello,

    AIX 6.1.

    I specify a customization script to run after a nimP_bosinst using a mksysb which cleans up file systems etc. It doesn't appear to be executing as I'd expect using NIM.

    If I log in to the LPAR and run the script it works as designed.

    Does the nim server log the execution of the customization script anywhere so that I can investigate this?

    Thanks

    Glenn


  • 2.  Re: Nim customoization script - logging

    Posted Thu October 25, 2012 02:56 AM

    Originally posted by: teletype


    Did you make de bosinst and the script in the same nim statement like:
    
    nim -o bosinst -a script=<value> ... <standalone>
    

    Or dit you us two sepperate nim commands?
    Did you look in /var/adm/ras/nimlog (alog file)?
    Is the name resolving on the client correct after the bosinst?
    Maybe you can do an
    
    exec 1>/tmp/logfile exec 2>&1
    

    in the beginning of your script and a cat of that logfile at the end?

    Hope this helps


  • 3.  Re: Nim customoization script - logging

    Posted Thu October 25, 2012 02:59 AM

    Originally posted by: teletype


    You should cat it in a different session ofcource


  • 4.  Re: Nim customoization script - logging

    Posted Thu October 25, 2012 10:57 AM

    Originally posted by: mmveiga


    Glenn,

    Have you tried the "showlog" operation?

    
    nim -o showlog -a full_log=yes -a log_type=script CLIENT_HOSTNAME
    


    or

    
    nim -o showlog -a full_log=yes -a log_type=bosinst CLIENT_HOSTNAME
    

    Hope that helps,

    Marcelo.