Install RPM from NIM LPP without smitty


 
Thread Tools Search this Thread
Operating Systems AIX Install RPM from NIM LPP without smitty
# 1  
Old 05-07-2014
Install RPM from NIM LPP without smitty

I want to install single RPM from LPP on NIM system without doing it interactively (with single non-interactive command), so I 'got' that command from smitty this way:


# smitty nim > Install and Update Software > Install Software

Code:
Select the LPP_SOURCE containing the install images

> RPMS_AIX53          resources       lpp_source

Software to Install [F4]

Code:
  sudo
    @@R:sudo-1.6.9p23-2 1.6.9p23-2
>   @@R:sudo-1.6.9p23-2noldap 1.6.9p23-2noldap

Code:
* LPP_SOURCE             RPMS_AIX53
* Software to Install   [@@R:sudo-1.6.9p23-2noldap 1.6.9p23-2noldap]

After pressing F6 now I get the command.


Code:
+--------------------------------------------------------------------------+
|                           SHOW COMMAND STRING                            |
|                                                                          |
| Press Enter or Cancel to return to the                                   |
| application.                                                             |
|                                                                          |
|   /usr/lpp/bos.sysmgt/nim/methods/c_sm_nim cust  -l 'RPMS_AIX53' -o '@@R |
|   :sudo-1.6.9p23-2noldap 1.6.9p23-2noldap' -f '' -f '' -f '' -f 'c' -f ' |
|   N' -f 'g' -f 'X' -f '' -f ''                                           |
|                                                                          |
| F1=Help                 F2=Refresh              F3=Cancel                |
| F8=Image                F10=Exit                Enter=Do                 |
+--------------------------------------------------------------------------+

... but when I type this command in terminal, I get this error:

Code:
# /usr/lpp/bos.sysmgt/nim/methods/c_sm_nim cust  -l 'RPMS_AIX53' -o '@@R:sudo-1.6.9p23-2noldap 1.6.9p23-2noldap' -f '' -f '' -f 'Y' -f 'c' -f 'N' -f 'g' -f 'X' -f '' -f ''
0042-001 nimclient: processing error encountered on "c003s1154":
   0042-175 c_showres: An unexpected result was returned by the "/usr/lib/instl/sm_inst" command:

0042-231 c_sm_nim:  Unable to generate the formatted list of software
to install.

What am I doing wrong?
# 2  
Old 05-07-2014
Quote:
Originally Posted by n.i.b
... but when I type this command in terminal, I get this error:

Code:
# /usr/lpp/bos.sysmgt/nim/methods/c_sm_nim cust  -l 'RPMS_AIX53' -o '@@R:sudo-1.6.9p23-2noldap 1.6.9p23-2noldap' -f '' -f '' -f 'Y' -f 'c' -f 'N' -f 'g' -f 'X' -f '' -f ''
0042-001 nimclient: processing error encountered on "c003s1154":
   0042-175 c_showres: An unexpected result was returned by the "/usr/lib/instl/sm_inst" command:

0042-231 c_sm_nim:  Unable to generate the formatted list of software
to install.

This command is not supposed to be used outside SMIT. Use a simple "nim" command, which is done in two steps: first allocate the resource on the nim server, then use it on the client:

Code:
nim -o allocate -a lpp_source=<lpp_source> <client>
nim -o cust -a lpp_source=<lpp_source> -a filesets=<fileset> <client>

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
# 3  
Old 05-07-2014
@bakunin

Thanks for suggestion.

I need that instruction to propagate that RPM on 100+ LPARS, is there a better way then propagating that LPP for each LPAR separately?
# 4  
Old 05-07-2014
Quote:
Originally Posted by n.i.b
I need that instruction to propagate that RPM on 100+ LPARS, is there a better way then propagating that LPP for each LPAR separately?
hmmm... isn't that already a good way to do it? After all, you could use a script like (just a barebone sketch - add error checking to your hearts content):

Code:
#! /bin/ksh
typeset chLppSrc="<lpp_source>"
typeset chFilSet="<fileset>"
typeset chHost=""

while read chHost ; do
     nim -o allocate -a lpp_source="$chLppSrc" "$chHost"
     nim -o cust -a lpp_source="$chLppSrc" -a filesets="$chFilSet" "$chHost"
done < /path/to/hosts.list

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
# 5  
Old 05-07-2014
You can always create a group of LPARs in NIM and deploy the proms that way.
This User Gave Thanks to ross.mather For This Post:
# 6  
Old 05-08-2014
@ross.mather
Thanks, I will try that method also.

My buddy also found that install method from client:

Code:
CLIENT # nimclient -o cust -a lpp_source=RPMS_AIX53 -a  filesets=sudo-1.6.9p23-2noldap.aix5.3.ppc.rpm -a accept_licenses=yes -a  show_progress=yes

As for @bakunin method ... it also work, displays errors, but works, here are the results:

Before.

Code:
CLIENT # rpm -qa
AIX-rpm-7.1.1.15-1
tcl-8.4.7-3
tk-8.4.7-3
expect-5.42.1-3
bash-3.2-1

After.
Code:
CLIENT # rpm -qa
sudo-1.6.9p23-2noldap
tcl-8.4.7-3
tk-8.4.7-3
expect-5.42.1-3
bash-3.2-1
AIX-rpm-7.1.2.0-2

Commands from NIM.

Code:
NIM # nim -F -o allocate -a lpp_source="RPMS_AIX53" "CLIENT"
NIM # nim -F -o deallocate -a lpp_source="nim_script" "CLIENT"
NIM # nim -o cust -a lpp_source="RPMS_AIX53" -a filesets="sudo-1.6.9p23-2noldap 1.6.9p23-2noldap" "CLIENT"

