Originally posted by: Gabriel.Menini
>
> 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