Tanti Technology

My photo
Bangalore, karnataka, India
Multi-platform UNIX systems consultant and administrator in mutualized and virtualized environments I have 4.5+ years experience in AIX system Administration field. This site will be helpful for system administrator in their day to day activities.Your comments on posts are welcome.This blog is all about IBM AIX Unix flavour. This blog will be used by System admins who will be using AIX in their work life. It can also be used for those newbies who want to get certifications in AIX Administration. This blog will be updated frequently to help the system admins and other new learners. DISCLAIMER: Please note that blog owner takes no responsibility of any kind for any type of data loss or damage by trying any of the command/method mentioned in this blog. You may use the commands/method/scripts on your own responsibility. If you find something useful, a comment would be appreciated to let other viewers also know that the solution/method work(ed) for you.

Sunday 2 March 2014

AIX Software


AIX Install Additional Software

bash-3.2# cd 5.3/CD-1/installp/ppc/
bash-3.2# smitty install
                                                    Install Software

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

                                                        [Entry Fields]
* INPUT device / directory for software               .
* SOFTWARE to install                                [+ 5.3.0.0  Base Application Development Math Library         > +
  PREVIEW only? (install operation will NOT occur)    yes                                                            +
  COMMIT software updates?                            yes                                                            +
  SAVE replaced files?                                no                                                             +
  AUTOMATICALLY install requisite software?           yes                                                            +
  EXTEND file systems if space needed?                yes                                                            +
  OVERWRITE same or newer versions?                   no                                                             +
  VERIFY install and check file sizes?                no                                                             +
  Include corresponding LANGUAGE filesets?            yes                                                            +
  DETAILED output?                                    no                                                             +
  Process multiple volumes?                           yes                                                            +
  ACCEPT new license agreements?                      yes                                                            +
  PREVIEW new LICENSE agreements?                     no                                                             +

















F1=Help                       F2+------------------------------------------------------+  F4=List
F5=Reset                      F6¦ Running command...                                   ¦  F8=Image
F9=Shell                      F1+------------------------------------------------------+
                                                     COMMAND STATUS

Command: running       stdout: yes           stderr: no

Before command completion, additional instructions may appear below.

[MORE...26]
  << End of Success Section >>

+-----------------------------------------------------------------------------+
                   BUILDDATE Verification ...
+-----------------------------------------------------------------------------+
Verifying build dates...done
FILESET STATISTICS
------------------
    1  Selected to be installed, of which:
        1  Passed pre-installation verification
  ----
    1  Total to be installed

RESOURCES
---------
  Estimated system resource requirements for filesets being installed:
                (All sizes are in 512-byte blocks)
      Filesystem                     Needed Space             Free Space
      /usr                                 6328                5688528
      -----                            --------                 ------
      TOTAL:                               6328                5688528

  NOTE:  "Needed Space" values are calculated from data available prior
  to installation.  These are the estimated resources required for the
  entire operation.  Further resource checks will be made during
  installation to verify that these initial estimates are sufficient.

******************************************************************************
End of installp PREVIEW.  No apply operation has actually occurred.
******************************************************************************

[BOTTOM]
                                                    Install Software

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

                                                        [Entry Fields]
* INPUT device / directory for software               .
* SOFTWARE to install                                [+ 5.3.0.0  Base Application Development Math Library         > +
  PREVIEW only? (install operation will NOT occur)    no                                                             +
  COMMIT software updates?                            yes                                                            +
  SAVE replaced files?                                no                                                             +
  AUTOMATICALLY install requisite software?           yes                                                            +
  EXTEND file systems if space needed?                yes                                                            +
  OVERWRITE same or newer versions?                   no                                                             +
  VERIFY install and check file sizes?                no                                                             +
  Include corresponding LANGUAGE filesets?            yes                                                            +
  DETAILED output?                                    no                                                             +
  Process multiple volumes?                           yes                                                            +
  ACCEPT new license agreements?                      yes                                                            +
  PREVIEW new LICENSE agreements?                     no                                                             +

















F1=Help                       F2+------------------------------------------------------+  F4=List
F5=Reset                      F6¦ Running command...                                   ¦  F8=Image
F9=Shell                      F1+------------------------------------------------------+
                                                     COMMAND STATUS

Command: running       stdout: yes           stderr: no

Before command completion, additional instructions may appear below.

[MORE...38]

installp: APPLYING software for:
        bos.adt.libm 5.3.0.0


. . . . . << Copyright notice for bos.adt >> . . . . . . .
 Licensed Materials - Property of IBM

 5765G0300
   (C) Copyright International Business Machines Corp. 1987, 2004.
   (C) Copyright AT&T 1984, 1985, 1986, 1987, 1988, 1989.
   (C) Copyright Regents of the University of California 1982, 1983, 1986, 1987.
   (C) Copyright ISQUARE, Inc. 1990.

 All rights reserved.
 US Government Users Restricted Rights - Use, duplication or disclosure
 restricted by GSA ADP Schedule Contract with IBM Corp.
. . . . . << End of copyright notice for bos.adt >>. . . .

Finished processing all filesets.  (Total time:  2 secs).

+-----------------------------------------------------------------------------+
                                Summaries:
+-----------------------------------------------------------------------------+

Installation Summary
--------------------
Name                        Level           Part        Event       Result
-------------------------------------------------------------------------------
bos.adt.libm                5.3.0.0         USR         APPLY       SUCCESS

[BOTTOM]
                                                     COMMAND STATUS

Command: OK            stdout: yes           stderr: no

Before command completion, additional instructions may appear below.

[TOP]
geninstall -I "a -cgNQqwXY -J"  -Z   -d . -f File 2>&1

File:
    I:bos.adt.libm                 5.3.0.0


+-----------------------------------------------------------------------------+
                    Pre-installation Verification...
+-----------------------------------------------------------------------------+
Verifying selections...done
Verifying requisites...done
Results...

SUCCESSES
---------
  Filesets listed in this section passed pre-installation verification
  and will be installed.

  Selected Filesets
  -----------------
  bos.adt.libm 5.3.0.0                        # Base Application Development...

  << End of Success Section >>

+-----------------------------------------------------------------------------+
                   BUILDDATE Verification ...
+-----------------------------------------------------------------------------+
Verifying build dates...done
[MORE...41]

F1=Help                       F2=Refresh                    F3=Cancel                     F6=Command
F8=Image                      F9=Shell                      F10=Exit                      /=Find
n=Find Next

Check installed software

# lslpp -l | grep smit
  X11.apps.msmit            5.3.0.60  COMMITTED  AIXwindows msmit Application
  bos.cifs_fs.smit          5.3.0.60  COMMITTED  SMIT Interface for SMBFS
  bos.help.msg.en_US.smit   5.3.0.30  COMMITTED  SMIT Context Helps - U.S.
  bos.net.tcp.smit          5.3.0.60  COMMITTED  TCP/IP SMIT Support
  bos.sysmgt.smit           5.3.0.60  COMMITTED  System Management Interface
  bos.cifs_fs.smit           5.3.0.0  COMMITTED  SMIT Interface for SMBFS
#

Remove conflicting packages

Sometimes it happens that after a update from a Technology Level or a Fix Pack the oslevel doesn't change. After I updated to TL11FP1 I had the following oslevel:
bash-3.00# oslevel -s
5300-10-01-0921
This is most of the times caused because one or more filesets is not updated (for whatever reason):
bash-3.00# instfix -i | grep ML
    All filesets for 5300-02_AIX_ML were found.
    All filesets for 5.3.0.0_AIX_ML were found.
    All filesets for 5300-01_AIX_ML were found.
    All filesets for 5300-03_AIX_ML were found.
    All filesets for 5300-04_AIX_ML were found.
    All filesets for 5300-05_AIX_ML were found.
    All filesets for 5300-06_AIX_ML were found.
    All filesets for 5300-07_AIX_ML were found.
    Not all filesets for 5300-08_AIX_ML were found.
    All filesets for 5300-09_AIX_ML were found.
    All filesets for 5300-10_AIX_ML were found.
    Not all filesets for 5300-11_AIX_ML were found.

bash-3.00# instfix -ciqv | grep 5300-08_AIX_ML | grep :-:
5300-08_AIX_ML:ifor_ls.html.en_US.base.cli:5.3.8.0:5.3.7.0:-:AIX 5300-08 Update

bash-3.00# instfix -ciqv | grep 5300-11_AIX_ML | grep :-:
5300-11_AIX_ML:ifor_ls.html.en_US.base.cli:5.3.8.0:5.3.7.0:-:AIX 5300-11 Update
As you can see it's the package 'ifor_ls.html.en_US.base.cli' that is causing the problem.

Sometimes you can simply remove the package using this command:
/usr/lib/instl/sm_inst installp_cmd -u -f'ifor_ls.html.en_US.base.cli'
In this case I received the error that another fileset is dependent on this one, so this time removal was not an option:
......

FAILURES
--------
  Filesets listed in this section failed pre-deinstall verification
  and will not be removed.

  Dependency Failures
  (Deinstall Operation)
  ---------------------
  SELECTED FILESETS:  The following is a list of filesets that you asked to
  remove.  They cannot be removed until all of their dependent filesets
  are also removed.  See subsequent lists for details of dependents.

    ifor_ls.html.en_US.base.cli 5.3.7.0       # LUM HTML Guides - U.S. English

  INSTALLED DEPENDENTS:  The following filesets are dependents of one or more
  of the selected filesets listed above.  These must be removed before
  or with the filesets that you selected.  To remove these dependents with
  the selected filesets, specify the option to automatically remove dependent
  software (-g flag).
  WARNING:  The fileset updates listed below have created dependencies from
  their filesets to one or more of the filesets that you are trying to
  remove.  If you choose to automatically remove dependent software, the
  entire dependent fileset will be removed (not just the update).  You
  may be able to reject the update to remove the dependency.

    ifor_ls.base.cli 5.3.8.0                  # License Use Management Runti...

  << End of Failure Section >>
......

The story continues… (when I have time)

Install RSYNC

When you install the rsync provided with the Linux Toolbox CD you'll get this error:
sjoerd@aixbox:/tmp/sft>sudo rpm -vi rsync-2.6.2-1.aix5.1.ppc.rpm 
error: failed dependencies:
        libpopt.a(libpopt.so.0) is needed by rsync-2.6.2-1
This dependency is solved by installing the popt package provided on the cd as well:
sjoerd@aixbox:/tmp/sft>sudo rpm -vi popt-1.7-2.aix5.1.ppc.rpm
popt-1.7-2
sjoerd@aixbox:/tmp/sft>sudo rpm -vi rsync-2.6.2-1.aix5.1.ppc.rpm 
rsync-2.6.2-1

What file is with what fileset

If you have a file and you wanna know what fileset it belongs to enter this command:
sjoerd@aixbox:/usr/bin>lslpp -w /usr/bin/dbx
  File                                        Fileset               Type
  ----------------------------------------------------------------------------
  /usr/bin/dbx                                bos.adt.debug         Symlink

No comments:

Post a Comment