Validating RPM package selections ...

Please wait...
sudo                        ##################################################

+-----------------------------------------------------------------------------+
                          RPM  Error Summary:
+-----------------------------------------------------------------------------+
The following packages were requested for installation 
but were not found on the media:
1.6.9p23-2noldap

0042-001 nim: processing error encountered on "master":
   0042-001 m_cust: processing error encountered on "CLIENT":
   0042-175 c_script: An unexpected result was returned by the "NIM:/export/nim/scripts/CLIENT.script" command:

0042-175 c_installp: An unexpected result was returned by the "/usr/sbin/installp" command:
See the log file:
        /var/adm/ras/nim.installp
for details or use the "showlog" operation.



NIM # cat /export/nim/scripts/CLIENT.script

#!/bin/ksh
CLIENT.script: END
# nim_script for CLIENT
result=success

export NIM_NON_41_MASTER=yes
export NIM_SHOW_PROGRESS=yes
export NIM_SCRIPT=yes
# lpp_source=RPMS_AIX53
/usr/lpp/bos.sysmgt/nim/methods/c_installp ${VERBOSE} \
        -afilesets="sudo-1.6.9p23-2noldap 1.6.9p23-2noldap" \
        -alpp_source=NIM:/export/PACKAGES/RPMS_AIX53
[[ $? != 0 ]] && result=failure

[[ ${result} = success ]] && exit 0 || exit 1

In other words, problem solved, thank You for help gentleman.

Last edited by n.i.b; 05-08-2014 at 05:42 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Install software in another directory with smitty install

Hello, I would like to ask if someone knows if is possible to install sofware via smitty or installp in another directorie , or we have to accept the default location? i would like to intall in /opt folder , but smitty installed it in /usr Thanks in advance (4 Replies)
Discussion started by: prpkrk
4 Replies

2. AIX

NIM - install up-to-date VIOS ?

Hello, Is it possible to install up-to-date vios in one NIM operation ? For example I have vios v2.1 DVD and current vios version is v2.2.1.3(we update to fixpack v2.2.1.1_FP25 and apply service pack 2.2.1.3-FP25-SP01) I know it's possible if we install AIX using NIM - we just update... (0 Replies)
Discussion started by: vilius
0 Replies

3. AIX

OS install from NIM fails

Hi Guys, The ping is failing SMS menu on the client to the interface for a network boot from NIM. I checked the cables, they are plugged in and lights are blinking. this is the error i am getting when I am pushing the OS on NIM Command: OK stdout: yes stderr: no ... (2 Replies)
Discussion started by: ithinksgreen
2 Replies

4. UNIX for Dummies Questions & Answers

RPM install problem

I'm trying to install mysql on a server, but I keep getting an error. Can anyone offer any help? Below I've listed a bunch of info that you might find helpful. Here are the commands I'm using. $ ls MySQL-client-community-5.1.35-0.rhel3.i386.rpm... (2 Replies)
Discussion started by: wsetchell
2 Replies

5. UNIX for Dummies Questions & Answers

RPM uninstall/install

Running FC5 on a Dell desktop. When I compile a LaTex file, it goes fine but only outlines blank boxes where figs should be. When I send the figs.eps and Tex file to a friend, his compiles and imbeds the fig. in the text of the DVI output using my files without add'nl control cards. I conclude... (1 Reply)
Discussion started by: blann
1 Replies

6. AIX

AIX 5.1 install bos.sysmgt.nim.master failed

I was trying to install bos.sysmgt.nim.master on AIX 5.1 with a mounted NFS source, but it failed: # installp -agXd /nfs/aix51cd1 bos.sysmgt.nim.master installp: APPLYING software for: bos.sysmgt.nim.master 5.1.0.50 restore: 0511-123 The volume on... (0 Replies)
Discussion started by: ezlee
0 Replies

7. SuSE

How to install .src.rpm ? ( source rpm )

Hi, I have got few RPM's from rpmfind.net ( mainly gcc ). But it seems to be src files instead of the image. so I think we have to build the src files according to target machine using rpmbuild. Can any one help me with 1) Various options of rpm build that have to be taken care 2)... (3 Replies)
Discussion started by: Sivaswami
3 Replies

8. Shell Programming and Scripting

How to install expect rpm?

Hi , I am tryin to install expect rpm on my linux machine. I have the source file expect-5.42.1-1.src.rpm I am doin this rpm -ivh expect-5.42.1-1.src.rpm But I am gettin this error warning: expect-5.42.1-1.src.rpm: V3 DSA signature : NOKEY, key ID db42a60e error: cannot... (1 Reply)
Discussion started by: eamani_sun
1 Replies

9. AIX

NIM install hangs on LED 0608

Hi guys, I am trying to install a new machine via nim but it is hanging on 0608 => it should be a network issue here the situation hoping you will be able to help: server NIM on a subnet/IP 10.36.12.64 client on 161.43.56.25 the ping test is successful but when I launch the isntall it... (9 Replies)
Discussion started by: touny
9 Replies

10. AIX

Linux install from NIM

Has anyone ever done this and is it easy to do with SLES9/10? All I can find so far is this link http://www-941.ibm.com/collaboration/wiki/display/Wikip5/16Jan07+Using+NIM+to+Install+VIO+and+Linux Can you still use all the feature of autoyast etc? TIA. (1 Reply)
Discussion started by: backslash
1 Replies
Login or Register to Ask a Question