AIX

AIX

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


#Power
 View Only
  • 1.  lpp install works via smit, but not outside of smit

    Posted Thu August 13, 2009 09:36 AM

    Originally posted by: SystemAdmin


    Hi all,

    I am used to extract commands from smit.script for use in my own automation scripts. Worked fine so far. Now, with "smit nim_inst_latest", i have a command that works from smit, but fails when I use it outside of smit.

    there is a script /usr/lpp/bos.sysmgmt/nim/methods/m_sm_nim being executed which fails with parameter errors when I execute it outside of smit (copy-paste 1 line from smit.script). see below

    What is missing here? Any hints?

    thanks for your input

    --

    {code}
    /usr/lpp/bos.sysmgt/nim/methods/m_sm_nim cust -I -t host -l lpps -o package_name ALL @@I:package_name _all_filesets -f -f c -f N -f g -f X -f -f -f -f
    0042-001 nim: processing error encountered on "master":
    0042-001 m_showres: processing error encountered on "master":
    0042-175 c_showres: An unexpected result was returned by the "/usr/lib/instl/sm_inst" command:
    0503-111 geninstall: option -d is required.
    Usage geninstall: Install software from device.
    geninstall -d <media>

    -T <ResponseFileTemplate>
    -e <LogFile> -p -F -Y -Z -D
    { -f <file> | <install_list...> | all }

    Usage geninstall: Uninstall software.
    geninstall -u -e <LogFile>
    -T <ResponseFileTemplate>
    -D { -f <file> | <uninstall_list...> }

    Usage geninstall: List installable software on device.
    geninstall -L -d <media> -e <LogFile> -D
    0042-231 m_sm_nim: Unable to generate the formatted list of software
    to install.
    #AIX-Forum


  • 2.  Re: lpp install works via smit, but not outside of smit

    Posted Thu November 04, 2010 02:06 PM

    Originally posted by: Gabriel.Menini


    > Delgado wrote:
    > Hi all,
    >
    > I am used to extract commands from smit.script for use in my own automation scripts. Worked fine so far. Now, with "smit nim_inst_latest", i have a command that works from smit, but fails when I use it outside of smit.
    >
    > there is a script /usr/lpp/bos.sysmgmt/nim/methods/m_sm_nim being executed which fails with parameter errors when I execute it outside of smit (copy-paste 1 line from smit.script). see below
    >
    > What is missing here? Any hints?

    I don't know why hasn't answered yet.

    Nobody scripts out this procedure? I want to run the /usr/lpp/bos.sysmgmt/nim/methods/m_sm_nim line in a script including a bunch of LPARs and have the same error.

    >
    > thanks for your input
    >
    > --
    >
    > {code}
    > /usr/lpp/bos.sysmgt/nim/methods/m_sm_nim cust -I -t host -l lpps -o package_name ALL @@I:package_name _all_filesets -f -f c -f N -f g -f X -f -f -f -f
    > 0042-001 nim: processing error encountered on "master":
    > 0042-001 m_showres: processing error encountered on "master":
    > 0042-175 c_showres: An unexpected result was returned by the "/usr/lib/instl/sm_inst" command:
    > 0503-111 geninstall: option -d is required.
    > Usage geninstall: Install software from device.
    > geninstall -d <media>
    >
    > -T <ResponseFileTemplate>
    > -e <LogFile> -p -F -Y -Z -D
    > { -f <file> | <install_list...> | all }
    >
    > Usage geninstall: Uninstall software.
    > geninstall -u -e <LogFile>
    > -T <ResponseFileTemplate>
    > -D { -f <file> | <uninstall_list...> }
    >
    > Usage geninstall: List installable software on device.
    > geninstall -L -d <media> -e <LogFile> -D
    >
    >
    > 0042-231 m_sm_nim: Unable to generate the formatted list of software
    > to install.
    #AIX-Forum


  • 3.  Re: lpp install works via smit, but not outside of smit

    Posted Fri November 05, 2010 09:10 AM

    Originally posted by: esv


    > Gabriel.Menini wrote:
    >
    > I don't know why hasn't answered yet.
    >
    > Nobody scripts out this procedure? I want to run the /usr/lpp/bos.sysmgmt/nim/methods/m_sm_nim line in a script including a bunch of LPARs and have the same error.
    >

    Gabriel,
    Nobody here is required to answer anything, if you have such an urgent requirement to use this process open the script and follow it and see where the script is failing to use the correct flags or open a service call with IBM.

    best regards,
    enrique.
    #AIX-Forum


  • 4.  Re: lpp install works via smit, but not outside of smit

    Posted Fri November 05, 2010 10:25 AM

    Originally posted by: Gabriel.Menini


    > esv wrote:
    > > Gabriel.Menini wrote:
    > >
    > > I don't know why hasn't answered yet.
    > >
    > > Nobody scripts out this procedure? I want to run the /usr/lpp/bos.sysmgmt/nim/methods/m_sm_nim line in a script including a bunch of LPARs and have the same error.
    > >
    >
    > Gabriel,
    >
    >
    > Nobody here is required to answer anything, if you have such an urgent requirement to use this process open the script and follow it and see where the script is failing to use the correct flags or open a service call with IBM.

    Enrique,

    I certanly do know how forums works.

    IMHO, quite a simple question about scripting the deployment of a package on multiple servers seems a rutine task and was wondering how sysadmins perform it in a successfully way.
    Anyway... Thanks for pointing me to researching the /usr/lpp/bos.sysmgmt/nim/methods/m_sm_nim script.

    >
    > best regards,
    > enrique.

    Best regards,
    Gabriel
    #AIX-Forum


  • 5.  Re: lpp install works via smit, but not outside of smit

    Posted Fri November 05, 2010 10:37 AM

    Originally posted by: unixgrl


    First, the initial message you posted has a usage error in it showing you need a -d parameter. Did you try that?

    Secondly, I don't think many of us are using the smit specific scripts to do automation. There are
    perfectly good non-smit commands to do the same thing in most cases.
    #AIX-Forum